函数防抖,节流

        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
                    },
                });
            }
        })
发布了151 篇原创文章 · 获赞 1 · 访问量 2790

猜你喜欢

转载自blog.csdn.net/hql1024/article/details/103556802