Json
JSON.stringify()
过滤结果
let book = {
title: "Professional JavaScript",
authors: [
"Nicholas C. Zakas",
"Matt Frisbie"
],
name: undefined,
edition: 4,
year: 2017
};
let jsonText = JSON.stringify(book,["title", "edition"]);字符串缩进
JSON.parse()
Last updated