如何使用JavaScript设置bindSelect的选中项
"如何使用JavaScript设置bindSelect的选中项\n\n要设置bindSelect的选中项,可以使用selectedIndex属性。例如:\n\njavascript\ndocument.getElementById("bindSelect").selectedIndex = 2;\n\n\n这将会将bindSelect的第三个选项设为选中状态。记住,selectedIndex属性是从0开始计数的,所以2实际上是指第三个选项。\n\n"
原文地址: https://www.cveoy.top/t/topic/p6Si 著作权归作者所有。请勿转载和采集!