请问这句话哪里错了?
if (((ListBox)document.getElementById("ListBox")).length == 0)
return;
问题点数:10、回复次数:4Top
1 楼net_lover(【孟子E章】)回复于 2005-11-01 16:48:13 得分 0
document.getElementById是客户端js的语句
(ListBox)是服务器短的
直接
ListBox1.Items.Length等即可
ListBox1为idTop
2 楼swordragon(古道热肠)回复于 2005-11-01 16:48:32 得分 0
if (((ListBox)document.getElementById("ListBox")).length == 0)
return;
--〉
if (document.getElementById("ListBox1").length == 0)
return;
1、javascript中没有ListBox,ListBox是服务器控件。
2、getElementById("ListBox1")中的ListBox1是该控件的ID。Top
3 楼zfhuangwei(追风小蛇)回复于 2005-11-01 16:55:50 得分 0
初来的,努力呀Top
4 楼jxufewbt(我的目标是5星)回复于 2005-11-01 16:59:19 得分 0
同意net_lover(孟子E章)Top




