<div>
<date-picker data-status="activated"></date-picker>
</div>
<script src="https://unpkg.com/vue@next"></script>
<script>
const app = Vue.CreateApp ({});
app.component('date-picker', {
inheritAttrs: false,
template: `
<div class="date-picker">
<input type="datetime" v-bind="$attrs" />
</div>
`
});
app.mount('#app')
</script>
又一个Uncaught TypeError: Vue.CreateApp is not a function,这是在干啥,有啥作用,看不懂
最新推荐文章于 2023-04-04 16:26:37 发布