Vue模板语法(1)
来源:互联网 发布:ssl端口号 编辑:程序博客网 时间:2024/05/19 04:53
Vue模板语法
在底层的实现上,vue将模板编译成成虚拟DOM渲染函数。
虚拟DOM是什么呢?请看戴戴大神的博文:点击打开链接
链接地址:https://github.com/livoras/blog/issues/13
----------------------------------------------------------------------------------------------------------------
我试了试,js创建DOM树
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>virtual dom</title></head><body></body><script> //js对象模拟DOM树 var element={ tagName:'ul', props:{ id:'app-1' }, children:[ { tagName:'li',props:{class:'item'},children:"item 1" }, { tagName:'li',props:{class:'item'},children:"item 2" }, { tagName:'li',props:{class:'item'},children:"item 3" } ] }</script></html>戴戴大神的其他代码,应该是react.js吧, JSX的语法,我没学过,所以就没手敲,懂意思就这样吧。
阅读全文
0 0
- Vue模板语法(1)
- Vue基础(模板语法)
- Vue学习3(模板语法)
- Vue学习日志:模板语法(3)
- Vue模板语法
- vue模板语法
- Vue模板语法
- Vue的模板语法
- vue一.模板语法
- Vue 基础模板语法
- Vue模板语法(2)
- vue模板语法
- vue之模板语法
- Vue基础之Vue模板语法
- vue笔记--模板语法--指令
- vue笔记---模板语法--过滤器
- 代码干货 | vue模板语法
- vue学习03--模板语法
- ToLua 协程中调用 WWW
- 原生AJAX的GET和POST
- 欢迎使用CSDN-markdown编辑器
- vue-安装
- linux 下 g++编译程序时,-I(大写i) 与-L(大写l)-l(小写l) 的作用
- Vue模板语法(1)
- 树莓派+Arduino 传感器 无刷电调、电机等
- Spark
- ElasticSearch初体验之使用Java进行最基本的增删改查
- Spark安装与测试(Linux系统下)
- Flink的高可用集群环境
- You don't know js
- Spark-机器学习模型持久化
- Haproxy请求量大出现503故障一例