随笔分类 - ExtJS
摘要:ExtJs中的store在sync时,是可以批量提交数据的,所谓的批量是指如果在store中同时记录了create、update、delete的对象时,分三次提交。在提交时,多个对象将被组合成JSON格式的字符串,当要提交的数据只有一条时,JSON的字符串如下所示:{"ID":"a6d671ca-5480-4b5b-bf7a-b8459c0f598b","MobilePIN":"","Email"...
阅读全文
摘要:在学习EXTJS的文档是,在测试《The Data Package》中的例子时,文中讲到Model中的hasMany自动生成的是一个Store对象的引用,如hasMany: 'Post',自动生成的是post()方法,实际上指向的Post的Store引用。自动生成的Store在向后台请求数据时的Get参数为:posts/?_dc=1342322365337&limit=25&page=1&start=0&filter=%5B%7B%22property%22%3A%22user_id%22%2C%22value%22%3A1%7D%5D,其中li
阅读全文
摘要:/***@exampleImage**AComponentsubclassthataddsavaluetoanimage*/Ext.require('Ext.panel.Panel');Ext.define('Ext.ux.Image',{extend:'Ext.Component',//subclassExt.Componentalias:'widget.managedimage',//thiscomponentwillhaveanxtypeof'managedimage'autoEl:{tag:'img
阅读全文
摘要:http://www.sencha.com/learn/sencha-class-system/The Sencha Class System was first introduced in Ext JS 4.0 and was a major step forward in making it easy to build object oriented JavaScript code. As a core part of the Sencha JavaScript platform, it’s now a shared component between Ext JS and Senc...
阅读全文