摘要:
1. jQuery has a method that can be used to deep-clone objects, the$.extend() function. Let’s take a look at how it can be used: 注意:Pretty handy, eh? T 阅读全文
摘要:
http://stackoverflow.com/questions/13333794/networking-difference-between-transport-layer-and-networking-layer Transport Layer: The fourth and “middle 阅读全文
摘要:
var n = {1:100, 2:101, 3:102, 4:103}; 怎么获取这个对象n的长度呢? 方法一: function getLength(obj){ var count = 0; for(var i in n){ count++; } return count; } //改进 加上一 阅读全文
摘要:
若果里面没return 的话; 什么是闭包(closure function ) Two one sentence summaries: a closure is the local variables for a function — kept alive after the function h 阅读全文
摘要:
查看Linux的内核版本 当前系统的发行版信息(distribution):lsb_release -a , lsb(linux standard Base) and distribution information。 用这个命令可以知道是Redhat ,centos, ubuntu. 和具体的版本 阅读全文