Skip to content

Commit 6df608e

Browse files
committed
update: render fucntion docs
1 parent a561042 commit 6df608e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/guide/render-function.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ type: guide
44
order: 14
55
---
66

7-
## Basics
7+
## 基础
8+
9+
Vue 推荐使用在绝大多数情况下使用 template 来创建你的 HTML。然而在一些场景中,你真的需要 JavaScript 的完全编程的能力,这就是 ** render 函数**,它比 template 更接近编译器。
10+
11+
让我们先深入一个使用 `render` 函数的简单例子,假设你想生成一个带锚链接的标题:
812

913
Vue recommends using templates to build your HTML in the vast majority of cases. There are situations however, where you really need the full programmatic power of JavaScript. That's where you can use the **render function**, a closer-to-the-compiler alternative to templates.
1014

0 commit comments

Comments
 (0)