KnockoutJS 虚拟元素
KnockoutJS Virtual element
本次 page 淘汰赛中描述的虚拟元素有何优势?虚拟元素与常规 HTML 元素有何不同以及它的使用位置?
http://knockoutjs.com/documentation/if-binding.html#note-using-if-without-a-container-element
In this case, you can’t put if on the <ul>
(because then it would
affect the first <li>
too), and you can’t put any other container
around the second <li>
(because HTML doesn’t allow extra containers
within <ul>
s).
本次 page 淘汰赛中描述的虚拟元素有何优势?虚拟元素与常规 HTML 元素有何不同以及它的使用位置?
http://knockoutjs.com/documentation/if-binding.html#note-using-if-without-a-container-element
In this case, you can’t put if on the
<ul>
(because then it would affect the first<li>
too), and you can’t put any other container around the second<li>
(because HTML doesn’t allow extra containers within<ul>
s).