摘要:
场景:<div class="down-con"> <div class="down"> .......</div> </div> 点击down-con这个div来切换 down 这个div的显示或隐藏。 用冒泡的方法: 1.为外层div添加点击事件,在事件中先取消事件冒泡 阅读全文
摘要:
https://www.cnblogs.com/codebook/p/5924073.html 阅读全文
摘要:
jsp:js: var fileName = $("#avatarFile")[0].files[0].name;var fileType = fileName.substr(fileName.lastIndexOf(".")).toUpperCase();if (fileType != ".BMP" && fileType != ".PNG" && fileType != ".GIF" &&... 阅读全文