Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
他们是一种通过让用户单击列表以编程方式选择 dashcode 列表中的项目的方法吗?就像是:
var list = document.getElementById("list"); list.select_item(3);
如果它只是一个 HTML 下拉列表(“select”标签),那么您可以设置“selectedIndex”属性:
var list = document.getElementById("list"); list.selectedIndex = 3;