首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

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

2012-02-08 
请大家帮个忙if((arguments.length 3)||(arguments[2]true)){sortSelect(from)sortSelect(to)}from.s

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

热点排行