一个页面调用另一个域的页面,他们之间如何传值?有两个页面A.html和B.html这两个页面是不在不同的站点上:
http://192.168.0.1/A.html
http://192.168.0.2/B.htmlA.html上有个按钮,点击后用window.open的方式打开B.html,即:
window.open("http://192.168.0.2/B.html","_blank");这样的话,在两个页面间如何传数据呀?注意:有跨域问题。
http://192.168.0.1/A.html
http://192.168.0.2/B.htmlA.html上有个按钮,点击后用window.open的方式打开B.html,即:
window.open("http://192.168.0.2/B.html","_blank");这样的话,在两个页面间如何传数据呀?注意:有跨域问题。
用location.search取值再处理