Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
325 views
in Technique[技术] by (71.8m points)

vue项目使用window.open() 没反应...

注释的链接是可以跳转的,但下面那个this.uewUrl就不行,

看了一些教程说要加个参数 "_blank",但好像不行,加了后地址就消失了,如图二

image.png

image.png


去掉"_blank" 地址显示正常,但点击没反应

image.png

image.png


this.newUrl是有值的,浏览器也能打开

image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你上面
window.open(url)
下面变成了
window.open=(url)
多了个等号,当然不行啦


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...