2016年5月6日

摘要: Javascript常用方法函数收集(二) 31.判断是否Touch屏幕 function isTouchScreen(){ return (('ontouchstart' in window) || window.DocumentTouch && document instanceof Docum 阅读全文
posted @ 2016-05-06 18:08 橘子皮0.0 阅读(226) 评论(0) 推荐(0)
 
摘要: 1.字符串长度截取 function cutstr(str, len) { var temp, icount = 0, patrn = /[^\x00-\xff]/, strre = ""; for (var i = 0; i < str.length; i++) { if (icount < le 阅读全文
posted @ 2016-05-06 18:06 橘子皮0.0 阅读(162) 评论(0) 推荐(0)
 
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-05-06 17:38 橘子皮0.0 阅读(1) 评论(0) 推荐(0)