导入vue项目
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.js"></script>
<script src="https://unpkg.com/http-vue-loader"></script>
非常的爽
<div id="app">
<my-component></my-component>
<bd></bd>
<bd2></bd2>
<bd3></bd3>
</div>
<script type="text/javascript">
new Vue({
el: '#app',
components: {
'my-component': httpVueLoader('my-component.vue'),
'bd': httpVueLoader('bd.vue'),
'bd2': httpVueLoader('bd2.vue'),
'bd3': httpVueLoader('bd3.vue'),
}
});
</script>
这样你就可以 多积累 多学习