会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fannet
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
10
下一页
2015年8月23日
offset
摘要: offsetParent(父级元素position是relative或absolute)width/height(内容的宽高)clientWidth=width+paddingleft+paddingrightclientHeight=height+paddingtop+paddingbottomo...
阅读全文
posted @ 2015-08-23 22:23 fannet
阅读(208)
评论(0)
推荐(0)
2015年8月10日
project template
摘要: 1.程序集放入dependencies目录,nuget安装时会优先查找 ..\Dependencies2.创建project模板 VS->FILE->Export Template //创建模板New->Templates>Visual C# //使用模板
阅读全文
posted @ 2015-08-10 13:46 fannet
阅读(306)
评论(0)
推荐(0)
2015年8月9日
Owin
摘要: 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
阅读(257)
评论(0)
推荐(0)
异步
摘要: await不会阻塞主线程(UI不会假死,IIS回收空闲线程),会把后面的操作封装成callback Result会阻塞线程 async/await(Task) //await后不会开启新的线程,只有async里用Task.Run或Task.Factory.Startnew开启新线程后,await时才
阅读全文
posted @ 2015-08-09 22:00 fannet
阅读(218)
评论(0)
推荐(0)
2015年8月8日
Media Formatters
摘要: 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
阅读(117)
评论(0)
推荐(0)
web api 参数绑定
摘要: 简单类型参数: 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
阅读(328)
评论(0)
推荐(0)
2015年7月30日
SSO
摘要: cookies只能在同domain下共享。asp.net场景1.同domain下的两个web site,如果都是form认证(基于cookies),配置同样的machinekey(包括validationkey,decryptionkey,用于加密cookie)可以实现单点登录。2.同domain不...
阅读全文
posted @ 2015-07-30 23:00 fannet
阅读(198)
评论(0)
推荐(0)
Angular cookies
摘要: reference angular-cookies.min.jsvar app= angular.module( 'app', ['ngCookies'] ).config( demoConfig );$cookie$cookieStore$cookieStore.put("name","my na...
阅读全文
posted @ 2015-07-30 15:21 fannet
阅读(216)
评论(0)
推荐(0)
$injector
摘要: $injector.get
阅读全文
posted @ 2015-07-30 14:18 fannet
阅读(131)
评论(0)
推荐(0)
$http
摘要: get/post$http.get('api/user', {params: {id:'5'}}).success(function(data, status, headers, config) { //加载成功之后做一些事}).error(function(data, status, hea...
阅读全文
posted @ 2015-07-30 13:57 fannet
阅读(348)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
10
下一页
公告