代码示例
<div class="ff" id="dis1">
<label>验货联系人</label>
<input type="text" name="qc.linkman" value="${(dto.qc.linkman)!''}" />
</div>
var deptId=0;
$.ajax({
url: $path + '/generalquery/qc/getDeptId',
type: 'post',
dataType: 'json',
success:function(data){
deptId=data.result.data.deptId.id;
if(deptId==13||deptId==16){
$('#dis1').hide();
}
},error:function(data){
alert("数据加载异常"+data.id);
}
})