ajax 无法跳转网页的问题

ajax无法跳转网页。仅用于获取数据。跳转网页要在前端window.location.href

1,跨域访问要设置,crossDomain:true;

 // dataType : "jsonp",//jsonp可以用于构造二次请求如Callback=getMessageone
// jsonp:"Callback",
// jsonpCallback:"getMessageone",
// crossDomain:true,
posted @ 2018-08-04 23:16  blues-lee  阅读(1404)  评论(0编辑  收藏  举报