上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 69 下一页
摘要: //http://www.sencha.com/forum/showthread.php?188318-Ext.Loader.loadScriptFile-wrong-URLExt.Loader.loadScriptFile("/a.js", function() { console.log('hello loadScriptFile callback'); }, undefined, true);//you can load script from local//and also, you can load script from remote serve 阅读全文
posted @ 2014-01-23 23:26 zyip 阅读(318) 评论(0) 推荐(0)
摘要: //http://www.sencha.com/learn/sencha-class-systemvar Person = new Ext.Class({ name: 'Mr. Unknown', walk: function(steps) { alert(this.name + ' is walking ' + steps + ' steps'); }});//http://docs.sencha.com/touch/2.2.1/#!/guide/class_system//Ext.ns('My.sample');//defin 阅读全文
posted @ 2014-01-23 23:06 zyip 阅读(190) 评论(0) 推荐(0)
摘要: 使用Backload的时候在本地调试通过,上传服务器后出现405错误(监控通信时可以发现ajax的返回结果为405)通过修改webconfig可以解决: 阅读全文
posted @ 2014-01-21 15:38 zyip 阅读(604) 评论(0) 推荐(0)
摘要: 1. create a project using city bars template in sencha architect2. save your project name as CityBars3. modify your controll code to:Ext.define('CityBars.controller.Business', { extend: 'Ext.app.Controller', config: { refs: { dataList: '#dataList', listCard: '#list... 阅读全文
posted @ 2014-01-19 21:28 zyip 阅读(331) 评论(0) 推荐(0)
摘要: controller:Ext.define('MyApp2.controller.MyController1', { extend: 'Ext.app.Controller', config: { control: { "#image2": { tap: 'onImageTap' } } }, onImageTap: function(image, e, eOpts) { console.log('img2 tap'); }});view:Ext.d... 阅读全文
posted @ 2014-01-19 15:11 zyip 阅读(324) 评论(0) 推荐(0)
摘要: js:Ext.define('MyApp.store.MyJsonStore', { extend: 'Ext.data.Store', requires: [ 'MyApp.model.Person', 'Ext.data.proxy.Ajax', 'Ext.data.reader.Json' ], config: { autoLoad: true, data: [ { id: 909, firstName: 'Ant... 阅读全文
posted @ 2014-01-18 21:25 zyip 阅读(272) 评论(0) 推荐(0)
摘要: asp.net server side codejs:Ext.define('MyApp.store.MyJsonPStore', { extend: 'Ext.data.Store', requires: [ 'MyApp.model.Person', 'Ext.data.proxy.JsonP', 'Ext.data.reader.Json' ], config: { autoLoad: true, data: [ { id: 268, ... 阅读全文
posted @ 2014-01-18 21:14 zyip 阅读(313) 评论(0) 推荐(0)
摘要: add this to your loader config:Ext.Loader.setConfig({ disableCaching: false});or :click 'application' on sencha architect , find out 'loader config' config, click the plus icon on the right, click right icon on the right,find out 'disableCaching' config, click the checkbox an 阅读全文
posted @ 2014-01-18 19:46 zyip 阅读(199) 评论(0) 推荐(0)
摘要: 1.简单,但是会丢失请求数据 protected void Application_BeginRequest() { string url = HttpContext.Current.Request.Url.AbsoluteUri.ToString(); if (url.ToLower().Contains("cgi-bin")) { HttpContext.Current.Response.Redirect(url.Replace("-","")); } ... 阅读全文
posted @ 2014-01-13 11:51 zyip 阅读(451) 评论(0) 推荐(0)
摘要: http://jsfiddle.net/jQgQv/7/ 阅读全文
posted @ 2014-01-08 10:32 zyip 阅读(93) 评论(0) 推荐(0)
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 69 下一页