qq_36702839
qq_36702839
2017-04-11 03:05

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

  • json
  • extjs

在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条回答