<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>
注意单引号