I designed Java programs in the previous phase. I suddenly got a job and learned ASP, so I have always been loyal and good at using JavaScript to construct ASP programs. One obvious advantage of JavaScript is that it can define and hold its own
Server-side languages such as PHP, ASP, and JSP provide functions for obtaining URL parameters,
However, when page caching is required, the functions of the server are limited.
Therefore, using javascript to obtain URL parameters is a feasible
Method 1: (applicable to IE browser and not prompted for Refresh, only prompted when you click the close button of the browser)Bytes ----------------------------------------------------------------------------------------------------Method 2:
This pointer in jQuery's each method points to a problem, which was encountered during work yesterday.
JQuery. each statement:1:Java code JQuery ('input [type = checkbox] '). each (function (){ Alert (this. checked + this. treeId); // treeI is a
The day before yesterday, I made a drop-down component like Baidu's search. This problem occurs. When the steering wheel finds the corresponding word on time and presses the carriage return to search, but Google does not trigger my event For example:
Recently, a js calendar is used, which is displayed on the page rather than the pop-up window. Most of the Web searches are displayed in the pop-up window.Some blogs, such as blogjava's calendar, are the type I want. For a rough look, they are
-It's okay to update it again. I went back to my house a few days ago and didn't update it any more.
I will not talk about JavaScript anonymous functions. The benefits of anonymous functions are not mentioned. This section describes the automatic
Directly run the Code:Html code:Html code testdiv open1 open2 close Problem description: Problem type: 1 2 Opinion Description: close Content2 Js Code:Js CodeFunction show (tag ){Var light = document. getElementById (tag );Var
Point in the upper left corner, zoom in and out, and the position remains unchanged. Method 1: Html code --> Method 2: The CSS code is as follows: Css code# Biankuang {height: 480px; width: 320px; margin: 30px auto;} // Add a border to the upper
1. The class itself is an encapsulation form. First, let's take a look at the simplest encapsulation. JavaScript does not have a private keyword. For private Members, it is better to unify the names starting with the following line to identify
List of all parameters for window. open ()Friends who frequently access the Internet may have visited such websites. when they enter the home page, a window will pop up immediately, or a connection or button will pop up, this window usually displays
The document. selection. createRange () method returns a TextRange object based on the selected text or a ControlRange object based on the selected control.With execCommand, you can perform many tasks in the HTML editor, such as bold text, italic
How to implement such a function? When you enter a form, a prompt is displayed in the text box, as shown in. After the user clicks (the text box gets the focus), such: As shown in figure: Code for reference: huangwei Enter User Name
Author
JQuery's event module is complicated. We mentioned the packaging of event objects. That is, some compatibility issues are unified. This article will review the entire event module of jQuery. JQuery. event. add/jQuery. event. remove/jQuery. event.
The Jquery api provides a method to apply the disabled and readonly attributes to elements, which is recorded here. As follows:
1. readonly
$ ('Input'). attr ("readonly", "readonly") // set the input element to readonly.
$ ('Input'). removeAttr
Today is my first day of learning jQuery. The main learning content is as follows:
1. Compile the events after the web page is loaded;
2. How to Use the jQuery selector;
3. jQuery obtains/modifies TAG content and obtains/Tag attribute values;
4.
Dynamically generate check boxes based on the json data returned by the background.
1. Define fieldset for storing the check box
ElementCheckBox = Ext. extend (Ext. form. FieldSet ,{
Id: '_ fieldset ',
Constructor: function (){
ElementCheckBox.
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