JSON.stringify(value, replacer, space)

JSON.stringify(obj)是常用的将js对象转换为json字符串的方法,但很少有人知道,该方法其实还有另外2个参数。 1、方法 方法定义:JSON.stringify(value, replacer, space) 参数说明:value:js对象 replacer:替换对象,可以是一个方
posted @ 2021-10-11 10:08  喆星高照  阅读(149)  评论(0编辑  收藏  举报