手记

解决疯狂点击按钮的问题?

                                        //每隔5秒可点击                                        var tiemer = "";                                        var fun = function bClick(){                                                    console.log("执行方法");                                                    $applyBtn.unbind("click");                                                    tiemer = setTimeout(function(){                                                    $applyBtn.click(fun);                                            },5000);                                        };                                        $applyBtn.click(fun);

解决多次点击提交保存的问题

0人推荐
随时随地看视频
慕课网APP