ajax_jsonp —— 跨域

时间:2023-03-09 13:31:45
ajax_jsonp —— 跨域

JSONP:原理是script标签

一、抓包

ajax_jsonp —— 跨域

二、不用每次都连接 localhost 的方法
ajax_jsonp —— 跨域ajax_jsonp —— 跨域
三、抓包后所需的参数
ajax_jsonp —— 跨域ajax_jsonp —— 跨域
  • su?:后面跟的是传递过去的参数。
  • cb:是 callback 后面跟的是对返回的参数的处理。
四、jsonp.js的使用方法
function (){
jsonp( url 路径 , data 传递过去的参数 , succFn 成功后返回的参数的处理函数 );
}

ajax_jsonp —— 跨域

ajax_jsonp —— 跨域