我是靠谱客的博主 落寞豌豆,这篇文章主要介绍onclick 拼接多个参数,现在分享给大家,希望可以做个参考。

onclick 拼接多个参数

 {title:"${message(code:'universal.operation')}",field:'communicationProtocolBtn',align: 'center',
formatter:function(value, row, index, field){
var result = ""
// 启用或停用
// if(row.STATUS == 1) {
result += "<button type="button" class="btn btn-warning btn-sm" οnclick="stopServer('" + row.ID+"','"+
row.PROTOCOL_LIBRARY_ADDRESS+"','"+ row.PROTOCOL_LIBRARY_PORT+"')">${message(code:'universal.stop')}</button>";
result += "&nbsp;&nbsp;"
// } else
{
result += "<button type="button" class="btn btn-default btn-sm" οnclick="runServer('" + row.ID+"','"+
row.PROTOCOL_LIBRARY_ADDRESS+"','"+ row.PROTOCOL_LIBRARY_PORT+"')">${message(code:'universal.start')}</button>";
result += "&nbsp;&nbsp;"
// }
result+="<button type='button' οnclick='openDelCommunicationProtocolModal(" + row.ID + ")' class='btn btn-danger btn-sm roleDel q2'>" +
"<span class='glyphicon glyphicon-remove'></span>" +
"</button>n&nbsp;"
return result
}

最后

以上就是落寞豌豆最近收集整理的关于onclick 拼接多个参数的全部内容,更多相关onclick内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部