三、实战操作
Tips: 解释说明均在代码中以注释方式展示,请大家注意阅读。
我们采用的是最简单的 CDN 引入方式,代码可直接运行。复制代码并将配置好 json 文件的路径即可看到效果。...field: 'sex', title: '性别' //我们取 json 中 sex 的值,并将表头 title 设置为性别
},{...field: 'city', title: '城市' //我们取 json 中 city 的值,并将表头 title 设置为城市
},{...field: 'sign', title: '签名' //我们取 json 中 sign 的值,并将表头 title 设置为签名
},{...', title: '文件路径',formatter: function(value,row,index){} }]
field json 中键值对中的 Key
title 是表格头显示的内容
formatter