wx小程序 组件无法使用全局样式 ,app.wxss

解决方法:

  在组件中加上options选项

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