07 2016 档案
js的深拷贝和浅拷贝
摘要:一、数组的深浅拷贝 在使用JavaScript对数组进行操作的时候,我们经常需要将数组进行备份,事实证明如果只是简单的将它赋予其他变量,那么我们只要更改其中的任何一个,然后其他的也会跟着改变,这就导致了问题的发生。 var arr = ["One","Two","Three"]; var arrto 阅读全文
posted @ 2016-07-25 12:50 hehelele 阅读(330) 评论(0) 推荐(0)
JavaScript中判断对象类型的种种方法
摘要:我们知道,JavaScript中检测对象类型的运算符有:typeof、instanceof,还有对象的constructor属性: 1) typeof 运算符 typeof 是一元运算符,返回结果是一个说明运算数类型的字符串。如:"number","string","boolean","object 阅读全文
posted @ 2016-07-07 15:44 hehelele 阅读(197) 评论(0) 推荐(0)
svn解决方案汇总
摘要:http://blog.csdn.net/superch0054/article/details/38668017 阅读全文
posted @ 2016-07-07 09:16 hehelele 阅读(166) 评论(0) 推荐(0)