摘要: 最简单的弹出store中的值listeners: { itemtap: function(nestedList, list, index, target,record,e,eOpts) { var id = record.get('id'); ... 阅读全文
posted @ 2012-05-27 12:21 范永强 阅读(103) 评论(0) 推荐(0)
摘要: 最简单的弹出store中的值listeners: { itemtap: function(nestedList, list, index, target,record,e,eOpts) { var id = record.get('id'); alert(id); } 阅读全文
posted @ 2012-05-27 12:21 范永强 阅读(128) 评论(0) 推荐(0)
摘要: listeners: { el: { tap: function(e, target){ self.query('button[action=desktop_set_cancel_btn... 阅读全文
posted @ 2012-05-27 12:20 范永强 阅读(233) 评论(0) 推荐(0)
摘要: listeners: { el: { tap: function(e, target){ self.query('button[action=desktop_set_cancel_btn]')[0].setText('完成'); var uiName = $(target).parent('.ui_list_item').attr('ths_ui_name'); $(target).pare... 阅读全文
posted @ 2012-05-27 12:20 范永强 阅读(157) 评论(0) 推荐(0)
摘要: 代码:Ext.application({ name: 'Sencha', phoneStartupScreen: 'resources/loading/Homescreen.jpg', tabletStartupScreen: 'resources/loading/Homescreen~ipad.jpg', launch: function() { //The whole app UI lives in this tab panel Ext.Viewport.add({ xtype: 'tabpanel', ... 阅读全文
posted @ 2012-05-27 12:18 范永强 阅读(213) 评论(0) 推荐(0)
摘要: 代码:Ext.application({ name: 'Sencha', phoneStartupScreen: 'resources/loading/Homescreen.jpg', tabletStartupScreen: 'resources/loading/Homescre... 阅读全文
posted @ 2012-05-27 12:18 范永强 阅读(125) 评论(0) 推荐(0)
摘要: 我们以sencha touch ajax为例,在index.html模板中定义'', '', '',插入一个base64的图片数据载入到img标签中,效果如下:什么是Base64:Base64是一种基于64个可打印字符来表示二进制数据的表示方法。由于2的6次方等于64,所以每6个比特为一个单元,对应某个可打印字符。三个字节有24个比特,对应于4个Base64单元,即3个字节需要用4个可打印字符来表示。它可用来作为电子邮件的传输编码。在Base64中的可打印字符包括字母A-Z、a-z、数字0-9 ,这样共有62个字符,此外两个可打印符号在不同的系统 阅读全文
posted @ 2012-05-27 12:16 范永强 阅读(173) 评论(0) 推荐(0)
摘要: 1.首先假设有一张list。2.初步代码:定义一个数据仓库store,大体如下3.修改一下,加入排序(sortProperty是一个属性)4.最后在你显示的list里 加 grouped: true, 阅读全文
posted @ 2012-05-27 12:14 范永强 阅读(158) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-05-27 12:13 范永强 阅读(187) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-05-27 12:13 范永强 阅读(134) 评论(0) 推荐(0)
摘要: lz使用了时下最火的st mvc框架https://github.com/kostysh/Sencha-Touch-2.0-MVC-test-application-with-NestedList发现部署后无法识别App.json这个文件心急如焚幸亏得到l.m同学的帮助,搞定。需参考两篇文章,让iis识别.json格式才行参考1:http://hi.baidu.com/yashua839/blog/item/e2e8913fe31b59d07c1e7166.html参考2:http://wenku.baidu.com/view/be78b04ffe4733687e21aa62.html 阅读全文
posted @ 2012-05-27 12:12 范永强 阅读(107) 评论(0) 推荐(0)
摘要: lz使用了时下最火的st mvc框架https://github.com/kostysh/Sencha-Touch-2.0-MVC-test-application-with-NestedList发现部署后无法识别App.json这个文件心急如焚幸亏得到l.m同学的帮助,搞定。需参考两篇文章,让ii... 阅读全文
posted @ 2012-05-27 12:12 范永强 阅读(116) 评论(0) 推荐(0)
摘要: 1.在jsonp方法中拼json2.参数format jsonproxy: { type: 'jsonp', url: 'https://ajax.googleapis.com/ajax/serv... 阅读全文
posted @ 2012-05-27 12:10 范永强 阅读(145) 评论(0) 推荐(0)
摘要: 1.在jsonp方法中拼json2.参数format jsonproxy: { type: 'jsonp', url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog', params:{ Passport: E... 阅读全文
posted @ 2012-05-27 12:10 范永强 阅读(186) 评论(0) 推荐(0)
摘要: 在这里lz使用了很笨的remove,add方法1.Ext.getCmp('testform').remove(Ext.getCmp('question'),true)question是一个fieldset移除form中的一些item,全部清除可以用removeAll的办法2.record.pojoa().each(function(answerArray){ //console.log(answerArray) var checkbox = { name:answerArray.id, xtype:'checkboxfield', label:. 阅读全文
posted @ 2012-05-27 12:08 范永强 阅读(124) 评论(0) 推荐(0)
摘要: 在这里lz使用了很笨的remove,add方法1.Ext.getCmp('testform').remove(Ext.getCmp('question'),true)question是一个fieldset移除form中的一些item,全部清除可以用removeAll的办法2.record.pojoa... 阅读全文
posted @ 2012-05-27 12:08 范永强 阅读(110) 评论(0) 推荐(0)
摘要: 0.首先下载mvc框架:https://github.com/kostysh/Sencha-Touch-2.0-MVC-test-application-with-NestedList1.在框架中要在app.js 这个文件中使用:launch: function() { //Ext.g... 阅读全文
posted @ 2012-05-27 12:02 范永强 阅读(129) 评论(0) 推荐(0)
摘要: 0.首先下载mvc框架:https://github.com/kostysh/Sencha-Touch-2.0-MVC-test-application-with-NestedList1.在框架中要在app.js 这个文件中使用:launch: function() { //Ext.getBody().removeCls('loading'); // Destroy the #appLoadingIndicator element Ext.fly('appLoadingIndicator').destroy(); // Initializ... 阅读全文
posted @ 2012-05-27 12:02 范永强 阅读(174) 评论(0) 推荐(0)
摘要: st2中定义storedataStore = Ext.create('Ext.data.Store', { model: "OilRecord", syncRemovedRecords: true, sorters: [ { property : 'id', direction: 'DESC' } ] ... 阅读全文
posted @ 2012-05-27 11:56 范永强 阅读(144) 评论(0) 推荐(0)
摘要: st2中定义storedataStore = Ext.create('Ext.data.Store', { model: "OilRecord", syncRemovedRecords: true, sorters: [ ... 阅读全文
posted @ 2012-05-27 11:56 范永强 阅读(115) 评论(0) 推荐(0)