var MyApp = san.defineComponent({
template: ''
+ '
',
initData: function () {
return {
};
},
attached: function() {
san.nextTick(() => {
this.data.set('items', ['q']);
this.data.splice('items', [1, 0, 'a']);
// this.data.push('items', 'a')
})
}
});
var myApp = new MyApp();
myApp.attach(document.body);