简体   繁体   中英

How to write a JS lib?

I am looking for good practice or pattern to write a lib in JS. I would like to get good reference on how to write. Or pattern to follow.

I've just write a lib, but seems to be not good code. So, I am looking for doc in relation to.

On dailyJS , there is excellent series on how to create a javascript framework, check it out:

The features along with tutorials you will be going to learn include:

  • Library architectures
  • Functional programming
  • Selectors
  • Events
  • Ajax
  • Animation
  • Module loading
  • Plugin architecture

And here is the result of that great tutorial series, "turningjs" framework

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM