このコードが 3 秒経っても変化しないのはなぜですか? 私は何を間違っていますか?
<div data-bind="visible: isBusy()">
is busy
</div>
<div data-bind="visible: !isBusy()">
is not busy
</div>
var viewModel;
function AppViewModel() {
var self = this;
self.isBusy = ko.observable(true);
}
function isNotBusyAnymore() {
viewModel.isBusy = ko.observable(true);
}
viewModel = new AppViewModel();
ko.applyBindings(viewModel);
setTimeout(isNotBusyAnymore, 3000);