1. 双大括号表达式
{{msg}}
{{msg.toUpperCase()}}
{{msg}}
2. 指令一: 强制数据绑定
3. 指令二: 绑定时间监听
test1 test2
{{msg}}
{{msg.toUpperCase()}}
{{msg}}
test1 test2
常用的一些模板语法啦
模板语法实验介绍Vue.js 使用了基于 的模板语法,允许开发者声明式地将 DOM 绑定至底层应用实例的数据。所有 Vue.js 的模板都是合法的 ,所以能被遵循规范的...
vue
【Vue】基础系列(二)Vue模板语法-插值语法-指令语法
在这个章节中,简单的看下Vue3的基础语法,有了这些基础后,对写vue3单页也就没有什么问题了。
Vue模板语法有2大类:1.插值语法:功能:用于解析标签体内容。写法:{{xxx}},xxx是js表达式,且可以直接读取到d
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M