uni.writeJSON is not a function
时间: 2024-06-07 15:08:14 浏览: 115
小程序中wx.xx is not a function的报错
5星 · 资源好评率100%
The error message "uni.writeJSON is not a function" suggests that the "writeJSON" function is not defined in the "uni" object.
It is possible that you may have misspelled the function name or that it is not a built-in function in the "uni" object. You may want to check the documentation of the "uni" object to see if the function is available and how to properly use it.
Alternatively, you can try using a different function or method to write JSON data, such as "JSON.stringify" and "fs.writeFile".
阅读全文