jQuery实现跨域请求

dataType使用jsonp的方式请求

$.ajax({
		url : "http://sso.chinasofti.com/user/" + _ticket,
		dataType : "jsonp",
		type : "GET",
		success : function(data){
			alert(data)
		}
	});
发布了62 篇原创文章 · 获赞 0 · 访问量 1247

猜你喜欢

转载自blog.csdn.net/weixin_45616246/article/details/103275539