我尝试使用事件。方法,由Prototype JS提供。为了确保DOM被加载,我使用了document.observe。这会导致错误Uncaught TypeError: undefined不是函数。原型JS被加载,如下所示: