03 2016 档案
js浏览器检测
摘要:1.判断浏览器类型 if navigator.userAgent.indexOf(”MSIE”)>0) {} //判断是否IE浏览器 if(isFirefox=navigator.userAgent.indexOf(”Firefox”)>0){ }判断是否火狐浏览器 if(isSafari=navi 阅读全文
posted @ 2016-03-09 18:16 正正果实 阅读(544) 评论(0) 推荐(0)
点击空白处隐藏div-阻止事件冒泡
摘要:$(" body").click(function(){ $("#div").hide(); }); $("button").click(function(e){ $("div").show(); e.stopPropagation();//阻止冒泡到body }); $("#div").click 阅读全文
posted @ 2016-03-09 16:41 正正果实 阅读(304) 评论(0) 推荐(0)
原型封装函数
摘要:无标题文档 button01 阅读全文
posted @ 2016-03-01 18:00 正正果实 阅读(499) 评论(0) 推荐(0)
移动端通讯录选择功能
摘要:<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta name="viewport" content="width=device-width, in 阅读全文
posted @ 2016-03-01 17:55 正正果实 阅读(1494) 评论(0) 推荐(0)