上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 70 下一页
摘要: client:function save() { var obj = { "name": "zhaoyao", "age": 20, "gender": true, nationality: 'china' }; //jQuery('#form1').serializeObject().msg //JSON.stringify(jQuery('#form1').serializeObject()) $.ajax({ type: 'PUT',//POST 阅读全文
posted @ 2014-01-27 17:00 zyip 阅读(202) 评论(0) 推荐(0)
摘要: 1. await只能出现在async修饰的方法中2.async不能修饰main函数3.async修饰的方法,用普通方式调用时表现为异步执行,配合await时将变成同步执行4.The return type of an async method must be void, Task or Taskhttp://blogs.msdn.com/b/pfxteam/archive/2012/04/12/10293335.aspxhttp://msdn.microsoft.com/zh-cn/library/hh191443.aspx [TestMethod] public vo... 阅读全文
posted @ 2014-01-27 13:25 zyip 阅读(635) 评论(0) 推荐(0)
摘要: http://chuna2.787528.xyz/xuejie/archive/2012/12/14/2818452.html 阅读全文
posted @ 2014-01-24 11:25 zyip 阅读(183) 评论(0) 推荐(0)
摘要: [TestMethod] [HostType("ASP.NET")] [UrlToTest("http://localhost:25153/qq/a.aspx")] [AspNetDevelopmentServerHost(@"C:\Users\Public\Documents\ooooooo", "/")] public void Test1() { var url = HttpContext.Current.Request.Url; var root = Htt... 阅读全文
posted @ 2014-01-24 09:41 zyip 阅读(307) 评论(0) 推荐(0)
摘要: // Use ClassInitialize to run code before running the first test in the class[ClassInitialize()]public static void MyClassInitialize(TestContext testContext) { }// Use ClassCleanup to run code after all tests in a class have run[ClassCleanup()]public static void MyClassCleanup() { }// Use TestInitia 阅读全文
posted @ 2014-01-24 08:48 zyip 阅读(211) 评论(0) 推荐(0)
摘要: //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 阅读(321) 评论(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 阅读(193) 评论(0) 推荐(0)
摘要: 使用Backload的时候在本地调试通过,上传服务器后出现405错误(监控通信时可以发现ajax的返回结果为405)通过修改webconfig可以解决: 阅读全文
posted @ 2014-01-21 15:38 zyip 阅读(608) 评论(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 阅读(335) 评论(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 阅读(326) 评论(0) 推荐(0)
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 70 下一页