• When you add or remove a DOM node.
  • When you apply a style dynamically (such as element.style.width="10px").
  • When you retrieve a measurement that must be calculated, such as accessing offsetWidth, clientHeight, or any computed CSS value (via getComputedStyle() in DOM-compliant browsers or currentStyle in IE).
創作者介紹
創作者 程式筆記 的頭像
benjamin16pp

程式筆記

benjamin16pp 發表在 痞客邦 留言(0) 人氣( 9 )