页面常规绑定函数
<div class="digCommentReplyreplay" @click="showReplyinputfn(item.c_fid,item.id)">
</div>
字符串模板绑定函数
`<div class="digCommentReplyreplay" οnclick="showReplyinputfn(${datas[f].c_fid},${datas[f].id},2,${kk})"></div>`
JS的函数
showReplyinputfn(nid, cid, Ntype, kk) {
this.showReplyinput = true;
this.nid = nid;
this.cid = cid;
this.Ntype = Ntype
this.kk = kk
},
字符串绑定函数必加
created() {
window.showReplyinputfn = this.showReplyinputfn;
},