Skip to content

Commit

Permalink
Fixed some space usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang authored Apr 8, 2017
1 parent 25f9c31 commit 258f607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v2/guide/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ new Vue({

### DOM 模版解析说明

当使用 DOM 作为模版时(例如,将 `el` 选项挂载到一个已存在的元素上), 你会受到 HTML 的一些限制,因为 Vue 只有在浏览器解析和标准化 HTML 后才能获取模版内容。尤其像这些元素 `<ul>` `<ol>` `<table>` `<select>` 限制了能被它包裹的元素, 而一些像`<option>`这样的元素 只能出现在某些其它元素内部
当使用 DOM 作为模版时(例如,将 `el` 选项挂载到一个已存在的元素上), 你会受到 HTML 的一些限制,因为 Vue 只有在浏览器解析和标准化 HTML 后才能获取模版内容。尤其像这些元素 `<ul>``<ol>``<table>``<select>` 限制了能被它包裹的元素, 而一些像 `<option>` 这样的元素只能出现在某些其它元素内部

在自定义组件中使用这些受限制的元素时会导致一些问题,例如:

Expand Down

0 comments on commit 258f607

Please sign in to comment.