下面展示一些 内联代码片
。
// A code block
var foo = 'bar';
// An highlighted block
this.table = table
console.log(this.table, '2')
// 获取vue监控的数据
const resData = JSON.parse(JSON.stringify(this.table))
console.log(resData, '666')
console.log(resData[0], '888')
console.log(resData[0].path, '999')
this.filePath = []
// 循环对象,把每一项都push到数组中
this.resData = resData
for (const i in this.resData) {
this.filePath.push(resData[i].path)
}
console.log(this.filePath, '67')
运行如图
链接: 参考.