使用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',
相關文章
相關標籤/搜索