<template>
<view style="padding-top: 40px;">
</view>
</template>
<script>
export default{
data(){
return{
list:[
'aaa','bbb','ccc','eee','ddd'
]
}
},
onLoad() {
this.slower();
this.faster();
},
methods:{
faster(){
console.log( '快' );
},
slower(){
uni.request({
url: 'http://baidu.com',
success: res => {
console.log('慢');
},
});
}
}
}
</script>
<style>
</style>
```<template>
打印的先是快...
生有可恋lys
- 发布:2020-03-19 18:09
- 更新:2020-03-19 21:23
- 阅读:800
函数执行顺序
分类:uni-app
生有可恋lys (作者)
https://img03.sogoucdn.com/app/a/100520146/74456f978c1b9f219c355cf7c5af9144
是的
2020-03-19 20:02