onLoad() {
this.getVideos()
},
methods: {
getVideos(){
uni.request({
url: getApp().globalData.proSrc+"videos.json",
success:(res)=>{
this.list=res.data.list
}
})
}
}
这里proSrc为url根部分。
onLoad() {
this.getVideos()
},
methods: {
getVideos(){
uni.request({
url: getApp().globalData.proSrc+"videos.json",
success:(res)=>{
this.list=res.data.list
}
})
}
}
这里proSrc为url根部分。