uniCloud云对象的坑

  • 2023-07-20 11:13:25
  • df
  • 301

uniCloud的云对象不支持ES6

const headerText = response.settings.headerText ?? 'Hello, world!';

 

这种写法在hbuilderX连接本地云函数的时候是正常的,但是上传之后连接云端函数,就会报错

 

uni-cloud.es.js:1 Uncaught (in promise) Error: [house-rent]: Unexpected token ?