<view class="content">
<test></test>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
created() {
console.log('页面created')
},
mounted() {
console.log('页面mounted')
},
beforeMount() {
console.log('页面beforeMount')
},
methods: {
}
}
</script>
组件
<view>
test
</view>
</template>
<script>
export default {
name: "test",
data() {
return {
};
},
created() {
console.log('组件created')
},
beforeMount() {
console.log('组件beforeMount')
},
mounted() {
console.log('组件mounted')
},
onReady() {
console.log('组件onReady')
}
}
</script>
<style lang="scss">
</style>
setting (作者)
奇怪 我这边vue3在抖音生命周期不对
2024-06-04 16:32
O昵称重要吗O
我这边也是 vue3 生命周期有问题
2024-06-27 16:15
DCloud_UNI_OttoJi
回复 m***@qq.com: 我看下,之前应该是解决了。下午我确认
2024-07-03 14:22
c***@haier.com
回复 DCloud_UNI_OttoJi: 麻烦告诉一下修复的版本
2024-07-04 17:55