美文网首页
js 追加 双引号怎么写,不引起来,无法机械

js 追加 双引号怎么写,不引起来,无法机械

作者: 杰罗米诺大背头 | 来源:发表于2020-10-13 15:59 被阅读0次

{

label:'头像', name:'avatar', index:'avatar', width:80, formatter:function (value) {

if (value) {

//var tmp="'"+value+"'";看看这个tmp能不能alert出来

return '<a href="javascript:void(0)"  onclick="vm.showImg('+"'"+value+"'"+')" ><img width="50px" height="50px" src="'+ value +'" /> </a> ';

    }else {

return '-';

    }

}

}

相关文章

网友评论

      本文标题:js 追加 双引号怎么写,不引起来,无法机械

      本文链接:https://www.haomeiwen.com/subject/ihjwpktx.html