
跨域
清秋め
高效办公
展开
-
ajax实现跨域请求
function load(){ //执行跨域请求 $.ajax({ url: "http://localhost:8080/all/process/test", type: "get", dataType: "jsonp", jsonp: "showData", //指定参数名称 ..原创 2021-03-11 21:03:02 · 279 阅读 · 0 评论 -
iframe 获取父窗口 调用方法 跨域
假设有一个 http://localhost:8080/项目下的 parent.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script> function load() { window.addEventListener("message",function(event){ console原创 2021-03-11 20:57:51 · 861 阅读 · 0 评论