40 lightweight JavaScript libraries (below)

Source: Internet
Author: User

There are countless popular JavaScript libraries, such as jquery, mootools, prototype, dojo, and Yui. These JavaScript libraries are rich in functionality, and their plug-ins are almost competent for any job. However, there is a price. These libraries often lead to a bloated page size. In some cases, if you only want to do specific work, you can use some lightweight libraries with more specific functions. This article introduces 40 excellent lightweight JavaScript libraries.

This is the second part of this article. For the first part, see 40 lightweight JavaScript libraries (on ).

5. String and mathematical functions

Date. js
Dealing with dates is not easy. There are many formats to deal.DatejsIt can well process simple or complex date functions. The date can be parsed into formats such as "next Thursday" and "+ 2 years". All date formats are also supported, such as 2009.01.08, 12/6/2001.

Sylvester
A mathematical JavaScript library for processing vector and dot matrix, including multi-dimensional vector and dot matrix modeling classes, as well as some models in 3D space.

Pretty date 
A very good JavaScript library that displays dates in a very nice and friendly way, as shown in.

Xregexp
The Regexp object in Javascript already supports regular expressions,XregexpAdded more functions that may be included in future browsers (ecmascript 4-ES4 ). This library caches the Regexp object and adds many new features.

Javascript URL Library
A JavaScript library used to process a URL. It can process any part of the URL.

6. Fonts

Typeface. js
This library allows you to use any font on the webpage, but it is different from flash-based solutions like sifr and fliR,Typeface. js100% Based on JavaScript, you only need to upload your font file to a web-based generator, and then download the generated Javascript file back to include it in the webpage.

Cufón
Similar to typeface. JS,CufónYou can also use any font on the webpage. Similarly, it uses a generator to convert the font to VML and include the generated. js file to the webpage.

7. debugging and recording

Blackbird
Alert () is often used to debug JavaScript.Program,BlackbirdProvides a beautiful console record, view, and filter program running.

Nitobibug
Browser-based cross-browserJavascriptObject Record and check tools.

Firebug Lite
Currently, the best JavaScript debugging tool is notFirebugDoes not belong to, but this tool only supports FirefoxFirebug LiteInsert a. js file into your web page to implement the firebug function in all browsers.

8. Others

Swfobject
This is the most popular method for referencing flash objects. Standard SWF reference can be generatedCodeAnd test the Player version. If the user version is not supported, the backup content is displayed.

SorttableAndDragtable
Whether you like it or not, table is still the best way to present data, but it can be used better.SorttableYou can sort table data by adding a class = "sortable" flag to the table and excluding the specified column.DragtableYou can drag the column of the table and add the class = "dragable" icon to the table. These two classes can be used in combination. You only need to add class = "sortable dragtable.

Dd_roundiesAndDd_belatedpng
Dd_roundiesYou can achieve the rounded corner function without relying on images. It is only for IE and implemented through VML. other browsers will be skipped because those browsers support CSS rounded corners.

Dd_belatedpngIt was developed to solve the problem that IE6 does not support PNG well, no matter whether PNG images are used for SRC or background-image,Dd_belatedpngCan be repaired.

Custom JavaScript dialog boxes
A lightweight JavaScript library with a size of 4.5 kb can create user-defined dialog boxes to display four types of message boxes, alerts, warnings, prompts, and success. You can set the message box title, content, and display for too long.

Gamejs
GamejsThe xNa game framework of Microsoft is transplanted on JavaScript, And the canvas object is used as the output device. Javascript is not the best gaming platform, but it is no problem for games with low frame rates.

Shortcuts. js
Starting from Google Reader and Gmail, shortcut keys in web programs have become popular.Shorcuts. jsMakes it easy to process shortcuts.

Mapstraction
Many map providers provide different APIs. If you want to change providers, such as from Google Maps to Mapquest, you need to update the code,MapstractionProvides APIs for commonly used map providers, which can be converted with only one line of code.

Amberjack
A 4 K mini JavaScript library can add beautiful tutorial functions for your website. A mode window will display any content in the form of a tutorial, the steps in this tutorial can be manually encoded or automatically generated online. You can use themes or CSS to control the content format.

Jsload
Jsload can remotely load various JavaScript libraries from Google server and automatically load support libraries of various versions.

International Source: http://www.smashingmagazine.com/2009/03/02/40-stand-alone-javascript-libraries-for-specific-purposes/
Source: comsharp CMS official website

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.