8
有沒有辦法將iframe
的src
屬性的數據綁定到我的modelView中的某個項目?這...如何數據綁定iframe src屬性?
<iframe data-bind="src: BioLink" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
......沒有做到這一點。
有沒有辦法將iframe
的src
屬性的數據綁定到我的modelView中的某個項目?這...如何數據綁定iframe src屬性?
<iframe data-bind="src: BioLink" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
......沒有做到這一點。
使用attr
binding,就像這樣:
<iframe data-bind="attr: {src: BioLink}" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>