81,115
社区成员
发帖
与我相关
我的任务
分享
<body>
<form>
<button id="loginBtn" >登录</button>
</form>
</body>
<script>
document.getElementById("loginBtn").onclick=function(){
var a=9;
layer.alert(a);
};
</script>
$("#loginBtn").click(function(){
alert("button点击")
});
试试吧