我用这样的javascript写了一段代码,
alert(attributes.length);
for(temp=0;temp<attributes.lenth;temp++){
attribute_list+="<option value='"+attributes[temp]+"'>"+attributes[temp]+"</option>";
if(temp==0)
alert(attributes[temp]);
}
attribute_list+="</select>";
alert(attribute_list);
第一个警报显示长度为 58(即属性数组的长度)但控件未进入 for 循环