ES5初尝试Object.create
摘要:
var a = { init:function(){}, play:function(){}};var create = (function(){ var isES5 = !!Object.create; var mix = function(target, source){ var key; for(key in source){ if(source.hasOwnProperty(key)){ target[key] = (isES5 && typeof source[key].value... 阅读全文
posted @ 2012-06-12 10:57 lydiafly 阅读(593) 评论(0) 推荐(0) 编辑