Several plug-ins have been developed in the company's project process. The following is the jquery plug-in template used by Levin. Similar to Google.
CopyCodeThe Code is as follows:; (function ($ ){
// Private functions.
VaR P = {};
P. func1 =
This control is developed based on jquery and must reference the jquery framework.
Widget
Code
Copy codeThe Code is as follows: $. FN. mynudge = function (){
VaR self = $ (this );
Self.css ({position: "absolute"}); // Let this element be
Author: Yang xinqi
Original: http://www.cnblogs.com/scotoma/archive/2010/03/05/1679477.html
A big brother of the TP Forum joined me tonight and said that he also encountered this problem! Think about the fact that many things have been
CopyCode The Code is as follows: var arr1 = ["one", "two", "three", "four", "five"];
$. Each (arr1, function (){
Alert (this );
});
Output: One two three four fiveCopy codeThe Code is as follows: var arr2 = [[1, 2, 3], [4, 5, 6], [7, 8, 9]$. Each
$ Selector: When $ is used, the returned value is an object.$ Selector is mainly used to select tags. the basic usage is the same as the CSS selector. however, he supports common browsers, and many selectors in CSS are not supported by ie6.1. Basic
In fact, I originally planned to be a web designer, but no one thought that I was well designed. So far, my brother has no job yet. Let's just let it go.
Images to be used:
Background image:
Progress display image:
Webpage
Extjs itself provides rich space and good interface development, just like winform development. However, extjs has an imperfect space, but its shortcomings also have its own methods to make up for it. The good scalability of extjs is the best method
DOM:
CopyCode The Code is as follows: function displaytextboxvalue (){
VaR element = Document. getelementbyid ('textbox ');
// Set the attribute on the DOM element by hand-will update the innerhtml
Element. setattribute ('value', element. value
1. Basic: The analysis principle is to trigger various incompatibility of events when input content changes in various browsers. Use the onpropertychange event in IE and use the input event in other browsers.2. Use Case: perform the following tests
It takes about five to ten minutes to get familiar with jquery. Levin successfully wrote a jquery plug-in because this pilot effect is quite common ~
If your website needs a similar effect, you can use it directly or expand it :)
If you want to
See the following code:
CopyCode The Code is as follows:
testpage
The unbind is used, removeattr is used, and your method is added. Let's take a look at their API document:Unbind ([type], [FN])OverviewBIND () reverse operation to delete
During web development, you sometimes need to perform some operations based on the keyboard, such as submitting a form when you press enter, prohibiting users from entering certain special characters, and setting shortcuts. At this time, you need to
However, after studying the help of nginx, we found that the nginx service can be managed with the-S parameter:
#/Usr/local/nginx/sbin/nginx-H
Nginx version: nginx/0.7.63
Usage: nginx [-? Hvvt] [-S Signal] [-C filename] [-P prefix] [-G directives]
// Traverse option and add or remove Option
Function changeshipmethod (shipping ){
VaR Len = $ ("select [@ name = ishiptype] Option"). Length
If (Shipping. value! = "Ca "){
$ ("Select [@ name = ishiptype] Option"). Each (function (){
If ($ (this).
1. event. srcelement
CopyCode The Code is as follows: // srcelement can only be used in IE when target is used in Firefox. below is the Compatibility Statement.
VaR OBJ = E. srcelement? E. srcelement: e.tar get;
2. E. originalevent. xCopy codeThe
1. Create an ASX File
CopyCode The Code is as follows:
// start time
// playback length (30 seconds)
Note: The test shows that only lowercase letters are supported, and uppercase letters are invalid. I do not know why. 2. embed an embed
The JavaScript code is used to directly assign values to the Value attribute of the editor as a string. To prevent the JS Code from being disturbed by double quotation marks or line breaks in the content, it is most convenient to read the content
Solution 1: heavy-load ConnectionBecause the interaction between extjs and the server is in json format, the server does not control the page Jump, page Jump, and the prompt function is completed by extjs.The interaction methods between extjs and
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