返回数据中字段的值为什么会变化

数据中advertiseStatus字段的值为什么会变化?
将1转为false部分已经注释了.

    .then(data => {

if (data.success) {

console.log('tableData[0]:', this.tableData[0])

console.log('tableData[0].ad:', this.tableData[0].advertiseStatus)

console.log('tableData[1].ad:', this.tableData[1].advertiseStatus)

// this.tableData.forEach(i => {

// if (i.advertiseStatus === '0') {

// i.advertiseStatus = true

// } else {

// i.advertiseStatus = false

// }

// })

}

})

1.chrome输出展开前:
返回数据中字段的值为什么会变化

2.chrome输出展开后:
返回数据中字段的值为什么会变化


回答:

你能确定两次输出之间没有其他操作吗,调试不按顺序神仙也解决不了

以上是 返回数据中字段的值为什么会变化 的全部内容, 来源链接: utcz.com/p/935758.html

回到顶部