{
field:'opt2',
title:'详情',
width:100,
formatter:function(value,row)
{
//return '<a href="'+ThinkPhP['MODULE']+'/Goods/goods_detail?id='+row.goodsId+'" class="goods-describe" style="height: 18px;margin-left: 2px;" onclick="" target="_blank"></a>';
return '<a href="{:U('Goods/goods_detail')}" class="goods-describe" style="height: 18px;margin-left: 2px;" onclick="" target="_blank"></a>';;
}
},
鄙人用的是Easyui,页面的效果是点详情可以弹到另外一个新的页面,想在<a>链接里面用U方法,但这个<a>链接有单引号,编辑器提示U方法书写错误,问下高手在单引号里面U方法该怎么写。 最佳答案
