发布于 2016-12-29 00:48:22 | 126 次阅读 | 评论: 0 | 来源: 网友投递
Knockout.js JavaScript的UI库
Knockout 是个JavaScript library,帮助创建丰富的显示和编辑器UI,通过干净的底层数据模型。你可以在任何时候动态更新UI的选择部分。
<script type="text/javascript" src="knockout-2.2.0.js"></script>
<span data-bind="text:helloWorld"></span>
<script type="text/javascript">
var AppViewModel = {
helloWorld:'Hello World !!'
};
ko.applyBindings(AppViewModel);
</script>
<script type="text/javascript">
var AppViewModel = {
helloWorld:'Hello World !!'
};
ko.applyBindings(AppViewModel);
</script>
<script type="text/javascript" src="knockout-2.2.0.js"></script>
<script type="text/javascript">
var AppViewModel = {
helloWorld: 'Hello World !!'
};
ko.applyBindings(AppViewModel);
</script>
<span data-bind="text:helloWorld"></span>