Ext Js 的Ext.data.JsonStore的url - Web 开发 / Ajax
在Java项目中,对于JsonStore,可以这样写:
var question_type_store = new Ext.data.JsonStore({ // store configs remoteSort: true, proxy: new Ext.data.HttpProxy({ url: 'question.do?command=listsubject' }), // reader configs idProperty: 'deptId', fields: ['dataId', 'dataName', 'type'] });
var question_type_store = new Ext.data.JsonStore({ // store configs remoteSort: true, proxy: new Ext.data.HttpProxy({ url: 'xxx.aspx?xxx=xxxx' }), // reader configs idProperty: 'deptId', fields: ['dataId', 'dataName', 'type'] });