[ RowDataPacket { name: 'zhang3', password: 'undefined', random: null },RowDataPacket { name: 'zhang3', password: 'undefined', random: null },RowDataPacket { name: 'zhang3', password: 'undefined', random: null },RowDataPacket { name: 'zhang3', password: 'undefined', random: null },RowDataPacket { name: 'zhang3', password: 'undefined', random: null },RowDataPacket { name: 'zhang3', password: 'undefined', random: null },RowDataPacket { name: 'zhang3', password: 'undefined', random: null },RowDataPacket { name: 'zhang3', password: 'undefined', random: null },RowDataPacket { name: 'zhang3', password: 'undefined', random: null } ]nodejs+mysql查询,获得如上结构数据。我搜到了若干怎么转换成json或objec的方法,但是这里我想问的是,单纯从JavaScript的语法上讲,上面这个东西是合法的数组吗?也即:RowDataPacket { name: 'zhang3', password: 'undefined', random: null }是一个合法的对象吗?谢谢指教。
添加回答
举报
0/150
提交
取消