/**
* @Author sai
*
*/
Ext.define('SmartMenu.store.NewsStore',
{
extend:'Ext.data.Store',
config:
{
model:'SmartMenu.model.News',
newsNum:'0',
autoLoad: true,
pageSize: 4,
proxy: {
type: 'jsonp',
url: 'http://192.168.1.126:8093/Serv/PhoneServHandler.ashx',
callbackKey: 'callback',
pageParam:'pageIdx', //页码
limitParam:'pageSize',//页数
extraParams:{req:'GetNewsReport'},
reader: {
type: 'json',
rootProperty: 'items'
},
},
}
});
在 list 视图上 加上这个 config:{ limit: 4, plugins: [{ xclass: 'Ext.plugin.ListPaging',autoPaging: true}]};
分享到:
相关推荐
sencha touch 折叠list
sencha touch list demo
A demonstration of how the list view works in Sencha Touch 2.
Sencha Touch 2入门教程之MVC 讲解如何使用 Sencha Touch 2 mvc模式来开发一个登录界面
sencha touch 2 实现的贪吃蛇 希望对大家有所帮助
本文通过对 Sencha Touch 框架的介绍,使读者对该框架有一定的了解,并通过一些代码示例给用户更详细直观的对 Sencha Touch 框架功能的了解。 ExtJS ExtJS 是为 web 开发人员提供的基于 JavaScript 和 web 标准快速...
sencha touch2移动开发框架,ajax获取数据
Sencha Touch开发的项目《般若人生》源码
sencha touch 应用案例 sencha touch 案例 一个完整的sencha touch 应用案例 移动WEB社区开发的日志案例 非常不错!
Sencha Touch 2 简介知识,环境搭建,组件介绍和布局事例
sencha touch cookbook 英文高清文字版 !
MAC OS 下sencha touch +cordova 开发环境配置。可以将H5 hybird 应用打包成IOS 应用。
sencha touch 2.4.0最新版 原版包下载
sencha touch中文翻译文档,包含sencha touch入门基础和一些控件的使用说明
Sencha Touch 2入门教程之MVC例子程序源代码 用Sencha Touch 2 之MVC模式写的一个登录界面的例子
sencha touch 是一个移动平台UI开发框架,可以实现各种绚丽的页面效果
这是我做的一个sencha touch 的项目,测试并能运行,希望对大家有帮助
sencha touch grid