上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 40 下一页
摘要: 方法一:if (totalCount % mStore.pageSize == 0) totalPage = parseInt(totalCount / mStore.pageSize); else totalPage = parseInt(totalCount / mStore.pageSize) + 1;方法二: totalPage = parseInt(parseInt(totalCount - 1) / mStore.pageSize) + 1; (一种算法)等价于下面一句: totalPage = parseIn... 阅读全文
posted @ 2013-01-25 16:16 xust 阅读(128) 评论(0) 推荐(0)
摘要: 判断相等 用 ==,判断 是否等于空 可以用 = null 或 == null 阅读全文
posted @ 2013-01-25 16:07 xust 阅读(171) 评论(0) 推荐(0)
摘要: Ext.MessageBox.show({ title: this.msgTitle, msg: action.result.message, buttons: Ext.Msg.OK, icon: Ext.Msg.INFO, fn: function (buttonId, text, opt) { switch ... 阅读全文
posted @ 2013-01-25 16:05 xust 阅读(93) 评论(0) 推荐(0)
摘要: xtype: 'textfield',fieldStyle: { //fieldStyle 样式应用于text 文本控件 background: 'white'},style: 'color:red;background:blue;',//style 样式应用于label 文本 阅读全文
posted @ 2013-01-25 16:05 xust 阅读(1355) 评论(0) 推荐(0)
摘要: var mGrid = Ext.getCmp('regionMainGrid').getSelectionModel(); if (mGrid.hasSelection()) { var record = mGrid.getLastSelected(); Ext.Ajax.request({ url: '/BscRegion/HasChildren', params: record.data, success: function (form, ac... 阅读全文
posted @ 2013-01-25 16:04 xust 阅读(408) 评论(0) 推荐(0)
摘要: 1. onRender: function (cmp, eOpts) { this.getStudentStore().load(); },function (cmp, eOpts) 可以写成 function () 但 function () 不会用到 参数2. { xtype: ''numberfield'', name: ''printNum'', fieldLabel: ''打印次数'', allowBlank: false, minValue: 0,value:0 }xtype: ' 阅读全文
posted @ 2013-01-25 16:03 xust 阅读(522) 评论(0) 推荐(0)
摘要: 方法一:(Form 中必须放name与model的字段名称相同的控件){ xtype: 'hiddenfield', name: 'id', id: 'id', hidden: true } var mNewRecord = new IniStore.model.Store(); mNewRecord.set('id', this.activeRecord.data.id); mImportForm.loadRecord(mNewRecord); mImportForm.submit(... 阅读全文
posted @ 2013-01-25 16:00 xust 阅读(152) 评论(0) 推荐(0)
摘要: // 导入 onImport: function (button, e, eOpts) { var mMainGrid = Ext.getCmp('storeMainGrid'); var mSelections = mMainGrid.getSelectionModel().getSelection(); if (mSelections.length > 0) { var mWin = Ext.getCmp('winImport'); mWin.show(); } else... 阅读全文
posted @ 2013-01-25 15:59 xust 阅读(186) 评论(0) 推荐(0)
摘要: this.getAttachementStore().load({ callback: function (records, operation, success) { var json = Ext.decode(operation.response.responseText); var data = { files: json.data }; var strTable = ""; st... 阅读全文
posted @ 2013-01-25 15:58 xust 阅读(216) 评论(0) 推荐(0)
摘要: var data = { name: 'Jack Slocum', title: 'Lead Developer', company: 'Ext JS, LLC', email: 'jack@extjs.com', address: '4 Red Bulls Drive', city: 'Cleveland', state: 'Ohio', zip: '44102', drinks: ['Red Bull', 'Coffee',  阅读全文
posted @ 2013-01-25 15:56 xust 阅读(323) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 40 下一页