更新时间:2023年04月22日 14:02:44 作者:Akimoto Hiroshi 这篇文章主要介绍了html页面引入vue组件之http-vue-loader.js解读,具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教 html页面引入vue组件之http-vue-loader.js 首先这种方法不推荐,日常工作中也不会在html里面引入一个vue文件,只是为了有时候方便测试才会这么做 1.创建my-component.vue <template> <div class="hello">Hello {{who}}</div> </template> <script> module.exports = { data: function() { return { who: 'world' } } } </script> <style> .hello { background-color: #ffe; } </style> 2.创建index.html <!DOCTYPE html> <html> <head> <meta...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with childModule
Contact childModule, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack