jQuery的跨域

来源:3-5 跨域调用

2022一定转行成功

2021-06-15 07:49:48

这样写是否正确?

相关代码:

$.ajax({
url:"",
type:"get",
async:true,
dataType:"jsonp",
success:function(data){
console.log(data);
}
})


写回答

1回答

好帮手慕星星

2021-06-15

同学你好,jQuery跨域一般是这样的,没问题。

祝学习愉快!

0

0 学习 · 14456 问题

查看课程