81,095
社区成员
发帖
与我相关
我的任务
分享
onclick=“<% function1() %>”
<input type="button" id="submit" lx = "0">
<input type="button" id="submit" lx = "1">
$("#submit").unbind("click").bind("click",function(){
if($(this).attr("lx") == 1){
.....
}else{
.....
}
});
<input type="button" id="submit" onclick="test(0)">
<input type="button" id="submit" onclick="test(1)">
function test(obj){
if(obj == 1){
.....
}else{
.....
}
}