我正在 EXTJS 中制作一个组合框,它应该由 REST 服务填充。像这个例子: http ://docs.sencha.com/extjs/4.2.1/extjs-build/examples/form/forum-search.html
我想拨打这样的电话:
https://smartadresse.dk/service/locations/3/detect/json/granskoven%20glostrup?apikey=1E718C7E-70D7-4E3A-AB40-AF6671FDCB57
但它是这样的:
https://smartadresse.dk/service/locations/3/detect/json/?apikey=1E718C7E-70D7-4E3A-AB40-AF6671FDCB57&query=granskoven%20glostrup
你如何告诉 extjs 改变它?我的 Ext 代理如下所示:
proxy: {
type: 'jsonp',
url : 'https://smartadresse.dk/service/locations/3/detect/json/',
extraParams: {
apikey: '1E718C7E-70D7-4E3A-AB40-AF6671FDCB57',
},
reader: {
type: 'json',
root: 'streetName'
},