1.Knockout是 MVVM 框架
2.使用Knockout.js给view赋值
var viewmodel = {
name: ko.observable('name'),
nametow: ko.observable('nametow')
};
创建一个
<div data-bind="text:name">
<input type="value:nametow" />
</div>
3.使用Knockout.js给view赋值
var Viewmodel = function(){
this.name = ko.observable('satrong');
this.job = ko.observable('web dever');
};