摘要:
Object.prototype.clone=function(){ var o=this.constructor===Array?[]:{}; for(var e in this){ o[e]=typeof this[e]==="object"?this[e].clone():this[e]; } return o;}举例:var obj1 = {name: "flondon", add: "China"};console.info(obj1.clone()); 阅读全文
posted @ 2012-09-24 22:48
wcp_spring
阅读(161)
评论(0)
推荐(0)
摘要:
http://www.w3cfuns.com/forum.php?mod=viewthread&tid=5593810&reltid=2264&pre_pos=3&ext=国外的前端面试HTML1、Doctype:过度模式、框架模式、严格模式(文档类型定义)2、怪异模式和标准模式:怪异模式是在没有遵循W3C标准的浏览器,与标准有些不同,例如:盒子模型是很大的不同。3、XHTML和HTML区别: XHTML必须:元素必须被正确的嵌套,元素名必须小写,元素名必须关闭,必须有根元素。 具体:http://www.iteye.com/topic/1846074、老外的面 阅读全文
posted @ 2012-09-24 19:35
wcp_spring
阅读(251)
评论(0)
推荐(1)

浙公网安备 33010602011771号