Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何删除 Global.JSON 解析对象中的数组项???
当您将 JSON 字符串解析为 JavaScript 对象时,它就变成了 JavaScript 对象,而 JSON 字符串变得无关紧要。所以你的问题的核心是“我如何从数组中删除一个项目?”
为此,您可以删除或拼接出不再需要的项目。这些的用法和区别已在其他地方得到解答: Deleting array elements in JavaScript - delete vs splice