【发布时间】:2018-01-28 11:42:30
【问题描述】:
这是我想在我的 index.html 上使用 [https://krystalcampioni.github.io/vue-hotel-datepicker/] [https://github.com/krystalcampioni/vue-hotel-datepicker#i18n] 作为日期选择器的组件,但我给出了一个错误 无法安装组件:未定义模板或渲染函数。 下面是我在 index.html 上写的代码`
//index.html
<html>
<script src="path/to/vue.js"></script>
<script src="vue-hotel-datepicker/dist/vue-hotel-datepicker.min.js"></script>
<body>
<div id="app">
<HotelDatePicker/></<HotelDatePicker>
</div>
<script>
new Vue({
el: '#app',
components: { HotelDatePicker }
})
</script>
</body>
</html>
`
【问题讨论】:
-
您必须为此使用
require
标签: vue.js datepicker vuejs2 vue-component