摘要: var obj={}; if(JSON.stringify(obj) == "{}"){ console.log("obj为:{}"); } 阅读全文
posted @ 2021-03-05 17:19 於生 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 比较常用有以下几种方式: //用href跳转 window.location.href = "https://www.cnblogs.com/lyso"; //用http的重定向来跳转 window.location.replace("https://www.cnblogs.com/lyso"); 阅读全文
posted @ 2021-03-05 11:48 於生 阅读(2235) 评论(0) 推荐(0) 编辑