首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Ext后台老板返回到前台 进行验证 再赋给某一列值

2012-08-27 
Ext后台返回到前台 进行验证 再赋给某一列值action 。。。。。??? this.getResponse().setCharacterEncoding(U

Ext后台返回到前台 进行验证 再赋给某一列值

action

。。。。。

??? this.getResponse().setCharacterEncoding("UTF-8");
??? ??? ??? ??? ??? this.getResponse().getWriter().write(“String”);
??? ??? ??? ??? ??? this.getResponse().getWriter().flush();

?

js

??? var recordDef = Ext.data.Record.create([
??? /*{
??? ??? name : 'merchantname',
??? ??? mapping : 'merchantname',
??? ??? type : 'string'
??? },??? ??? ?????? */????????????????????????????????
??? {
??? ??? name : 'accountMoney',
??? ??? mapping : 'accountMoney',
??? ??? type : 'string'
??? } ]);

?

?

?

?

Ext.Ajax.request({??? ??? ??? ??? ??? ??? ??? ??? ???
??? ??? ??? url : 'accountBalance__getAccountMoney.action',
??? ??? ??? params : {
??? ??? ??? ??? merchantId : searchmerchantid.getValue()
??? ??? ??? },
??? ??? ??? success : function(response) {
??? ??? ??? ??? if(response.responseText == 'error'){
??? ??? ??? ??? ??? Ext.Msg.alert('失败');
??? ??? ??? ??? }else{
??? ??? ??? ??? ??? ds.removeAll();
??? ??? ??? ??? ??? ds.addSorted([
??? ??? ??? ??? ??? ?? new recordDef({
??? ??? ??? ??? ??? ??? ?? accountMoney:response.responseText})
??? ??? ??? ??? ??? ?? ]);
??? ??? ??? ??? };
??? ??? ??? },
??? ??? ??? failure : function() {
??? ??? ??? ??? Ext.Msg.show({
??? ??? ??? ??? ??? ??? ??? title : '错误提示',
??? ??? ??? ??? ??? ??? ??? msg : '发生错误!',
??? ??? ??? ??? ??? ??? ??? buttons : Ext.Msg.OK,
??? ??? ??? ??? ??? ??? ??? icon : Ext.Msg.ERROR
??? ??? ??? ??? ??? ??? });
??? ??? ??? }
??? ??? });

热点排行
Bad Request.