摘要: 场景:<div class="down-con"> <div class="down"> .......</div> </div> 点击down-con这个div来切换 down 这个div的显示或隐藏。 用冒泡的方法: 1.为外层div添加点击事件,在事件中先取消事件冒泡 阅读全文
posted @ 2017-12-18 17:40 酱油君nihao 阅读(575) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/codebook/p/5924073.html 阅读全文
posted @ 2017-12-18 17:29 酱油君nihao 阅读(225) 评论(0) 推荐(0) 编辑
摘要: jsp:js: var fileName = $("#avatarFile")[0].files[0].name;var fileType = fileName.substr(fileName.lastIndexOf(".")).toUpperCase();if (fileType != ".BMP" && fileType != ".PNG" && fileType != ".GIF" &&... 阅读全文
posted @ 2017-12-18 14:15 酱油君nihao 阅读(3420) 评论(0) 推荐(1) 编辑
摘要: var userAgentInfo = navigator.userAgent;if (userAgentInfo.indexOf("Tablet") > 0) { //平板 }else{ //PC } 阅读全文
posted @ 2017-12-11 08:53 酱油君nihao 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 删除: 添加一个相同的样式,名字自己弄,然后多个display:none,如图; 然后用jq在上面这个down-con上添加下面这个down-con-a这个类,这样样式会覆盖; 修改的话则是不添加display:none;添加为自己要的样式。 阅读全文
posted @ 2017-10-23 19:41 酱油君nihao 阅读(11616) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-10-20 20:43 酱油君nihao 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 如题,解决方法如图: 原因:可能是有很多个窗口,而上面那句代码只关闭了一个。 阅读全文
posted @ 2017-10-20 20:01 酱油君nihao 阅读(158) 评论(0) 推荐(0) 编辑
摘要: $('<style>::-ms-clear{display:none}</style>').appendTo('head'); 阅读全文
posted @ 2017-09-30 08:39 酱油君nihao 阅读(252) 评论(0) 推荐(0) 编辑