以下はコードですが、なぜ役に立たないのでしょうか?
1 | <input type= "text" id= "phones" /><input type= "button" value= "发送验证码" onclick= "phone_Change('2k3R4ru')" id= "oc_phone" />
|
ログイン後にコピー
1 | function phone_Change(t){ document.getElementById( 'oc_phone' ).disabled=false;}
|
ログイン後にコピー
ディスカッションに返信 (解決策)
ボタンを無効にしますか?
1 | <meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" ><title>无标题文档</title><script type= "text/javascript" > function phone_Change(t){ document.getElementById( 'oc_phone' ).disabled=true;}</script><input type= "text" id= "phones" /><input type= "button" value= "发送验证码" onclick= "phone_Change('2k3R4ru')" id= "oc_phone" />
|
ログイン後にコピー
1 | document.getElementById( 'oc_phone' ).disabled = "disabled" ;
|
ログイン後にコピー
ログイン後にコピー
こちらの方法
1 | document.getElementById( 'oc_phone' ).disabled = "disabled" ;
|
ログイン後にコピー
ログイン後にコピー
こちらの方法
ありがとうございます