您现在的位置是:首页 > 电脑技术查询 > web开发

请大家帮个忙,该如何处理

编辑:chaxungu时间:2022-10-02 23:20:19分类:web开发

请大家帮个忙
if ((arguments.length <3) || (arguments[2]==true)) {
sortSelect(from);
sortSelect(to);
}
from.selectedIndex = -1;
to.selectedIndex = -1;
sortSelect(from)有什么作用
from.selectedIndex = -1有什么用?
from,to 匀为列表框
请大家帮个小忙,谢谢大家!


------解决方案--------------------
sortSelect(from) 应该是个给下拉框选项排序的 函数 用于重新初始化

from.selectedIndex = -1 就是让from中的选项都不被选中



------解决方案--------------------
sortSelect要看函数的定义,应该是对该select里的option排序。
from.selectedIndex =-1将该select的选项都置于不选中状态。