第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

做的稍微完善一點(diǎn)點(diǎn)。

<!DOCTYPE?html>

<html?lang="en">


<head>

????<meta?charset="UTF-8">

????<meta?name="viewport"?content="width=device-width,?initial-scale=1.0">

????<title>驗(yàn)證碼按鈕倒計(jì)時(shí)</title>

</head>


<body>

????<input?type="button"?id='send'?value="發(fā)送驗(yàn)證碼">

</body>

<script?type="text/javascript">

????var?send?=?document.getElementById('send');

????times?=?10;

????timer?=?null;

????//?console.log(send.value);

????if?(send.value?=?'發(fā)送驗(yàn)證碼')?{

????????send.onclick?=?function?()?{

????????????var?tant?=?this;

????????????//?if?(timer)?{

????????????//?????clearInterval(timer);

????????????//?????timer?=?null;

????????????//?}

????????????timer?=?setInterval(function?()?{

????????????????times--;

????????????????if?(times?<=?0)?{

????????????????????tant.setAttribute('value',?'發(fā)送驗(yàn)證碼');

????????????????????tant.disabled="";

????????????????????clearInterval(timer);

????????????????????times?=?10;

????????????????}?else?{

????????????????????tant.setAttribute('value',?times?+?'秒后重試');

????????????????}

????????????????console.log(times);

????????????},?1000);

????????????tant.setAttribute('disabled','true');

????????}

????}

</script>

</html>


正在回答

2 回答

不錯(cuò) ,有想像

0 回復(fù) 有任何疑惑可以回復(fù)我~

很好很用心了,不錯(cuò)

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

做的稍微完善一點(diǎn)點(diǎn)。

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)