Intact实例特殊属性
children
children
属性用于获取所有传递给组件的子元素。如:
var Component = Intact.extend({
template: '<div>{self.get("children")}</div>'
});
var App = Intact.extend({
template: 'var Component = self.Component; ' +
'<Component><b>test</b></Component>',
_init: function() {
this.Component = Component;
}
});
App;