【发布时间】:2013-05-05 18:13:42
【问题描述】:
我不明白为什么顶部绑定不起作用,但语句“with”确实起作用。
I have set up the question on JSFiddle here.
Why does this not appear when it is bound to Info.Title?
<div data-bind="text: Info.Title"></div>
<hr/>
But this does when I use the with statement?
<div data-bind="with: Info">
<div>
<h1 data-bind="text: Title"></h1>
</div>
</div>
【问题讨论】:
标签: knockout.js