摘要:
var Purposes1=[{name:'住宅',index:0},{name:'别墅',index:1},{name:'写字楼',index:2},{name:'商铺',index:3}];for(var i=0;i<Purposes1.length;i++) { $("rent_select").options[i+1]=new Option(Purposes1[i].name,Purposes1[i].index); }// 1.判断select选项中 是否存在Value="paraVa 阅读全文