ext.net StoreProxy localstore sessionstore的区别
来源:互联网 发布:政府与网络 编辑:程序博客网 时间:2024/05/22 15:48
<ext:ResourceManager runat="server" />
<script type="text/javascript">
Ext.onReady(function () {
Ext.regModel('Student', {
fields: ['id', 'name', 'age'],
proxy: {
type: 'localstorage',//localstore 会保存在本地资源 sessionstoreage 刷新数据会被清空
id: 'User-Searches'
}
});
var store = new Ext.data.Store({
model: 'Student'
});
store.add({ name: '张三', age: 18 });
store.add({ name: '李四', age: 19 });
store.sync();
store.load();
var msg = [];
store.each(function (rec) {
msg.push(rec.get('id') + ' ' + rec.get('name') + ' ' + rec.get('age'));
});
</script>
<script type="text/javascript">
Ext.onReady(function () {
Ext.regModel('Student', {
fields: ['id', 'name', 'age'],
proxy: {
type: 'localstorage',//localstore 会保存在本地资源 sessionstoreage 刷新数据会被清空
id: 'User-Searches'
}
});
var store = new Ext.data.Store({
model: 'Student'
});
store.add({ name: '张三', age: 18 });
store.add({ name: '李四', age: 19 });
store.sync();
store.load();
var msg = [];
store.each(function (rec) {
msg.push(rec.get('id') + ' ' + rec.get('name') + ' ' + rec.get('age'));
});
alert(msg.join('\n'));
VS2010 如何写extjs
});</script>
- ext.net StoreProxy localstore sessionstore的区别
- Ext.get()与Ext.fly()的区别
- ext-gwt与gwt-ext的区别
- EXT JS4与EXT JS3的区别
- Ext.get与Ext.fly 的区别
- Ext.get与Ext.fly 的区别
- EXT,GWT,GWT-EXT与EXT-GWT的区别
- ext.net combobox 的初始化
- EXT.NET的布局方式
- ext.net 数据的使用
- 【Ext.Net学习笔记】04:Ext.Net中使用数据、Ext.Net Store的用法、Ext.Net ComboBox用法
- Ext.NET
- Ext.Net
- EXT.NET
- Ext、GWT、GWT-Ext等之间的区别
- (转载)Ext.get与Ext.fly 的区别
- Ext基础1 -- Ext中 getDom、get、getCmp的区别
- Ext基础1 -- Ext中 getDom、get、getCmp的区别
- Set Partition Algorithm(集合划分算法)
- openGL中camera类的设计以及使用
- git+openssh 的安装与简单使用
- OpenCV(EmguCV)2.1新特性介绍之图像分割GrabCut(GrabCut Of OpenCV 2.1)
- File Fragmentation 贪心+分治 uva
- ext.net StoreProxy localstore sessionstore的区别
- html <textarea>出现乱码
- jquery 学习笔记
- (记下,准备翻译)Cassandra vs MongoDB vs CouchDB vs Redis vs Riak vs HBase vs Membase vs Neo4j comparison
- 颜色直方图的计算、显示、处理、对比及反向投影(How to Use Histogram? Calculate, Show, Process, Compare and BackProject)
- poj1364 - King
- 经典算法书籍推荐
- 轮廓的查找、表达、绘制、特性及匹配(How to Use Contour? Find, Component, Construct, Features & Match)
- 论MMORPG游戏服务器架构