1、将对象转成JSON字符串

  JSON.stringify()

2、把一个json字符串解析成对象

  JSON.parse()

3、对数组操作 push() 、unshift()

   push() :加到数组最后

  unshift():加到数组最前面

4、查看数据类型

  typeof()

  console.info(typeof(this.roleData));

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-12-28
  • 2021-12-04
猜你喜欢
  • 2021-07-09
  • 2021-06-21
  • 2021-07-03
  • 2022-01-28
相关资源
相似解决方案