The season of ?ying kites is well ahead. So what? Let us make an inventory for kites. We are givena square shaped sheet of paper. But many parts of th...
分类:
其他好文 时间:
2016-01-05 18:30:18
阅读次数:
163
ng-repeat is similar to foreach loop in C#. Let us understand this with an example. Here is what we want to do.1. For each employee we have in the emp...
分类:
Web程序 时间:
2016-01-05 07:02:20
阅读次数:
264
A cmdlet (pronounced "command-let") is a lightweight WindowsPowerShellscript that performs a single function. A cmdlet, which is expressed as a verb-n...
分类:
其他好文 时间:
2016-01-04 22:27:23
阅读次数:
164
Creating Object:Example 1:let name = "Brook";let totalReplies = 249;let avatar = "/users/avatars/brook-user-1.jpg";let user = {name, totalReplies, ava...
分类:
其他好文 时间:
2016-01-03 18:18:07
阅读次数:
129
function spinner(target, options = {}){ let defaults = { message: "Please wait", spinningSpeed: 5, cssClass: ".is-spinning" }; let setting...
分类:
其他好文 时间:
2016-01-03 18:12:02
阅读次数:
120
The spread operator allow us to split an Array arguement into individual elements.getRequest("/topics/17/tags", function(data){ let tags = data.tag...
分类:
其他好文 时间:
2016-01-03 17:33:40
阅读次数:
156
swift中没有宏的概念,那么我们在swift使用宏的功能来提高效率呢?一、使用关键字 let 来声明一个常量 存储相应的值,以下代码声明了常量 myColor 来存储一种指定的颜色let myColor = UIColor(red: 0.2, green: 0.7, blue: 0.1, alph...
分类:
编程语言 时间:
2016-01-03 15:06:45
阅读次数:
263
加载网页时执行javascript代码 let mWebView = WKWebView.init(frame: self.view.bounds) self.view.addSubview(mWebView) //加载请求 let request = NS...
分类:
Web程序 时间:
2016-01-03 12:59:32
阅读次数:
222
在微博上偶然看到一篇介绍php更快下载文件的方法,其实就是利用web服务器的xsendfile特性,鸟哥的博客中只说了apache的实现方式,我找到了介绍nginx实现方式的文章,整理一下!let's go!一般来说, 我们可以通过直接让URL指向一个位于Document Root下面的文件, 来引...
分类:
Web程序 时间:
2016-01-03 00:35:25
阅读次数:
234
1. Default Value of function param:The functiondisplayTopicsPreview()raises an error on the very first line when called with no arguments. Let's fix t...
分类:
其他好文 时间:
2016-01-02 07:03:05
阅读次数:
156