使用uni-app写h5页面总结

1.设置全局变量 这里我只用了2种,一种在main.js里面设置了全局变量,一种使用vuexhtml (1).第一种,main.js里面设置 Vue.prototype.Url = 'https://xx.xx.cn/lua_bills/'; 页面使用的时候能够这样用:this.Url+'openid',vue uni.request({ url :this.Url+'openid',
相关文章
相关标签/搜索