JS极简笔记

json基础

  • json的变量声明
  • JSON.stringify(),将json的object物件转换为json-string,但是方法会丢失
  • JSON.parse(),将json-string转换为json-object
Code