Ext-实现带查询以及分页的列表
Ext-实现带查询以及分页的列表,前台:Store:var resource = new Ext.data.Store({ fields: ['imgpath','typeImage','title', 'type'], url: 'teaching/resource/resourceAction.evi?method=getResourceList', reader: new Ext.data.XmlReader( { record: "Item", totalRecords: "TotalCount" }, [{name:'title',mapping: 'title'}, {name:'type',mapping: 'type'},{name:'imgpath',mapping: 'imgpath'},{name:'typeImage',mapping: 'typeImage'} ] )});resource.addListener('load', function(st, rds, opts) { // st 是当前的store, rds是读到的Record[], opts是store的配置 for( var c=0; c"); //待定类别,先定死类别图片 }});.............
Tags: Ext  实现  查询  分页  JS  
Ext-基本布局的实现
Ext-基本布局的实现 Ext.onReady(function(){ var root=new Ext.tree.TreeNode({text:'功能',allowChildren:true,allowDrag:true,//checked:true,expanded:true});var n2 = new Ext.tree.TreeNode({text:'教师',allowDrag:true,url:'form.html'});var n1 = new Ext.tree.TreeNode({text:'用户类型'});n1.appendChild(n2);root.appendChild(n1,new Ext.tree.TreeNode({id:2,text:'选项二',allowDrag:true,url:'index.html'}),new Ext.tree.TreeNode({id:3,text:'选项三',allowDrag:true,url:'c.html'}),new Ext.tree.TreeNode({id:4,text:'选项四',allowDrag:true})); var tree=new Ext.tree.TreePanel(..............
Tags: Ext  布局  实现  JS  
分页:[«] 1[»]
Feed订阅集
勤劳致富^.^
Powered By Z-Blog   STYLE by busfly . FatMouse
Copyright © 2007 巴士飞扬技术博客. . 沪ICP备07027972号. 会员群1(VS为主):3769186.