二、框架封装的三种模式 1原型模式(prototype),需要实例化;2,自面量(json)方式;3合并(extend) extend:function(tar,source) { //遍历对象 for(var i in source){ tar[i] = source[i]; } return tar; }