请教extjs store jsonp 使用出错的问题

在store的type使用jsonp,可以获取到另一个系统的数据,可是会出错的,如图图片说明
可是在response可以看到数据啊

 {"total":10,"data":[{"templateName":"CNMS eAlert","priority":"HIGH","usageCount":43,"lastUpdatedBy":"80364623","lastUpdatedOn":1491375424000},{"templateName":"Test Template","priority":"HIGH","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1489487462000},{"templateName":"bb","priority":"NORMAL","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1491374240000},{"templateName":"cc","priority":"HIGH","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1466148098585},{"templateName":"dd","priority":"HIGH","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1466736287777},{"templateName":"kk","priority":"NORMAL","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1470972110000},{"templateName":"mm","priority":"NORMAL","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1468999350496},{"templateName":"mmk","priority":"HIGH","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1467282916693},{"templateName":"pp","priority":"HIGH","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1467082778009},{"templateName":"yy","priority":"HIGH","usageCount":0,"lastUpdatedBy":"80364623","lastUpdatedOn":1489570923000}],"success":true}

加上个header的

 Request URL:http://10.87.61.95:8080/notification-gateway-lite/glossary/template/list?_dc=1491878741565&start=0&limit=25&page=1&sort=%5B%7B%22property%22%3A%22templateName%22%2C%22direction%22%3A%22ASC%22%7D%5D&callback=Ext.data.JsonP.callback2
Request Method:GET
Status Code:200 OK
Remote Address:10.87.61.95:8080
Referrer Policy:no-referrer-when-downgrade
Response Headers
view source
Content-Type:application/json;charset=UTF-8
Date:Tue, 11 Apr 2017 02:45:41 GMT
Server:Apache-Coyote/1.1
Transfer-Encoding:chunked
Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate, sdch
Accept-Language:zh-CN,zh;q=0.8
Connection:keep-alive
Cookie:JSESSIONID=823A48148291DFCADFC95EB874E485EC
Host:10.87.61.95:8080
Referer:http://localhost:8080/login
User-Agent:Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3000.4 Safari/537.36
Query String Parameters
view source
view URL encoded
_dc:1491878741565
start:0
limit:25
page:1
sort:[{"property":"templateName","direction":"ASC"}]
callback:Ext.data.JsonP.callback2

请问这是个什么情况呢?是没做代理请求吗,如果要做,请问这个代理请求该怎么做呢?希望可以给点具体的例子来参考,谢谢!
(extjs5+Java,还有,对另一个系统是不能进行修改的)

1个回答

不是回你了。。你那个系统返回的是json数据,你指定proxy为jsonp没用的,jsonp数据是
回调函数名(JSON数据)
这种格式的,需要做代理页面才行

qq_36702839
qq_36702839 有其他的代理页面的方法吗????????????????
接近 3 年之前 回复
qq_36702839
qq_36702839 我知道啊,可是代理不会写,按照你上次提供的代理参考去写还是不行,智商真的不够用啊~~~~~
接近 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问