![](https://img-blog.csdnimg.cn/20190927151101105.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
jQuery相关知识
jQuery相关知识
生活有亮
知足常乐
展开
-
jQuery点击按钮跳转页面
<div class="mui-button"> <button id="code" type="button" >忘记密码</button> </div> $(function(){ $('#code').on('click',function(){ $(location).attr('href','index.php/index/code/index'); }) }) 按钮如果不设置type类型,则默认type类型为submit 提交 在htm原创 2021-02-27 16:50:40 · 1813 阅读 · 5 评论 -
jQuery验证码60s倒计时
<!DOCTYPE html> <html> <head> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> var countdown=60; function settime(obj) { if (countdown == 0) { obj.原创 2021-02-27 10:06:24 · 148 阅读 · 0 评论