-- 模板中使用全局对象属性 -->
点我
如果项目中这样使用,vue2 会直接抛出警告:
 [vue warn]:...initializing the property....vue3 会直接抛出错误
 TypeError: : Cannot read properties of undefined (reading ‘log’)
 
模板中的表达式将被沙盒化,仅能够访问到有限的全局对象列表...decodeURIComponent,encodeURI,encodeURIComponent,' +
  'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set...decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
  'Object,Boolean,String,RegExp,Map,Set