十七度
disabled=true之后按钮还能点击?
开发调优
JavaScript
boyfix
April 27, 2018, 2:05am
1
原因是按钮不是
button
是
text
。
把
type="text"
改成
type="button"
即可禁用按钮,点击事件也会失效。