![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
潘宸 .
这个作者很懒,什么都没留下…
展开
-
js常用方法
删除function del() {var msg = “您真的确定要删除吗?\n\n请确认!”;if (confirm(msg)==true){return true;}else{return false;}}原创 2019-05-17 11:40:06 · 348 阅读 · 0 评论 -
退出登录后使页面无法退回上一页
$(function(){ if(window.history && window.history.pushState){ $(window).on(“popstate”, function(){ window.history.pushState(“forward”, null, “#”); window.history.forward(1); ...原创 2019-08-01 20:37:10 · 857 阅读 · 0 评论 -
在layUI中无法使用onchange事件对下拉框进行监听
写了一个天我一直以为我js代码有问题,然而并不是这样,而是layUI插件的问题。我需要对下拉框进行监听。用layui的写法才可以,这个很坑。原创 2019-08-18 16:19:56 · 1033 阅读 · 1 评论