Skip to content

xiaofuzi/tiny.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a simple dom libary.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published