举例:JS onclick事件传递变量
想要把变量strmacaddr的值test传进blacklist方法中去
var strmacaddr = "test";
tr.insertCell(-1).innerHTML = "<input type=button value=<%:Allow%> onclick=blacklist(\""+strmacaddr+"\") />";
想要把变量strmacaddr的值test传进blacklist方法中去
var strmacaddr = "test";
tr.insertCell(-1).innerHTML = "<input type=button value=<%:Allow%> onclick=blacklist(\""+strmacaddr+"\") />";