0
如何动态地设置KO模板名称时dropn选单中选择价值变动..Dynamcially设置模板名称
我试过,但我没有得到正确的模板。
<select data-bind="options: Attributes, optionsText: 'AttributeName', optionsValue: 'Id', optionsCaption: 'Select Attribute...',value :SelectedAttribute"></select>
<div data-bind="template: { name: SelectedAttribute }"></div>
你可以请张贴一些代码到目前为止,并演示你的问题? – nemesv