问题描述
我想从 devtools 中加载具有以下特征的页面
const x = 10;
window.location = "http://google.com";
// wait for the page to load
console.log(x); // undefined :( I want to see '10' here!!
我也试过
history.replaceState(null,null,'https://google.com')
但这会导致错误
如果有 chrome 设置允许这样做,那也适用于我!
有什么建议吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)