微信小程序全局样式无法作用于自定义组件的解决办法

5次阅读

共计 53 个字符,预计需要花费 1 分钟才能阅读完成。

在组件中加入以下代码:

Component({
  options: {addGlobalClass: true}
})

正文完
 0