posted @ 2015-09-28 09:58
09 2015 档案
摘要:123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 ...
阅读全文
摘要:1. width: 1200px; height: 600px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);2. width: 1200px; height: 600px; posi...
阅读全文
posted @ 2015-09-28 09:55
摘要:31.判断是否Touch屏幕function isTouchScreen(){ return (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch);}32.判断是否打开...
阅读全文
posted @ 2015-09-11 16:46
摘要:1.字符串长度截取function cutstr(str, len) { var temp, icount = 0, patrn = /[^\x00-\xff]/, strre = ""; for (var i = 0; i = 0 && thi...
阅读全文
posted @ 2015-09-11 16:45
摘要:什么是正则正则:也叫做规则,让计算机能够读懂人类的规则正则都是用来操作字符串的正则的写法var re=/a/; 或者var re=new RegExp()正则的常用方法正则中默认是区分大小写的!如果想不区分大小写的话,在正则的最后加标识i写法:var re=/a/i;或者var re=new Reg...
阅读全文
posted @ 2015-09-05 22:35