index.html和detall.html在同级目录,以下代码在PC调试可以跳转,嵌入之后却失效了,难道要window.location.href = url;
吗
index.js
var url = 'detall.html';
location.href = url;
index.html和detall.html在同级目录,以下代码在PC调试可以跳转,嵌入之后却失效了,难道要window.location.href = url;
吗
index.js
var url = 'detall.html';
location.href = url;
10 回答11.7k 阅读
2 回答3.2k 阅读✓ 已解决
5 回答835 阅读
3 回答1.7k 阅读✓ 已解决
4 回答2.2k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
3 回答872 阅读✓ 已解决
没做测试,不过你可以在 a 标签上走一下。然后拿到绝对路径。