2020年5月19日
摘要: props html的属性是大小写不敏感的,所以如果传递的属性是驼峰写法,使用的时候需要用-写法来使用; Vue.component('blog-post', { // 在 JavaScript 中是 camelCase 的 props: ['postTitle'], template: '<h3> 阅读全文
posted @ 2020-05-19 17:03 半夏微澜ぺ 阅读(115) 评论(0) 推荐(0)