多个参数

var forbidden = '<a onclick="changeStateVip(\'' + row.id + '\',\'' + -4 + '\',\'' + index + '\',\'' + '\')" href="javascript:void(0)">禁用</a>';
var recover = '<a onclick="changeStateVip(\'' + row.id + '\',\'' + 1 + '\',\'' + index + '\',\'' + '\')" href="javascript:void(0)">正常</a>';
var recover = '
<a onclick="changeStateVip(' + row.id + ',1 + ' + index + ')" href="javascript:void(0)">正常</a>';
 function changeStateVip(id, state, index) {...}
 function changeStateVip(id, state) {...}

传2个以上的参数,

posted @ 2016-05-18 12:57  郑叶叶  阅读(177)  评论(0编辑  收藏  举报