<input type=’button’ onclick=’display()’ />
<input type=’button’ onclick=display />(函数对象)
dom对象.事件 = 事件的处理程序(通常是一个匿名函数)
<input type=’button’ onclick=’display()’ />
<input type=’button’ onclick=display />(函数对象)
dom对象.事件 = 事件的处理程序(通常是一个匿名函数)