怎么判断 radio 是否数组? if (id.length) //是数组else //非数组 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if (id.length) //是数组else if (id) //非数组 else //不存在 if id[0] arrayelse if id oneobjectelse not exist if((doucment.getElementById('id').length > 0)//是数组else//不是数组 1 数组的位数 var a=数组名.argument2 if (document.id.length){ //是数组 else if (id) //非数组 else //不存在} js里把同name(或者同id)的多个对象自动处理成一个数组;当只有一个的时候就不再是数组,所以要用程序控制啊! if(getElementsbyName("RadioName").length==1) alert("不是数组")else alert("是数组") 什么是闭包处理啊! EXT问题卡主了。。。求助ing 关于document.write("")方法在IE浏览器和火狐浏览器下面的兼容性问题 ie js 模式窗口 和非模式窗口 新手求助!求4个随即不重复数! 如何根据select改变embed里的src音乐地址 研究过淘宝API的请进 寻找一个用javaScript编写的能够在文本框中能输入时间的东西 用javascript能否实现进入客户端指定文件夹后,在调用该文件夹内的exe文件! 倾情奉献:如何在提交From时在页面中间显示正在处理数据的提示 滑动杆代替输入数字,如何实现? 请问关于在web开发中使用javascript的一些概念问题。
//是数组
else
if (id)
//非数组
else
//不存在
else if id oneobject
else not exist
//是数组
else
//不是数组
//是数组
else
if (id)
//非数组
else
//不存在
}
alert("不是数组")
else
alert("是数组")