摘要:首先介绍两个方法的语法: reload 方法,该方法强迫浏览器刷新当前页面。语法:location.reload([bForceGet]) 参数:bForceGet, 可选参数, 默认为 false,从客户端缓存里取当前页。 true, 则以 GET 方式,从服务端取最新的页面, 相当于客户端点击
阅读全文
摘要:界面上的字段验证,是找的网上的一个js-input验证,觉得挺不错的,分享给大家,但这个验证还是有瑕疵的,就是没有对应的友好提示,可能在客户体验的那方面就不是很好了。 数字校验有个bug,希望大家这边注意一下,就是如果有input从后台获取的value值的话,上面的数字校验失效,下面贴出此情况下的处
阅读全文
摘要:单选框(radio)自定义样式 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
阅读全文
摘要:$('.amount_input').bind('input propertychange', function() { console.log(2); $('.list label').removeClass('clicks'); $('.list label').removeClass('cli
阅读全文
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>Bootstrap 实例 - 标签页(Tab)插件</title> <link rel="stylesheet" href="http://cdn.static.runoob.com/
阅读全文
摘要:var numbers = [1, 4, 9]; var roots = numbers.map(Math.sqrt); // roots的值为[1, 2, 3], numbers的值仍为[1, 4, 9] sqrt:用来计算一个非负实数的平方根 var numbers = [1, 4, 9]; v
阅读全文
摘要:1、从左到右滚动显示<marquee direction=left>测试</marquee>2、从右到左滚动显示<marquee direction=right>测试</marquee>
阅读全文
摘要:<div style="width:200px; height:300px"><marquee direction="up" truespeed="truespeed" height="300px" behavior="scroll"><p>hellohellohellohellohellohell
阅读全文
摘要:<div style="width:200px; height:300px"> <marquee behavior="scroll" contenteditable="true" onstart="this.firstChild.innerHTML+=this.firstChild.innerHTM
阅读全文
摘要:switch(n) { case 1: 执行代码块 1 break; case 2: 执行代码块 2 break; default: n 与 case 1 和 case 2 不同时执行的代码 }
阅读全文
摘要:<html> <head> <title>submit直接提交</title> </head> <body> <!-- 表单的提交方式一 --> <form method="get"> username: <input type="text" name="username"/> <br/> pass
阅读全文
摘要:<!DOCTYPE HTML><html><head><title>原生js实现类似购物网站筛选页面效果</title><meta charset="utf-8"><style type='text/css'>* { margin: 0; padding: 0; }#wrap { width: 60
阅读全文
摘要:<!DOCTYPE html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Test js</title> </head> <script type="text/javascri
阅读全文
摘要:js: navbarActiveSwitch(); var isclick=false; $(function () { $("label").on({ mouseover:function(){ $(this).addClass('clicks'); $(this).removeClass('po
阅读全文
摘要:js: var isclick=false; $(function () { $("label").on({ mouseover:function(){ console.log(1); $(this).addClass('clicks'); $(this).removeClass('point_am
阅读全文
摘要:<td colspan="6"><span class="order-time">2017-10-11 14:55:23</span><span class="order-item">订单号:6666666666666</span></td>
阅读全文
摘要:获取class为target且索引为奇数的所有元素,并给他们添加class。 $(".target:odd").addClass("animated shake");
阅读全文
摘要:比如,如果我想把target2从left-well拷贝到right-well,我们可以这样写: $("#target2").clone().appendTo("#right-well");
阅读全文
摘要:让target4从我们的从right-well移到left-well,我们可以这样使用: $("#target4").appendTo("#left-well");
阅读全文
摘要:$("button").prop("disabled", true);
阅读全文
摘要:css .point_amount_label{ width: 120px; height: 40px; display: block; float: left; margin: 0 10px 0 0; text-align: center; border: 1px solid #e8e8e8; b
阅读全文
摘要:在被选元素的内部 prepend() 方法在被选元素的开头(仍位于内部)插入指定内容。 append() 方法在被选元素的结尾(仍然在内部)插入指定内容。
阅读全文
摘要:jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$("span").parent()或者$("span").parent(".class") jQuery.parents(expr),类似于jQuery.parents(expr),但是是查找所有祖先元素,不限于父元
阅读全文
摘要:input[type=radio],input[type=checkbox] { display: inline-block; vertical-align: middle; width: 20px; height: 20px; margin-left: 5px; -webkit-appearanc
阅读全文
摘要:Bootstrap 有一个 class 属性叫做 well,它的作用是为设定的列创造出一种视觉上的深度感
阅读全文