var urlgeren = 'http://dr.vipc.cn/api/MyOrderRecommend.action?gameName=ssq&pn=1'$(function(){
$.ajax({
type:'POST',
url : urlgeren,
dataType : 'jsonp',
jsonp:"jsoncallback",
success : function(data) {
console.log(data)
},
});
})
为什么报这个错误 Unexpected token
把地址放到浏览器能拿到数据啊,ajax请求就报错了;
Your Answer
1 answers
jsonp跨域是需要后台支持的,返回的数据要包含在传过去的jsonp中,我直接在浏览器看,你的返回数据是没有进行处理的。http://www.cnblogs.com/dojo-l...X4X
Hot tools Tags
Hot Questions
How to sort a HashMap in Java [duplicate]
2026-01-03 22:22:14
"selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element" while clicking a 'Next' button with Selenium
2026-01-03 22:01:28
Populate one dropdown based on selection in another
2026-01-03 21:44:04
Show / hide div on click with CSS
2026-01-03 21:22:12
How to Sort a Multi-dimensional Array by Value
2026-01-03 21:01:12
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
Douyin level price list 1-75
20416
7
20416
7
wifi shows no ip assigned
13576
4
13576
4
Hot Article
How to set up price alerts so you don't miss key entry points?
2026-01-01
By DDD
Why do professional traders advise newbies to start with low leverage?
2026-01-01
By DDD
Tutorial on existence check of nested array values in PHP multidimensional array
2025-12-28
By DDD
How to draw dotted lines in PS How to draw various dotted lines in PS
2025-12-28
By DDD






