首页
Java
登录
6mi
u
盘
搜
搜 索
Java
005 - 使用script标签解决跨域
005 - 使用script标签解决跨域
xiaoxiao
2021-02-28
116
解决跨域问题:
使用
script
标签向另一个域上的资源进行请求,传递参数
fn
,保存将来要执行的
js
函数名
<script> function callback(msg){ alert(msg) } </script> <script src="http://www.b.com?fn=callback"></script> <?php $str = 'Hello zhangSan'; $fn = $_GET['fn']; echo $fn.'("' .$str '")'; ..
转载请注明原文地址: https://www.6miu.com/read-31956.html
技术
最新回复
(
0
)