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.1k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
3 回答1.4k 阅读✓ 已解决
3 回答2.3k 阅读✓ 已解决
没做测试,不过你可以在 a 标签上走一下。然后拿到绝对路径。