【发布时间】:2012-01-13 03:13:55
【问题描述】:
我的函数Event.observe(n,"click",respondClick)执行respondClickON点击。
但是我需要执行respondclickAFTER点击
我需要获得我的 div AFTER 我点击的高度。但是这个函数会瞬间得到我的 div 的高度。
有可能吗?
Event.observe(n, 'click', function(e){
var height = $("hello").getHeight();
alert(height);
});
【问题讨论】:
标签: javascript events function prototypejs