首页 新闻 会员 周边

Sencha Touch 的PullRefresh 插件的url 填写的是什么,请具体一点,谢谢。

0
悬赏园豆:10 [待解决问题]
 1 {
 2    xtype : 'list',
 3    plugins: [
 4           {
 5            xclass: 'Ext.plugin.ListPaging',
 6               autoPaging: true,//是否滚动到页面底部的时候自动请求刷新
 7               noMoreRecordsText :  "没有更多数据了!",
 8               loadMoreText :  "加载更多数据...",
 9                
10               xclass: 'Ext.plugin.PullRefresh',
11               pullText: '下拉刷新...',
12               releaseText : '松开刷新...',
13               loadingText : '请稍等...',
14               loadedText : '加载...',
15               lastUpdatedText : '最近刷新时间 '
16           }
17       ],
18    itemTpl : '<image style="width:20px;" src="resources/images/tp.png"></image><span style="font-size:0.8em;">{imgName}</span>',
19    name : 'topologyimglist',
20    itemId : 'topologyimglist',
21    emptyText : '<table style="width:100%;"><tr><td style="text-align:center;">无数据...               </td></tr></table>',
22    loadingText : false,
23    store : 'xxx'//你的store,当然你也可以在其他地方绑定当前list和你的store
24     
25   }

上面是在view里的代码。url是写在store里的,不太明白url应该怎么定义,请具体解释,谢谢。

 

 1 Ext.define('TransAssistant.store.TopologyImgStore', {
 2  extend : 'Ext.data.Store',
 3  config : {
 4   storeId : 'topologyImgStore',
 5   model : 'TransAssistant.model.TopologyImgModel',
 6  
 7         pageSize: 10,
 8         proxy: {
 9             type: "ajax",
10  
11             //每页显示多少条的变量名,默认为limit
12             limitParam: 'limit',
13             //当前请求的页数的变量名,默认为page             
14             pageParam: 'page',
15             //请求的服务器的地址
16             url : config.actionUrl+"listTopologyPic.action",
17             reader: {
18                 type: "json",
19                 rootProperty: "list"//保护store数据的json变量名
20             }
21         },
22         autoLoad: false//是否自动加载,一般为否
23  }
24 });
v以恒的主页 v以恒 | 初学一级 | 园豆:196
提问于:2015-05-21 12:04
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册