描述真实DOM的javaScript对象
//虚拟dom描述的对象
const vdom = {
tag: 'div',
props: {
onclick: () => alert('clicked'),
},
children: ["click me"]
}
2024-11-02 06:59:36
描述真实DOM的javaScript对象
//虚拟dom描述的对象
const vdom = {
tag: 'div',
props: {
onclick: () => alert('clicked'),
},
children: ["click me"]
}