1
看到我demo,我希望鉤組件願與下面的代碼:有沒有辦法掛鉤VUE組件準備(初始化)
<body>
<div id="app">
<ro-tag></ro-tag>
</div>
<script>
Vue.component("ro-tag", {
ready: function() {
console.log("ready")
},
template: "<div></div>"
})
new Vue({el: "#app"})
</script>
</body>
就緒功能不被調用。