赞
踩
<iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
src: 'http://127.0.0.1:8000/jkzs.html?token=1234567890'
在jkzs.html代码里获取token
- let iframeUrl = window.self.location.href;
- let b = iframeUrl.lastIndexOf("token=")
- b = iframeUrl.substring(b + 6, iframeUrl.length)
-
- console.log(b)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。