Today, I will publish a series of articles to share with you 40 useful jQuery plug-ins.
HTML5 File Uploads with jQuery (Demo | download)
This is a jQuery plug-in that helps you implement the HTML5 file drag-and-drop upload function.
Shuffle Letters
Method call mode When a function is saved as an attribute of an object and we call it a method of the object, this is bound to the object.Copy codeThe Code is as follows:Var myObject = {Name: "myObject ",Value: 0,Increment: function (num ){This.
The solution is as follows:First, determine whether the current node of the event, that is, whether jquery's currentTarget is included in the target, that is, the following extension $. containsNode.Then, In the mouseover and mouseout events when
Copy codeThe Code is as follows:String query = request. getParameter ("query ");MMStock2BudgetLogic bean = new MMStock2BudgetLogic ();String xmldata = bean. statStock2Budget ();%> total purchase expenditure ratio of inventory Points
1. Sorting:The default sort () is sorted by character encoding:Copy codeThe Code is as follows: Now we want to sort it by numerical value:Copy codeThe Code is as follows: You only need to pass a comparison function to sort. If the value of the
Check the following code in different browsers:Copy codeThe Code is as follows: test IE8: object, object, undefinedFF8.0: undefined, MouseEvent, undefinedCr16: MouseEvent, MouseEvent, undefinedOpera: MouseEvent, MouseEvent, undefinedSafira:
This section uses the window attributes of the Document Object. The main functions and usage of these attributes are as follows.To obtain the Window size, different properties and methods are required for different browsers: to check the actual size
At the time, I was at the sharing meeting. I wanted to try it, but I had no computer around. Today, when I opened Firebug, I suddenly remembered it. I immediately tried a previous solution. Yes! The Code is as follows:Copy codeThe Code is as follows:
If you have never used these things, I believe this blog post will be helpful to you. If you have any questions or have bugs, feel free to contact me,At the same time, you are also welcome to give more advice. I do not recommend that you grow up in
Event ModelSpeaking of events, we have to trace the "browser war" between Netscape and Microsoft. At that time, there was no standard for the event model, and the implementation of the two companies was a fact standard. Netscape implements an "event
This article will briefly discuss the problem of optimizing jQuery code from the perspective of character selection.Sizzle Running MechanismJQuery starts from 1.3 to separate the code for searching elements based on the selector expression, that is,
Browser model:1. DOM 0th-level model The event handler declares the attribute assigned to the DOM element through the reference of the bar function instance. This is also our most common, such as onclick.Copy codeThe Code is as follows:$ ("Img").
I am not using the built-in edit and delete operations of jqGrid here. I have deleted the edits, deletions, and searches in the navigation bar on the page, $ ("# list1 "). navGrid ("# pager1", {edit: false, del: false, search: false}). After the
For example, if we want to use a cookie under www.jb51.net, we only need to set a cookie in the file below this site.But if we want to implement the cookie set under the first-level domain name and use it under the second-level domain name, what
Exquisite tmplThere are many open-source front-end templates, but the "javascript micro templating" developed by John Resig, jQuery's author, is the most subtle. With just a few clicks, the core functions of the template engine are implemented.See
Many frameworks have parent-child relationships, which are very troublesome to operate. Many people often see such sad code:Copy codeThe Code is as follows:Extends extends parent.doc ument. getElementById ("main ").ContentWindow.doc ument.
I wrote a short article about how to define the input type = "file" style. For general forms, there are few upload controls. This is a good practice. It not only reduces code, but also beautifies the style. The original Article is "defining input
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.