X Tutup
Skip to content

Commit b4524da

Browse files
authored
Update README.md
1 parent 4ff9db4 commit b4524da

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

waterFall/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
### Usage
22

33
```
4-
init:
5-
var wtf = new WaterFull('.content', {
4+
//init
5+
var wtf = new WaterFull(container, {
66
type: listType,
77
urlField: 'picUrl'
88
});
9+
//listType: 1 -> 等高等宽 2 -> 等宽 3 -> 等高
10+
//urlField: 数据中图片url对应字段
911
10-
create:
12+
//create
1113
wtf.create(dataArr);
12-
```
14+
//生成DOM,append进容器中,可用于分页加载。
15+
```

0 commit comments

Comments
 (0)
X Tutup