JS
少年.
这个作者很懒,什么都没留下…
展开
-
JS计时器实现倒计时跳转到登录页
倒计时3秒跳转到页面登录 if (res == "注册成功") { var wait = 3; setInterval(function refer() { if (wait > 0) { document.getElementById("resTxt").innerHTML = res +wait+"秒后跳转到登录页面"; wait-- } else { ......原创 2020-06-25 10:55:47 · 408 阅读 · 0 评论 -
js的三种使用方式
js的使用方式和css类似: 1.行内式 直接使用标签 <body onload="alert('hello world3')";> </body> 2.内嵌式 在标签属性内使用 ""; <script> a原创 2019-01-23 16:17:19 · 985 阅读 · 0 评论