01 2016 档案
摘要:Lazy Load 是一个用 JavaScript 编写的 jQuery 插件. 它可以延迟加载长页面中的图片. 在浏览器可视区域外的图片不会被载入, 直到用户将页面滚动到它们所在的位置. 这与图片预加载的处理方式正好是相反的.在包含很多大图片长页面中延迟加载图片可以加快页面加载速度. 浏览器将会在...
阅读全文
摘要:最近不知道为什么,用vs2015打开cshtml识图文件的时候会报错。也不知道是什么原因,google之后得到解决方法如下:Close VSDelete the content of %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelC...
阅读全文
摘要:Postman功能(https://www.getpostman.com/features)主要用于模拟网络请求包快速创建请求回放、管理请求快速设置网络代理安装: 直接点击谷歌浏览器左上角的标志:,然后点击google网上应用商店 再出来页面的搜索框里面直接搜索“Postman”,添加就可以了。...
阅读全文
摘要:Route NamesIn Web API, every route has a name. Route names are useful for generating links, so that you can include a link in an HTTP response.To spec...
阅读全文
摘要:Optional URI Parameters and Default ValuesYou can make a URI parameter optional by adding a question mark to the route parameter. If a route parameter...
阅读全文
摘要:Custom Route ConstraintsYou can create custom route constraints by implementing theIHttpRouteConstraintinterface. For example, the following constrain...
阅读全文
摘要:Route ConstraintsRoute constraints let you restrict how the parameters in the route template are matched. The general syntax is "{parameter:constraint...
阅读全文
摘要:Route PrefixesOften, the routes in a controller all start with the same prefix. For example:public class BooksController : ApiController{ [Route("a...
阅读全文
摘要:Prior to Web API 2, the Web API project templates generated code like this:protected void Application_Start(){ // WARNING - Not compatible with att...
阅读全文
摘要:Extension PointsWeb API provides extension points for some parts of the routing process.InterfaceDescriptionIHttpControllerSelectorSelects the control...
阅读全文
摘要:HTTP MethodsInstead of using the naming convention for HTTP methods, you can explicitly specify the HTTP method for an action by decorating the action...
阅读全文

浙公网安备 33010602011771号