取ID对象
Module List
Here is a partial list of the modules and their descriptions.
YUI 3 Component Module Animation anim Attribute Engine attribute Class Builder base Collection Utilities collection Drag & Drop dd DOM Element Utilites dom DOM Event Utilities event Custom Event Engine event-custom IO (XHR/XDR) io JSON json HTML Element Wrapper node Support for non-blocking iterative operations async-queue
/*通过yui.add创建自定义的一个模块*/
YUI.add('mymoudle',function(Y){
Y.namespace('mynamespace');
Y.mynamespace.Mod1=function(){
//API bec
}
},'0.1.1',{requires:['base']})YUI判断对象类型的方法