From 26e59336a9ce9b120dd7bf6a8ae43a6765054d3a Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 17 Jun 2024 11:51:24 +0800 Subject: [PATCH] Update Home --- Home.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Home.md b/Home.md index 86452c6..0220de7 100644 --- a/Home.md +++ b/Home.md @@ -8,6 +8,7 @@ - `:xxx=yyy`, 属性绑定, 类似`vue`,在属性前加上`:`, 该属性不再使用`setAttribute()`, 而是直接赋值, 可满足你需要传递复杂数据结构的需求。 - `#animation={type}`, 开箱即用的动画配置, 内置6种动画`fade(默认), scale, bounce, micro-bounce, rotate, slide` - `ref=xxx`, 类似`vue`的节点标识, 可方便的在`mounted()`之后通过 `this.$refs.xxx` 来访问该节点 +- 内置特色的双向绑定方法`live()` - 用内置的`bind()`方法来给当前组件绑定事件时, 组件移除时事件也会自动销毁,无需手动销毁。 - 灵活的`props`定义