摘要: function include(path){ var a=document.createElement("script"); a.type = "text/javascript"; a.src=path; var head=document.getElementsByTagName("head") 阅读全文
posted @ 2016-06-14 20:31 MrZou 阅读(1392) 评论(0) 推荐(0) 编辑
摘要: div#div2{display: table; width: 100%; height: 100%; text-decoration: none; outline: none; -webkit-transition: all 800ms ease-out; /* CSS3 transition. 阅读全文
posted @ 2016-06-13 17:06 MrZou 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 设置html页面缓存方法: 静态的html页面想要设置使用缓存: code 1. <meta http-equiv="Cache-Control" content="max-age=7200" /> 2. <meta http-equiv="Expires" content="Mon, 20 Jul 阅读全文
posted @ 2016-06-10 10:23 MrZou 阅读(15476) 评论(0) 推荐(0) 编辑
摘要: opener 属性是一个可读可写的属性,可返回对创建该窗口的 Window 对象的引用 阅读全文
posted @ 2016-05-28 12:41 MrZou 阅读(209) 评论(0) 推荐(0) 编辑
摘要: $(function () { $('#test').blur(function () { var that = this; //或者用闭包 setTimeout(function () { $(that).focus(); },100); }); }); $('#test').blur(funct 阅读全文
posted @ 2016-05-19 15:10 MrZou 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 注意:当前1.1.3版本的zepto,已经有模块来支持wp8 原先的zepto,通过__proto__赋值,来使dom继承到$.fn方法, 无奈IE11之前的IE10,IE9不支持这种写法, 所以我们只能自己手动把方法添加到dom // `$.zepto.Z` swaps out the proto 阅读全文
posted @ 2016-05-11 09:45 MrZou 阅读(136) 评论(0) 推荐(0) 编辑
摘要: http://echarts.baidu.com/图表制作 阅读全文
posted @ 2016-05-06 09:35 MrZou 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 两种属性的写法如下: 1、<input type="text" name="name" value="xxx" disabled="true"/> 2、<input type="text" name="name" value="xxx" readonly="true"/> 这两种写法都会使显示出来的 阅读全文
posted @ 2016-05-05 10:20 MrZou 阅读(170) 评论(0) 推荐(0) 编辑
摘要: trigger() 方法触发被选元素的指定事件 <html><head><script type="text/javascript" src="/jquery/jquery.js"></script><script type="text/javascript">$(document).ready(f 阅读全文
posted @ 2016-04-27 16:00 MrZou 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 把这么一段代码,加到jquery.mobile.js中后问题解决了。 $(document).on('mobileinit',function(){ $.mobile.changePage.defaults.changeHash = false; $.mobile.hashListeningEnab 阅读全文
posted @ 2016-04-21 11:24 MrZou 阅读(562) 评论(0) 推荐(0) 编辑