微信小程序Json字符化失败?

success: res => {
this.setData({
ne:JSON.stringify(res.data,null,2)
})
typeof ne 为undefind,wx.for表格不显示,请问下哪里错了

data: Array(2), errMsg: "collection.get:ok"}data: Array(2)0: {_id: "1583069794669_0.009683447382856647_16841846", _openid: "odeoF5tHs4aiBY12Lmt-uejlaB9c", count: 1}1: {_id: "1583139497259_0.5347047402436322_33581602", _openid: "odeoF5tHs4aiBY12Lmt-uejlaB9c", count: "123549"}length: 2nv_length: (...)__proto__: Array(0)errMsg: "collection.get:ok"__proto__: Object

第1个回答  2020-03-04
stringify内部应该是类似字典的写法吧?比如{'a':'b','c':'d'}