03 2016 档案
js浏览器检测
摘要:1.判断浏览器类型 if navigator.userAgent.indexOf(”MSIE”)>0) {} //判断是否IE浏览器 if(isFirefox=navigator.userAgent.indexOf(”Firefox”)>0){ }判断是否火狐浏览器 if(isSafari=navi
阅读全文
点击空白处隐藏div-阻止事件冒泡
摘要:$(" body").click(function(){ $("#div").hide(); }); $("button").click(function(e){ $("div").show(); e.stopPropagation();//阻止冒泡到body }); $("#div").click
阅读全文
移动端通讯录选择功能
摘要:<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta name="viewport" content="width=device-width, in
阅读全文
浙公网安备 33010602011771号