win7/ubuntu9.10/双系统/GRUB2,覆盖9.10,全新硬盘安装10.04过程!
2010-12-24 21:55
330 查看
前台部分
首先定义一个数组,用来储存STORE里的值。
之后利用store自带的each遍历方法把数组填满。
最后建一个ajax请求传送到后台即可。
var lstAddRecord=new Array();
store.each(function(record) {
lstAddRecord.push(record.data);
});
Ext.Ajax.request({
url: 'function/rivaldata/rivalDataAction.do?tag=add',
params: {strJson:Ext.encode(lstAddRecord)}
});
后台解析部分
主要是利用了JSON-Lib包,实现了关键功能。
String strJson=request.getParameter("strJson");
JSONArray js=JSONArray.fromObject(strJson);
JSONObject jo=null;
Iterator it=js.iterator();
while(it.hasNext()){
jo=(JSONObject)it.next();
//follow codes are get the value :)
String goodId=jo.getString("goodId");
Double goodsPrice=jo.getDouble("goodsPrice");
//ok, to do something use the vaules:)
System.out.println("the goodId is :"+goodId);
}
首先定义一个数组,用来储存STORE里的值。
之后利用store自带的each遍历方法把数组填满。
最后建一个ajax请求传送到后台即可。
var lstAddRecord=new Array();
store.each(function(record) {
lstAddRecord.push(record.data);
});
Ext.Ajax.request({
url: 'function/rivaldata/rivalDataAction.do?tag=add',
params: {strJson:Ext.encode(lstAddRecord)}
});
后台解析部分
主要是利用了JSON-Lib包,实现了关键功能。
String strJson=request.getParameter("strJson");
JSONArray js=JSONArray.fromObject(strJson);
JSONObject jo=null;
Iterator it=js.iterator();
while(it.hasNext()){
jo=(JSONObject)it.next();
//follow codes are get the value :)
String goodId=jo.getString("goodId");
Double goodsPrice=jo.getDouble("goodsPrice");
//ok, to do something use the vaules:)
System.out.println("the goodId is :"+goodId);
}
相关文章推荐
- Ubuntu9.10 硬盘安装 双系统 过程图解
- XP 系统下安装Windows 7(用硬盘全新安装)
- grub2正确配置――硬盘安装ubuntu 9.10之后不能启动xp解决方法
- 无软驱无光驱直接在硬盘上全新安装xp 系统(详细图解)
- Windows 7 下直接硬盘安装 Ubuntu 10.04成为双系统的方法
- 安装 Ubuntu 9.10 服务器版本系统全过程
- 安装 Ubuntu 9.10 服务器版本系统全过程
- x200 vistar系统硬盘安装ubuntu9.10
- U盘安装单系统ubuntu10.04之全过程&拔掉U盘后系统无法启动
- XP系统下硬盘全新安装Windows 7
- Windows下硬盘安装 ubuntu 10.10 / 10.04 / 9.10
- 无软驱无光驱直接在硬盘上全新安装xp 系统(详细图解)
- 在Windows系统上硬盘安装Desktop版的Ubuntu 7.10的引导过程(转)
- Windows 7下硬盘安装Ubuntu 10.04简明教程(非Wubi安装)(内有亲试过程)
- XP下硬盘安装Ubuntu 10.04 组成双系统
- 从xp系统全新安装windows7旗舰版过程
- Windows下硬盘安装 ubuntu 11.10 / 11.04 / 10.10 / 10.04 / 9.10
- windows中硬盘安装ubuntu-9.10 实现双系统启动
- 无软驱无光驱直接在硬盘上全新安装xp 系统(详细图解)
- Windows 7 下直接硬盘安装 Ubuntu 10.04成为双系统的方法: