Home  >  Article  >  Web Front-end  >  Detailed introduction to 5 JavaScript libraries that front-end engineers love

Detailed introduction to 5 JavaScript libraries that front-end engineers love

黄舟
黄舟Original
2017-03-09 14:56:521453browse

Detailed introduction to 5 JavaScript libraries that front-end engineers loveIntroduction

Front-end development should be regarded as the most interesting part of the entire Web application development process, regardless of At any time, you can always see some new frameworks emerging, and there are countless articles about how to apply them. We can safely say that there are countless various development frameworks on the Internet. In short, no matter what program we want to develop, there will always be some ready-made tools available for us to use, isn't it?

In this article, I will share five very useful JavaScript libraries to help you simplify front-end development.

Moment.js

This is a very powerful JavaScript library that can help you modify and display dates very easily. It is also very lightweight (about 12KB) and can be easily applied. into web applications. For example, if you want to display the date 10 days ago, just use the following code:

moment().subtract(10, 'days').calendar();  //will display date in the format mm/dd/yyyy

Project address: GitHub – https://github.com/moment/moment/

Hello .Js

Do you have a headache integrating various social login methods into your website? Well, come and take a look at this JavaScript library. It provides integration of login methods for different social networking sites, allowing you to easily use standard paths and obtain common responses. Therefore, you no longer need to flip through the development documents and SDKs provided by different social platforms one by one. All you need to do is introduce Hello.js into your project, and then you can enjoy its power.

Project address: GitHub – https://github.com/MrSwitch/hello.js

is.js

Whether to write various regular expressions and format verification Feeling tired of coding? No need to worry now because you can save yourself using is.js. Whether it is email address, phone number or any other verification format, is.js can handle it all and allows you to easily extend it. Here are some examples:

is.email('test@test.com'); //check if the given string is valid email

is.creditCard(378282246310005);  //checks for valid credit card

Project address: GitHub – https:// github.com/arasatasaygin/is.js

Underscore.js

Underscore.js provides more than 100 commonly used functions to help you speed up daily development. You can trust it to complete the tedious but unavoidable code in your JS code, and avoid the instability that may be caused by manual implementation, thus greatly improving productivity. The best thing about it is that the release version of the code is only 5.7K, which means it has almost no big impact on the loading speed of your application.

Project address: GitHub — https://github.com/jashkenas/underscor

Awesomplete

A lightweight, zero-dependency JavaScript library that can help you implement Autocomplete (typing) function. It’s super easy to use, just import JS and CSS files and you’ll see the effect in less than a minute. The compressed code is less than 2KB, which is very suitable for use in production environments. Just like its English name means, it is really "super powerful auto-completion"!

Project address: GitHub – https://github.com/LeaVerou/awesomplete

The above is the detailed content of Detailed introduction to 5 JavaScript libraries that front-end engineers love. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn