摘要:
var obj={}; if(JSON.stringify(obj) == "{}"){ console.log("obj为:{}"); } 阅读全文
摘要:
比较常用有以下几种方式: //用href跳转 window.location.href = "https://www.cnblogs.com/lyso"; //用http的重定向来跳转 window.location.replace("https://www.cnblogs.com/lyso"); 阅读全文