摘要: The caching options available in ASP.NET MVC applications don’t come from the ASP.NET MVC Framework, but from the core ASP.NET Framework.1. Request-Scoped CachingEvery ASP.NET request begins with the ASP.NET Framework creating a new instanceof the System.Web.HttpContext object to act as the central 阅读全文
posted @ 2013-09-21 17:36 Master HaKu 阅读(382) 评论(0) 推荐(0) 编辑
摘要: overriding the default options with user-supplied options and the jQuery extend() methodeg:$.fn.pulse = function (options) { // Merge passed options with defaults var opts = $.extend({}, $.fn.pulse.defaults, options); return this.each(function () { // Pulse for (var i = 0; i <... 阅读全文
posted @ 2013-09-21 15:19 Master HaKu 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1. How do you write a plugin in jQuery?You can extend the existing jQuery object by writing either methods or functions.1) Writing a custom jQuery methodjQuery methods are defined by extending the jQuery.fn object with your method name.$.fn.extend({ //Only Test MasterTest: { alertTest: ... 阅读全文
posted @ 2013-09-21 15:01 Master HaKu 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1. Base2. Layout3. Module4. State5. Theme1) Base rulesBase rules are the defaults.eg:html, body, form { margin: 0; padding: 0; }input[type=text] { border: 1px solid #999; }a { color: #039; }a:hover { color: #03C; }2) Layout rulesdivide the page into sections. Layouts hold one ormore modules together 阅读全文
posted @ 2013-09-21 11:36 Master HaKu 阅读(317) 评论(0) 推荐(0) 编辑