读书人

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

发布时间: 2012-02-08 19:52:21 作者: rapoo

请大家帮个忙
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的选项都置于不选中状态。

读书人网 >JavaScript

热点推荐