C语言 c++ php mysql nginx linux lnmp lamp lanmp memcache redis 面试 笔记 ppt 设计模式 问题 远程连接

  2012年10月18日
摘要: 1.删除数组中指定的元素/** * 参考实例foreach = function (obj, insp){ if(obj== null && obj.constructor != Array){ return [];}//obj是要处理的数组,obj==null 表示对象尚未存在;obj.constructor != Array 表示对象obj的属性的构造函数不是数组;//constructor属性始终指向创建当前对象的构造函数。两个条件均满足,则返回空数组[];//下面对constructor属性作进一步了解。var obj= [1, 2, 3, 4]; // 等价于 var 阅读全文
posted @ 2012-10-18 00:22 思齐_ 阅读(7443) 评论(0) 推荐(0) 编辑