JS File Description 1.1 jquery
Description: A multi-browser-compatible JavaScript framework that allows you to manipulate document objects, select DOM elements, animate, event handling, use Ajax, and other features.
File path: commonjs/jquery-1.9.1.js
Compressed version path: commonjs/jquery-1.9.1.min.js
How to use: http://jquery.com/
var div=$ ("#div")
1.2 Jquery-ui
Description: An open source JavaScript Web user interface code base based on JQuery. Visual controls that contain underlying user interaction, animations, effects, and replaceable themes
File path: commonjs/jquery-1.9.1.js
How to use: http://jqueryui.com/
1.3 Jquery.tools
Description: A Web Interface library based on jquery that contains the most commonly used tabs (tabs), tooltip (informational), Overlay (matte, pop-up), scrollable (scrolling control), form Validator (form validation), Rangeinput (range selection), Dateinput (date selection) and many other features.
File path: commonjs/jquery.tools.min.js
1.4 Jquery.cookie
Description: A lightweight cookie plugin that can read, write, and delete cookies.
File path: commonjs/jquery.cookie.js
How to use: http://plugins.jquery.com/cookie/
1.5 Jquery.datatables
Description: An excellent tabular plugin that provides the ability to sort tables, browser paging, server paging, filtering, formatting, and more.
File path: commonjs/jquery.datatables.js
How to use: http://www.datatables.net/
1.6 Json2
Description: Provides a way to serialize and deserialize JSON, convert a JSON object to a JSON string, or convert a JSON string to a JSON object
File path: commonjs/json2.js
Compressed version path: commonjs/json2.min.js
How to use:
var = {id: ' jsonobj ', Name: ' Tom '};
Json.stringify (Jsonobj);
var = "{id: ' jsonstring ', Name: ' Tom '}";
Json.parse (jsonstring);
1.7 Ztree
Description: A multifunctional "tree plugin" that relies on jQuery implementations.
File path: commonjs/jquery.ztree.all-3.5.min.js
How to use: Http://www.ztree.me/v3/main.php#_zTreeInfo
var setting = {
Data: {
Simpledata: {
Enable:true,
IdKey: "",//id
PIdKey: "",//Parent ID
Rootpid: ""//With Node ID
},
Key: {
URL: "Xurl",
Name: ""//Node name
}
},
Callback: {
Onclick:selectedchange//callback method
}
var ztree = $.fn.ztree.init ($ ("#treeDemo"), setting, data source);//initialization tree
1.8 Knockout
Description: A JavaScript implementation of the MVVM framework.
File path: commonjs/knockout-2.3.0.js
How to use: http://knockoutjs.com/
1.9 knockout.mapping
Description: A simple JavaScript object can be MAPP to a view model with a observable value, or a Map object can be converted to its original JavaScript object.
File path: commonjs/knockout.mapping.js
How to use:
All the attributes in data create observable type properties
var ViewModel = Ko.mapping.fromJS (data);
Map objects converted to original JavaScript objects
var unmapped = Ko.mapping.toJS (ViewModel);
1.10 Bootstrap
Description: An open source toolkit for front-end development launched by Twitter.
File path: commonjs/bootstrap.js
Compressed version path: commonjs/bootstrap.min.js
How to use: http://www.bootcss.com/
1.11 uploadify
Description: An upload plugin for jquery that can be displayed with progress.
File path: commonjs/uploadify/jquery.uploadify.js
How to use: http://www.uploadify.com/
1.12 Ueditor
Description: An open source online HTML editor.
File path: commonjs/ueditor/ueditor.all.min.js
How to use: http://ueditor.baidu.com/website/
1.13 Language
Description: Page multi-language JS, generate global variables Basealllang
File path: commonjs/jquery-1.9.1.js
How to use: Basealllang. resource file name. field Name
1.14 checksession
Description: Used to verify whether the session expired, expired auto jump landing page
File path: commonjs/checksession.js
2 portal. Util
Description: Common Methods for portal
File path: Commonjs/portal. Util.js
2.1 Getrootpath
Description: Gets the site root directory.
How to use: Portal.Util.getRootPath ()
2.2 Geturlparam
Description: Gets the URL parameter.
How to use: Portal.Util.getUrlParam (name)
2.3 Format
Description: String formatting, similar to strings in C #. Format ()
How to use: Portal.Util.Format ("Hello {0},wellcome to xxxx", "Zhangsan")
2.4 Openfullwnd
Description: Maximizes the pop-up window.
How to use: Portal.Util.OpenFullWnd (URL)
2.5 getbrowerheight
Description: Gets the internal height of the browser.
How to use: Portal.Util.getBrowerHeight ()
2.6 Getbrowerwidth
Description: Gets the internal width of the browser.
How to use: Portal.Util.getBrowerWidth ()
2.7 Getbrowsertype
Description: Gets the browser type.
How to use: Portal.Util.getBrowserType ()
2.8 IsNull
Description: Determines whether it is empty.
How to use: Portal.Util.isNull (data)
2.9 Alert
Description: Pop-up tip in the lower right corner.
How to use:
* type:0 error failed; 1 success hints; 2 warnings
* Title: The caption defaults to "informational tip";
* Time: Auto-off times default 3000 (3 seconds) 0 means not automatically closed
Portal.Util.alert (type, message, title, time)
JSP Resources and Web sites