Link dashed box
/** A, img, input, and other labels are clicked with a dotted box * removing it */. noDashedBox {outline: 0; blr: expression (this. onFocus = this. blur ());}
Fixed Positioning
/* css */.fixedTop { position:fixed; top:100px;
Add attribute
$target.attr({"title":"one piece","name":"solgan"});
Add the title and name attributes to the target Element
Before adding:
I am Lu Fei, the man who wants to become the pirate king.
After adding:
I am Lu Fei, the man who wants to
Variable Scope
Variable scope refers to where the value of a variable can be obtained in a program. the javascript function scope is defined as the function scope, which means that the value of the variable is visible to the function that defines
JavaScript to get parameters in the address bar
1. Get parameters in the address bar
(1) If the address in the address bar is:
Http: // 10.124.36.56: 8080/CMOD/index. jsp? Name = you & password = 123456 & type = student
(2) obtain the last
I. Existing js pop-up box
1. alert (message)
Message is the plain text to be displayed in the pop-up box;
2. confirm the prompt box confirm
Confirm (message)
Message is the plain text (not HTML text) to be displayed in the prompt box)
Click
Recently, the project needs to modify the dialog source code of jquery ui. Therefore, let's take a closer look at the dialog source code of jquery ui and make a summary.
Dialog_obj (alias ):
VcD4KPHA + PGJyPgo8L3A +
The following code is used:
Output result:
0001 Zhang San, 11
We can see that Student has successfully integrated the Person method and has the Person's say method. The core code is actually a sentence of Student. prototype = new Person ();. The
After jQuery1.5, the AJAX module provides three new methods for managing and scaling AJAX requests: 1. pre-filter jQuery. ajaxPrefilter 2. request distributor jQuery. ajaxTransport, 3. type converter ajaxConvert source code structure: copy the code
I learned about Jquery's powerful selector two days ago. Today I learned some Jquery operations on DOM. I will share my achievements today with you, cainiao, do you need to consolidate what you have learned before? First, You Need To Know That DOM
I remember that when I first came into contact with dynamic HTML and JavaScript, I had access to script code about right-click shielding, at that time, many of these codes were used to prevent the viewer from copying text or other content on the
The popular micro-blog websites such as Twitter have a good user experience. When you enter text in the text box, the entered characters are automatically counted, and display the characters that can be entered by the user. In a microblog with a
Copy codeThe Code is as follows:$ (Function (){$ ("# Input"). focus (function () {// # Replace input with your input ID// Write the code that runs after getting the focus.}). Blur (function (){// $ (". Scroll-question" ).css ("display", "none ");});}
Json is a common ajax data type and is often used. But what if a line break appears in the field?It is obviously not suitable to remove it. Some fields already have line breaks. How can I remove them?I have tested the processing of json classes and
There are two dedicated functions for the timer in javascrui, which are: 1. countdown timer: timenamesetTimeout (& quot; function (); & quot;, delaytime); 2. cycle Timer: timenamesetInterval (& quot; function (); & quot;, delaytime); fu
There are
I directly wrote the code in [html]. & lt ;! DOCTYPEHTML & gt; & lt; html & gt; & lt; head & gt; & lt; scriptsrc & quot; http://code.jquery.com/jquery-1.7.1.min.js"><style I directly wrote the code on the annotation to be clear [html]
Before I run the nodejs program, I entered a similar command in the cmd command to start: nodeD: \ NodeJs \ demo_express \ microblog \ app. after the jscmd command is disabled, the nodejs program is also automatically closed. In the production
The current jQueryUI version has been updated to 1.8.7. Compared with easyui, jQueryUI is more beautiful And customizable on the interface. So I will explain the usage of some jQueryUI components for future reference. In addition, the current
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.