我该怎么做?要了解可观察的
function(button) {
var buttonClicks = Observable.fromEvent(button, "click");
var subscription =
buttonClicks.
forEach(function(clickEvent) {
alert("Button was clicked. Stopping Traversal.");
subscription.dispose();
});
}