Home > Article > Web Front-end > A must-have javascript mini library
I looked at my github star recently and it scared me. I am a cheap person and a collector. I have collected 300+ warehouses. It’s time to organize them.
Unix advocates kiss, small and beautiful, and the best to use in practice. This article will introduce some excellent open source libraries collected by the author.
What these libraries have in common is that they are very small and have a single function.
If you have operated the cookie interface, then you will definitely feel that the specifications of this thing are really too complicated and cannot be remembered at all. In fact, you are right. , because the cookie interface design is problematic, that is to say, the design is too low-level and not friendly at all, so let’s try this js library.
Let’s talk about the browser’s localStore. This thing is amazing. Unfortunately, each browser implements it differently. I’m also drunk. If You also have the same troubles, why not try this mini library, it has a simpler API, the most important thing is that it solves the cross-browser problem, and even solves the problem that lower version browsers (ie6) do not support localStore.
data.js is a data hub with message notifications, I call it talking data. Aims to make programming easier and the world a better place
If you use modular programming, or in a node environment, you must have struggled with the issue of how to share data between different modules (although This is an anti-pattern), global variables. . . Then try this mini library. It is simple and can help you eliminate the above troubles. At the same time, it also supports messages. When the data is updated, a message will be sent out.
template.js A javascript template engine, simple and easy to use.
JavaScript module loader, based on AMD. So far, the best implementation for understanding AMD
Isn’t it nice to add numbers to favico? Click on the official website below to see the effect. This is definitely a must. It's obsessive-compulsive disorder.
Official website.
I won’t explain too much about this, there are various html css js detectors and function detection.
If you have manipulated CSS3 properties, you will definitely find it very painful. Then try this. CSS3 animation becomes simple instantly.
You must not remember the key code of each key on the keyboard. Try this. It is an intuitive display and you no longer need to remember it.
If you want to detect the user's device, try this. It is much more comprehensive than jq.browser.
Mini inspection library, this covers almost all various inspections.
I haven’t used es5 yet, so I can only despise you and worry about compatibility. Use this one, mainly to lay the foundation for es6.
promise is so easy to use, and all compatibility issues are solved with this.
Let’s first look at a demo of the parallax effect. Isn’t it awesome? If you also want to achieve this effect, then give this a try.
Still using pop-up windows to notify users, it’s too low. Come and try this non-blocking, fresh notification plug-in. It’s good for mobile terminals. The interface is amazing.
One-click sharing to Weibo, QQ Space, QQ Friends, WeChat, Tencent Weibo, Douban, Facebook, Twitter, Linkedin, Google+, Diandian and other social networks website.
If you are fed up with the trouble of sharing components, then try this good sharing component for mobile terminals. The interface is beautiful and looks great.
demo
The mathematical operations that come with js cannot meet your needs. Then try this, which expands many mathematical operations.
This is the official website.
This article introduces only a small part of the author's collection. The author will keep it updated from time to time. If you have any recommendations, you are welcome to give us feedback. Give me.
Finally, I recommend microjs to everyone. There are too many small and beautiful libraries collected here. Come to Taobao for yourself.
The above is the content of the javascript mini library that cannot be missed. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!