12 2016 档案
js 判断IE浏览器,包含IE6/7/8/9
摘要://判断IE6-9的版本,num可取值为6/7/8/9//若不给参数num,仅判断浏览器是否为IE,不判断版本 阅读全文
posted @ 2016-12-22 16:20 百里登风 阅读(662) 评论(0) 推荐(1)
js localStorage 设置和取值
摘要:定义 Storage 对象,对象有get(取值), set(设置), add(加入新值)三个方法 阅读全文
posted @ 2016-12-20 15:54 百里登风 阅读(36466) 评论(0) 推荐(2)
js cookie
摘要:1. 设置COOKIE 函数解析: 以上的函数参数中,cookie 的名称为 cname,cookie 的值为 cvalue,并设置了 cookie 的过期时间 expires。 该函数设置了 cookie 名、cookie 值、cookie过期时间。 2. 获取COOKIE 函数解析: cooki 阅读全文
posted @ 2016-12-20 00:58 百里登风 阅读(239) 评论(0) 推荐(0)
判断是否微信
摘要:function is_weixn() { var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { return true; } else { return 阅读全文
posted @ 2016-12-08 14:38 百里登风 阅读(227) 评论(0) 推荐(0)
根据屏幕大小动态设置字体rem
摘要:1.根据屏幕大小动态设置字体rem 阅读全文
posted @ 2016-12-08 14:12 百里登风 阅读(2104) 评论(0) 推荐(0)