-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] 写出多种定义组件模板的方法 #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
1、字符串 |
1、字符串、模板字面量 Vue.component('my-checkbox', { |
使用字符串模板可以直接在组件选项中使用template属性定义字符串模板。
使用单文件组件(sfc)单文件组件是一种将组件的模板、样式和逻辑封装在单个文件中的方式。
使用渲染函数渲染函数是一种以JavaScript函数的形式来定义组件的模板的方式。
使用JSX(需要Babel或TypeScript支持)JSX是一种将HTML结构和JavaScript代码组合在一起编写组件的语法扩展。
|
[vue] 写出多种定义组件模板的方法
The text was updated successfully, but these errors were encountered: