这两个记录有什么区别?它们应该同样有效。
<span data-bind="text: fullName"></span>
<script>
var viewModel = kendo.observable({
firstName: "John",
lastName: "Doe",
fullName: function() {
//return this.firstName + " " + this.lastName;
return this.get("firstName") + " " + this.get("lastName");
}
});
kendo.bind($("span"), viewModel);
</script>