前端和后端如何进行开发 |
前端开发如何设置字体的样式 |
前端开发中如何配置模拟接口 |
html 代码
<input
type=”button”
class=”btn c-333 text-c js-code”
value=”获取验证码”
onclick=”settime(this);”
/>
<script type=”text/javascript” charset=”utf-8″>
var countdown = 60
function settime(obj) {
if (countdown == 0) {
obj.removeAttribute(‘disabled’)
obj.value = ‘获取校验码’
countdown = 60
return
} else {
obj.setAttribute(‘disabled’, true)
obj.value = ‘重新发送(’ + countdown + ‘s)’
countdown–
}
setTimeout(function() {
settime(obj)
}, 1000)
}
</script>
前端开发如何学好 |
前端开发完后如何部署 |
前端开发图片如何处理 |
评论前必须登录!
注册