08 2015 档案

摘要:Hight performance javascriptjavascript:the good parts 阅读全文
posted @ 2015-08-25 09:17 fannet
摘要:offsetParent(父级元素position是relative或absolute)width/height(内容的宽高)clientWidth=width+paddingleft+paddingrightclientHeight=height+paddingtop+paddingbottomo... 阅读全文
posted @ 2015-08-23 22:23 fannet
摘要:1.程序集放入dependencies目录,nuget安装时会优先查找 ..\Dependencies2.创建project模板 VS->FILE->Export Template //创建模板New->Templates>Visual C# //使用模板 阅读全文
posted @ 2015-08-10 13:46 fannet
摘要:Owin应用程序代理using AppFunc=Func,Task>;IDictionary环境变量,贯穿整个处理流程Microsoft.Owin.Host.SystemWeb可以接管IIS请求(App>Middleware>Server>Host)Server层MIcrosoft.Owin.Hos... 阅读全文
posted @ 2015-08-09 22:23 fannet
摘要:await不会阻塞主线程(UI不会假死,IIS回收空闲线程),会把后面的操作封装成callback Result会阻塞线程 async/await(Task) //await后不会开启新的线程,只有async里用Task.Run或Task.Factory.Startnew开启新线程后,await时才 阅读全文
posted @ 2015-08-09 22:00 fannet
摘要:Media Type = MIME Type指明了entity body中的格式text/htmlimage/pngapplication/json//responseHTTP/1.1 200 OKContent-Length: 95267Content-Type: image/png//reque... 阅读全文
posted @ 2015-08-08 00:31 fannet
摘要:简单类型参数: url读取(string,bool,int...)复杂类型参数:从message body用media-type formatter读取url读取route data(路由解析uri的时候得到)和URI query string强制复杂类型从uri获取public class Geo... 阅读全文
posted @ 2015-08-08 00:20 fannet