html52.com
我爱小程序-开发者交流社区

externalClasses外部样式类为什么会自动添加页面名称变成 XXX--my-class?

API:外部样式类 https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#%E5%A4%96%E9%83%A8%E6%A0%B7%E5%BC%8F%E7%B1%BB

微信版本号:7.0.12

基础库版本号:2.11.1

使用 externalClasses 外部样式类原本是 my-class 的,但是在开发者工具上自动添加上了页面名称变成了 XXX--my-class?请问这是因为什么?

网友回复

社区技术运营专员-CJiang:

麻烦提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付