easyUI的c if

{field:'domdistrict2',title:'区县',width:100},
{field:'option',title:'操作',width:fixWidth(0.08),align:'center',
formatter:function(value,rowData,rowIndex){
var moldshopid = rowData.moldshopid;
var str="";
<c:if test="${forCheck==1}">
str +="<a class=\"color1\" onclick=upd("+"\'"+moldshopid+"\'"+") style='cursor:pointer'>"+"修改"+"</a>&nbsp;&nbsp;";
str+="<a class=\"color1\" onclick=del("+"\'"+moldshopid+"\'"+") style='cursor:pointer'>"+"删除"+"</a>&nbsp;&nbsp;";
str+="<a class=\"color1\" onclick=view("+"\'"+moldshopid+"\'"+") style='cursor:pointer'>"+"查看"+"</a>&nbsp;&nbsp;";
</c:if>
<c:if test="${forExcel==0}">
str+="<a class=\"color1\" onclick=audit("+"\'"+moldshopid+"\'"+") style='cursor:pointer'>"+"检查"+"</a>";
</c:if>
return str;
}
}
 
]]
 
});
posted @ 2019-05-20 11:54  那些年的代码  阅读(452)  评论(0编辑  收藏  举报