1、html
<p onclick="expandComcode()" >点击</p>
2、js
var flag = true;function expandComcode(){if(flag){$.ajax({type: "get",url:'list',async: false,success: function(res) {console.log(res);}});flag = false;}}
时间:2022-07-23 14:05:26
1、html
<p onclick="expandComcode()" >点击</p>
2、js
var flag = true;function expandComcode(){if(flag){$.ajax({type: "get",url:'list',async: false,success: function(res) {console.log(res);}});flag = false;}}
html onclick 绑定js js给按钮绑定点击事件(onclick)
2021-03-08
JS的onclick点击 与 onmousemove鼠标事件
2018-12-03