• <nav id="cwumo"><code id="cwumo"></code></nav>
  • <menu id="cwumo"><strong id="cwumo"></strong></menu>

    prototype Element學習筆記

    時間:2020-09-25 17:03:42 讀書筆記 我要投稿

    prototype Element學習筆記

      一、篩選類函數

    prototype Element學習筆記

      ancestors、recursivelyCollect、descendants、firstDescendant、immediateDescendants、previousSiblings、nextSiblings、siblings、match、up、down、previous、next、select、adjacent。

      二、增、刪、改元素類函數

      、update、remove、replace、wrap、cleanWhitespace

      三、設置元素各種屬性類函數

      visible、toggle、hidde、show、identify、readAttribute、writeAttribute、makeClipping、undoClipping

      四、樣式處理類函數

      classNames、hasClassName、addClassName、removeClassName、toggleClassName、getStyle、setStyle、getOpacity、setOpacity。

      五、位置處理類函數

      getHeight、getWidth、scrollTo、getDimensions、makePositioned、undoPositioned、cumulativeOffset、positionedOffset、absolutize、relativize、cumulativeScrollOffset、getOffsetParent、viewportOffset、clonePosition。

      六、幾個返回布爾型的函數

      empty、descendantOf、visible

      七、事件管理類

      fire、observe、stopObserving

      八、static函數

      extend

      基本上就是這么幾類了。不過,關于位置類函數,只有取,沒有設置的,功能不完善啊。這里面的查找類函數的用法文檔中也沒有盡言,關鍵是怎么寫選擇符

    【prototype Element學習筆記】相關文章:

    Prototype如何更新局部頁面01-16

    Prototype如何實現頁面局部定時刷新01-16

    JavaScript中的原型鏈prototype詳解11-18

    有關JavaScript中的prototype.bind()方法介紹11-17

    JAVA學習筆記08-29

    Java學習筆記08-13

    JavaScript學習筆記11-13

    關于javascript學習筆記11-16

    JavaScript ,事件學習筆記11-11

    JavaScript內置對象學習筆記11-11

    日韩激情