微信小程序
CacheManager.addRules
# Array.<string> CacheManager.addRules(Object rules)
基础库 2.24.0 开始支持,低版本需做兼容处理。
小程序插件:不支持
相关文档: 弱网体验优化
# 功能描述
批量添加规则,规则写法可参考 CacheManager.addRule。
# 参数
# Object rules
规则列表
# 返回值
# Array.<string>
规则 id 列表