上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 创建自定义的指令 除了 AngularJS 内置的指令外,我们还可以创建自定义指令。 你可以使用 .directive 函数来添加自定义的指令。 要调用自定义指令,HTMl 元素上需要添加自定义指令名。 使用驼峰法来命名一个指令, runoobDirective, 但在使用它时需要以 - 分割, r 阅读全文
posted @ 2016-05-06 15:44 facial 阅读(149) 评论(0) 推荐(0) 编辑
摘要: http-equiv顾名思义,相当于http的文件头作用,它可以向浏览器传回一些有用的信息,以帮助正确和精确地显示网页内容,与之对应的属性值为content,content中的内容其实就是各个参数的变量值。 引用 meat标签的http-equiv属性语法格式是:<meta http-equiv=" 阅读全文
posted @ 2016-04-06 23:11 facial 阅读(215) 评论(0) 推荐(0) 编辑
摘要: System.Net.Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName; 阅读全文
posted @ 2016-03-09 09:58 facial 阅读(135) 评论(0) 推荐(0) 编辑
摘要: var optionalString: String? = "facial"; var greeting = "hi"; if let name = optionalString { //把optionalString复制给一个临时变量 name. 可以判断optionalString是否有值, g 阅读全文
posted @ 2016-03-08 15:38 facial 阅读(311) 评论(0) 推荐(0) 编辑
摘要: There’s an even simpler way to include values in strings: Write the value in parentheses, and write a backslash (\) before the parentheses. This is kn 阅读全文
posted @ 2016-03-08 14:46 facial 阅读(147) 评论(0) 推荐(0) 编辑
摘要: add a class: public class ExportAttribute : Attribute { public int FieldOrder { get; set; } public ExportAttribute() { } }add [ExportAttribute(FieldOr 阅读全文
posted @ 2016-02-06 09:04 facial 阅读(956) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ClosedXML.Excel; using Syste 阅读全文
posted @ 2016-02-05 18:10 facial 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 基本的计算步骤 时间复杂度的定义 一般情况下,算法中基本操作重复执行的次数是问题规模n的某个函数,用T(n)表示,若有某个辅助函数f(n),使得当n趋近于无穷大时,T(n)/f(n)的极限值为不等于零的常数,则称f(n)是T(n)的同数量级函数。记作T(n)=O(f(n)),称O(f(n))为算法的 阅读全文
posted @ 2016-02-02 00:10 facial 阅读(1025) 评论(0) 推荐(0) 编辑
摘要: Javascript原型继承是一个被说烂掉了的话题,但是自己对于这个问题一直没有彻底理解,今天花了点时间又看了一遍《Javascript模式》中关于原型实现继承的几种方法,下面来一一说明下,在最后我根据自己的理解提出了一个关于继承比较完整的实现。 真正意义上来说Javascript并不是一门面向对象 阅读全文
posted @ 2016-02-01 16:24 facial 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://blog.csdn.net/qianzai5765638/article/details/6952321 我在一开始看到javascript的函数apply和call时,非常的模糊,看也看不懂,最近在网上看到一些文章对apply方法和call的一些示例,总算是看的有点眉目了,在这 阅读全文
posted @ 2016-01-29 18:44 facial 阅读(185) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页