Skip to content

Latest commit

 

History

History
110 lines (89 loc) · 922 Bytes

readme.md

File metadata and controls

110 lines (89 loc) · 922 Bytes

tiny.js

a simple dom libary.

api doc:

core

  • DOM
  • all
  • each
  • map
  • extend

dom

  • val
  • clone
  • append
  • prepend
  • after
  • before
  • remove
  • prev
  • next
  • siblings
  • addClass
  • removeClass
  • toggleClass
  • hasClass
  • attr
  • removeAttr
  • text
  • html
  • replaceWith

css

  • css
  • height
  • width
  • innerHeight
  • innerWidth
  • outHeight
  • outWidth
  • position
  • viewportPostion
  • scrollTop
  • scrollLeft

事件(event)

  • on
  • once
  • off
  • trigger
  • emit
  • ready
  • click
  • dblclick
  • mouseover
  • mouseout
  • mouseenter
  • mouseleave
  • mouseup
  • mousedown
  • focus
  • blur
  • change
  • submit
  • select
  • keydown
  • keypress
  • keyup

ajax

  • getJSON
  • post
  • get

动画(animation)

  • fadeIn
  • fadeOut
  • hide
  • show

辅助工具(utils)

  • type
  • isArray
  • isObject
  • isNumber
  • isString
  • isFunc
  • toArray
  • objEach
  • objMap
  • proxy
  • extend
  • extends
  • deepExtend
  • parseHTML
  • parseJSON