摘要: 扩展方法被定义为静态方法,但它们是通过实例方法语法进行调用的。 它们的第一个参数指定该方法作用于哪个类型,并且该参数以 this 修饰符为前缀。 仅当你使用 using 指令将命名空间显式导入到源代码中之后,扩展方法才位于范围中。下面的示例演示为 SystemString 类定义的一个扩展方法。 请... 阅读全文
posted @ 2014-07-28 00:10 ICupid 阅读(204) 评论(0) 推荐(0) 编辑
摘要: JsRender DemosAccessing paths 阅读全文
posted @ 2014-07-27 23:00 ICupid 阅读(306) 评论(0) 推荐(0) 编辑
摘要: JsRender DemosTemplate composition. Using external templates for block tags, such as {{for}} and {{if}}. SynopsisFixed TemplateTemplate specified ... 阅读全文
posted @ 2014-07-27 22:25 ICupid 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Using {{for}} to render hierarchical data - inline nested template. title ... 阅读全文
posted @ 2014-07-27 16:15 ICupid 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Using {{if}} and {{else}} to render conditional sections. 阅读全文
posted @ 2014-07-27 15:57 ICupid 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: 用{{: }} or {{> }}用可选和编码展示数据{{:value}} —用于渲染值,包括HTML标记。{{loc:value lang="..."}} —使用自定义转换器。{{html:value}} —将使用内置的HTML编码器。(更好的安全性,在元素的内容,但轻微的性能成本)。{{>val... 阅读全文
posted @ 2014-07-27 15:19 ICupid 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 展示详细内容 阅读全文
posted @ 2014-07-27 13:39 ICupid 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-07-27 11:08 ICupid 阅读(249) 评论(0) 推荐(0) 编辑
摘要: JQuery autocomplete使用手册Jquery autocomplete是一个很强大的类似google suggest的自动提示插件。它几乎可以满足我们所有的需要。官方网站:http://bassistance.de/jquery-plugins/jquery-plugin-autoco... 阅读全文
posted @ 2014-07-24 10:36 ICupid 阅读(1158) 评论(0) 推荐(0) 编辑
摘要: function getFocus() //设置用户名文本框获取焦点{ document.getElementById("txtuname").focus();} function checkname() //检查用户名{ var myname=document.getElement... 阅读全文
posted @ 2014-07-23 11:51 ICupid 阅读(171) 评论(0) 推荐(0) 编辑