Skip to content

Commit

Permalink
Vue模板编译原理
Browse files Browse the repository at this point in the history
  • Loading branch information
yzsunlei committed Dec 29, 2019
1 parent ec56456 commit a883000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1.4.Vue模板编译原理-Template生成AST.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export function parseText (
while ((match = tagRE.exec(text))) {
index = match.index
// push text token
// 先把 {{ 前边的文本添加到tokens中
// 先把 { { 前边的文本添加到tokens中
if (index > lastIndex) {
rawTokens.push(tokenValue = text.slice(lastIndex, index))
tokens.push(JSON.stringify(tokenValue))
Expand Down

0 comments on commit a883000

Please sign in to comment.