需要下载 ext-basex.rar ,将包里的ext-basex.js 引入工程即可
源代码方法:
- var conn = Ext.lib.Ajax.getConnectionObject().conn;
- conn.open(method,url,async);
- conn.send(params);
- var data =conn.responseText;
var conn = Ext.lib.Ajax.getConnectionObject().conn; conn.open(method,url,async); conn.send(params); var data =conn.responseText;
测试小例子:
- var conn = Ext.lib.Ajax.getConnectionObject().conn;
- conn.open("get", '../report/getId.form?temp='+new Date(),false);
- conn.send(null);
- // 成功状态码为200
- if (conn.status == "200") {
- a = Ext.util.JSON.decode(conn.responseText).result.ID;
- }