01 2014 档案
摘要:A semi-hybrid framework that allows you to create mobile apps using Objective-C and XML/CSS
阅读全文
摘要:static public bool SaveOrUpdate(T entity) where T: class { bool result = false; using (wechatEntities context = new wechatEntities()) { Type t = entity.GetType(); PropertyInfo[] properts = t.GetProperties(); Pro...
阅读全文
摘要:console.log('initialize'); try { throw "breakPoint"; } catch(err) {}when I debug the extjs, the ext loader usually make the debuging breakpoints lost. I use the previous code segment to interrupt the program where I want it stop.
阅读全文
摘要:[TestMethod] public void DynamicTest() { dynamic Customer = new ExpandoObject(); Customer.Name = "Lucy"; Customer.Age = 20; Customer.Female = true; var obj = new { name="zy", age="20" }; var t =obj.GetType().ToSt...
阅读全文
摘要: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
阅读全文
摘要: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...
阅读全文
摘要:http://www.cnblogs.com/xuejie/archive/2012/12/14/2818452.html
阅读全文
摘要:[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...
阅读全文
摘要:// 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
阅读全文
摘要://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
阅读全文
摘要://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
阅读全文
摘要:使用Backload的时候在本地调试通过,上传服务器后出现405错误(监控通信时可以发现ajax的返回结果为405)通过修改webconfig可以解决:
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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, ...
阅读全文
摘要: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
阅读全文
摘要: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("-","")); } ...
阅读全文
摘要:http://jsfiddle.net/jQgQv/7/
阅读全文
摘要:downloadhttp://www.sencha.com/products/touch/thank-you/Developer Centerhttp://developer.sencha.com/product/touchGuides forSencha Architect 3http://docs.sencha.com/architect/3/#!/guideGetting Started with Sencha Touchhttp://docs.sencha.com/touch/2.3.1/#!/guide/getting_startedBegin your first APPhttp:
阅读全文
摘要:http://blog.51cto.com/zt/560
阅读全文
摘要:jQuery._data(jQuery(this)[0], "events" ).click[0].handler$._data( $("#myabc")[0], "events" ).click[0].handler$('#myabc').attr('onclick')$(this).attr('onclick') //senchae.srcElement
阅读全文
摘要:@{ var controller = @HttpContext.Current.Request.RequestContext.RouteData.Values["controller"].ToString(); var action = ViewContext.Controller.ValueProvider.GetValue("action").RawValue; ...
阅读全文
摘要:http://getbootstrap.com/getting-started/
阅读全文
摘要:http://blueimp.github.io/jQuery-File-Upload/https://github.com/blueimp/jQuery-File-Upload/wikiBackloadhttp://backload.org nuget search:uploadhttps://github.com/blackcity/Backload
阅读全文
摘要:document:http://docs.kendoui.com/api/web/griddownload:https://www.kendoui.com/download/download-kendo.aspx?pId=KENDOUIWEBGPL&lict=3relevent downloads:http://www.kendoui.com/download.aspxdrag rows in gridhttp://jsfiddle.net/rusev/nmB69/Custom Popup Editor with additional fieldshttp://www.kendoui.
阅读全文
摘要:ToText({#totalPrice}, 2,'.', ',') &" €"http://crystaltricks.com/wordpress/?p=149
阅读全文