easyui的单元格判断及事件

<th data-options="field:'userId',width:150,formatter:function(value,row,index){
           if (value == null || value ==0) {
               return '<a οnclick=chooseSchool(\''+row.schoolId+'\')>未关联</a>';
           }else{
return '<a οnclick=getSchool(\''+value+'\')>已关联</a>';
           }}" ><b>关联项目</b></th>

注意单引号

发布了233 篇原创文章 · 获赞 7 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/china_squirrel/article/details/103097445