您的位置:首页 > 其它

函数防抖,节流

2020-02-05 09:23 337 查看
var fandou = true
$(".begin").click(function () {
if (fandou){
fandou = false
$.ajax({
type: "post",	//请求方式
url: "",
data: {

},
dataType: "json",
success: function (res) {
console.log(res)
fandou = true
},
});
}
})
  • 点赞
  • 收藏
  • 分享
  • 文章举报
hql丶1024 发布了165 篇原创文章 · 获赞 1 · 访问量 3721 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: