consoleInfo 输出 数组套对象 不显示...的方法 序列化 再反序列化

consoleInfo (...args) {
      // console.info('this', this)
      const name = this.$options.name
      let outName = name
      if (name === 'basicInformation') outName = '111况'
     
      let args1 = []
      args.forEach((item, index) => {
        args1[index] = JSON.parse(JSON.stringify(item))
      })
      console.info(outName, '>', ...args1)
    }
原文地址:https://www.cnblogs.com/pengchenggang/p/11382714.html