两种办法:
-
location.href
一定要加http://
或https://
-
使用官方提供的标签:
<web-view src="https://uniapp.dcloud.io/static/web-view.html"></web-view>
两种办法:
location.href
一定要加http://
或https://
使用官方提供的标签:
<web-view src="https://uniapp.dcloud.io/static/web-view.html"></web-view>