JSDM

HTML

 
1

CSS

xxxxxxxxxx
1
 
1
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

xxxxxxxxxx
19
 
1
var MyApp = san.defineComponent({
2
    template: ''
3
        + '<ul>'
4
        +   '<li s-for="item, index in items">{{item}}</li>'
5
        + '</ul>',
6
    initData: function () {
7
        return {
8
        };
9
    },
10
    attached: function() {
11
      san.nextTick(() => {
12
        this.data.set('items', ['q']);
13
        this.data.splice('items', [1, 0, 'a']);
14
      // this.data.push('items', 'a')
15
      })
16
    }
17
});
18
var myApp = new MyApp();
19
myApp.attach(document.body);
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................