prototype dom ready方法
dom ready方法就是在页面加载完毕后,执行某个写好的prototype代码。官方示例为:document.observe("dom:loaded", function() { // initially hide all containers for tab content $$('div.tabcontent').invoke('hide');});测试代码为