1.2.0 • Published 2 years ago
yhsp-vue-wx-image v1.2.0
本vue模版默认使用方法:在目标页面添加整合以下代码,按需修改
1.将BaseUrl、isiOS、wsCache挂载到vue(例如在main.js):
Vue.prototype.BaseUrl = BaseUrl
var isiOS = !!userAgent.match(/(i^;+;( U;)? CPU.+Mac OS X/) // ios终端 Vue.prototype.isiOS = isiOS
Vue.prototype.wsCache = new WebStorageCache()
2.父页面引入模版:
3.父页面js添加:
1.2.0
2 years ago