有时候我们可能对一个按钮做事件,只想用户执行一次用来保存信息。可能手机卡,网速慢等原因造成用户点击了改事件,还没等执行完一次又点击了,这样就会出现问题。
我们只用在Ajax提交之后把改按钮禁用,完成了事件之后移除禁用属性就可以了。(或者在代码逻辑里面做判断也可以)