var VElement=function(tagName,props,children){
this.tagName=tagName;
this.props=props||{};
this.children=children||{};
this.key=props?props.key:void 666;
var count=0;
console.log(this);
$.each(this.children,function(i,child){
console.log(this);
});
this.count=count;
}
var vdom=VElement('div',{'id':'container'},['最外层']);
茅侃侃
相关分类