天天看点

[导入]Ms Ajax Lib-> $get 方法

UI.DomElement $get 方法。提供了一个Sys.UI.DomElement类中getElementById方法的快捷访问方式。// Add handler using the getElementById method$addHandler(Sys.UI.DomElement.getElementById("Button1"), "click", toggleCssClassMethod);// Add handler using the shortcut to the getElementById method$addHandler($get("Button2"), "click", removeCssClassMethod);