Due to the use of the selected control in the project, the Internet has found some related implementation, there are basically two:
1, based on the jquery UI control:
This looks good, and the use of the function is also relatively complete, but
1, jquery $.map way with its own
Copy Code code as follows:
$.map (JSON, function (n) {return n;});
This method was used to copy the array, and today it can be used to copy one of the records in the array, discovering that
The code is as follows:
Copy Code code as follows:
The application of navigation bar in the project
Book Classification Shutdown Novel (1110) Literature (230) Youth (1430) Children (1560) Life (870) Social
Fetch
Copy Code code as follows:
Getdatediff (Start, End, ' Day ')
/*
* Get time difference, the date format is year-month-day hour: minutes: seconds or Year/month/day hours: minutes: seconds
* in which, the date of year is full
Copy Code code as follows:
yancms left navigation bar
Main function Menu
Category Management
Blog list
Add Bowen
Category Management
Category List
Links
Link
jquery is an excellent JAVASCRĪPT framework after prototype. It is a lightweight JS library (only 21k after compression), it is compatible with CSS3, but also compatible with a variety of browsers (IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+). jquery
Requirements: When the picture is switched, the next screen does not allow blank entries, in other words:
1. When the last screen moved is less than the number to show, only move (show number-the number of the last screen) difference. For example:
This article uses the ScrollTop method of jquery to monitor the page's vertical scrolling pixels and hide or display the top navigation bar based on pixels.
Effect Preview URL: http://www.keleyi.com/keleyi/phtml/scrolloversee.htm
ScrollTop's
jquery to achieve tab switching contact JQ soon before the JS code to write simple effect is now written in JQ:
HTML code:
Copy Code code as follows:
Latest reviews recent hot reviews random articles
1234567890-1
The simple design pattern, in fact, is the effective solution to the problem. In fact it is a kind of thought.
1. Single case design mode.
Solve the problem: is to ensure that a class in memory of the object uniqueness. (Single instance)
Use a
1. Invoke the function in ASPX using jquery:
Copy Code code as follows:
Sajax ("***.aspx/dosave",//a URL address, pointing to the ASPX where the function is located)
null,//parameter, the argument required for the function of the
Copy Code code as follows:
2013-06-24
Health and good Luck '
If you want to find the span with icon this class (operate on it, change the News_list_icon to News_list_icon_hover), in addition to using the original
Parent > Child
Overview
Matches all child elements under a given parent element
Parameters
Parentselector any valid selectors
Childselector the selector that matches the element, and it is the child element of the first selector
Sample
1.before (): Add new node to front
2.after (): Add nodes to lower part
3.prepend (): Turn the node into the first node
4.append (): Add new node to end, same as Appendto (), except for grammatical differences
5.remove (): Remove node
Example:
Copy Code code as follows:
jquery Dynamic Drag ' n drop
3". Returned array can is found at the right
2. Dragging changes the opacity of the item
1". Once dropped, an Ajax query is activated
4". It is very very easy
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