复杂动态判断:
$('#searchType input').on('click',function(){
if(this.checked==true){
this.checked==true;
$(this).siblings('[type="checkbox"]').prop('disabled','true');
}else{
this.checked==false;
$(this).siblings('[type="checkbox"]').removeAttr('disabled');
//
}
});
ajax请求数据量比较大时 要指定它的数据类型
100*100 图片在不同dpr下显示的规则 为:100/dpr px
var kaiguan;
for(var i=0;i<len;i++){
kaiguan=false;
for(var key in rdsName){
if(rdsName[key].rdsType==$(labCount[i]).attr('regionno')){
labCount[i].innerHTML= in_title + ' <span style="color:blue;">'+rdsName[key].value+'</span>';
kaiguan=true;
}
if(kaiguan==false){
labCount[i].innerHTML= in_title + ' <span style="color:red;">0</span>';
}
}
}