Introduction to the on method in jquery

Copy codeThe Code is as follows:

Differences between ajax request get and post

If the request url does not change, get the cache to improve efficiency. The request will be cached in the browser. You can view the user information through history, which is less secure; Post transmission shows changed data and changes access;

Use javascript to print a specified area on a web page

Recently, when printing the course schedule on the web page, I found some information online and finally used the following method to implement the functions I needed. Put the table of the curriculum to be printed into the div label, specify the

Js determines the browser type and version example for running jsp pages

In the past two days, I made a business to determine the browser type and version number, and recorded the relevant js Code:Copy codeThe Code is as follows:Function allinfo (){Var ua = navigator. userAgent;Ua = ua. toLowerCase ();Var match =/(webkit)

Jquery and native js get the selected value example in the select drop-down box

Now there is a drop-down box with id = test. How can I get the selected value?Use javascript native methods and jquery methods respectivelyCopy codeThe Code is as follows: text1 text2 I. Native javascript Method 1: Get the select object: var

Use json as the javascript lib for the same operation as the database

Some time ago, Json data was used in work, and some simple additions, deletions, modifications, and queries can be placed on the client, which can also reduce the pressure on the server. I searched several javascript class libraries that can operate

Sample Code for one-click return of JS

1. Basic preparation:The scrollTop () method returns or sets the vertical position of the scroll bar that matches the element.Scroll top offset refers to the offset of the scroll bar relative to its top.If no parameter is set for this method, the

Jsonp principles and usage

First glance at jsonpJsonp is short for JSON with Padding. It is a solution for cross-origin request resources. Most of the time, we need to obtain server data on the client for operations. Generally, we use ajax + webservice to do this, but if we

Introduction to the use of this variable in JS

Use of this in JavaScriptIn JavaScript, this variable is a keyword that is hard to understand. this is very powerful. A full understanding of this helps us to easily write object-oriented JavaScript programs.The most important thing about this

Js dynamically add events and pass parameter sample code

Copy codeThe Code is as follows:Var tt = function (obj){Return function (){Alert (obj. tagName); // an execution function that can be defined externally;}}Function addfunction (){Var bigobj = document. getElementById ("mytable ");Var rows = bigobj.

Simple implementation of the drag div using Javascript

Copy codeThe Code is as follows:Onmousedown = "mousedown ()" onmouseup = "mouseup ()">

Example of how to use JavaScript instanceof

In JavaScript, the typeof operator is used to judge the type of a variable. When the typeof operator is used, a problem occurs when the reference type storage value is used. No matter what type of object is referenced, it returns "object ". This

Jquery simulates the SELECT drop-down box Value

The SELECT box simulated by jquery is as follows: Copy codeThe Code is as follows: SELECT box simulation by jquery Beijing Shanghai Wuhan Guangzhou

Js implements various menu commands of the browser, such as printing and viewing source files.

Copy codeThe Code is as follows:Input type = "button" onclick = "document.exe cCommand ('open')" value = openInput type = "button" onclick = "document.exe cCommand ('saveas')" value = saveInput type = "button" onclick = "document.exe cCommand

Add a special effect to the hyperlink. Move the mouse to display the prompt information and move it with the mouse.

Copy codeThe Code is as follows: New Document analysis

Js makes all elements of the FORM uneditable sample code

Copy codeThe Code is as follows:// Make the page uneditableFunction disableOcx (){Var form = document. forms [0];For (var I = 0; I Var element = form. elements [I];// Some elements can be numbered. element. name is the custom name of the element.If (

Common js string judgment methods

Js tools-common js methods and common js judgment methodsSUMMARY:Copy codeThe Code is as follows:Function obj $ (id) Get the object according to the idFunction val $ (id) obtains the object Value Based on the id.Function trim (str) deletes spaces on

Common Methods for js page Jump

Copy codeThe Code is as follows: License:Copy codeThe Code is as follows: Link:Copy codeThe Code is as follows: return to the previous step. "> return to the previous step Direct jump:Copy codeThe Code is as follows: Open a new window:Copy codeThe

Differences between submit and button in javaScript

Submit is a special case of a button and also a kind of button. It automatically integrates the submit action.If the form needs to be processed (including input verification) by clicking the submit button and then submitted, you must change the

JS operation Cookie write and read instance code

Write cookie instance!Copy codeThe Code is as follows:Var u = "value = 123 ";Document. cookie = u; Read the cookie instance and read the value!Copy codeThe Code is as follows:Var c_name = "value"; // variable nameIf (document. cookie. length> 0

Total Pages: 5378 1 .... 4035 4036 4037 4038 4039 .... 5378 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.