Use E4X to implement the shortest XML formatting tool. Unfortunately, IE does not support this standard feature so far...
Please goFirefox or ChromeRun under!
Copy to ClipboardReference: [www.bkjia.com]
Indent XML
Indent
JQuery inserts a character or expression at a specified position in textarea. This example requires you to introduce the jQuery framework into the webpage and the following code should also be introduced:Copy to ClipboardReference: [www.bkjia.com]
When the shutter opens the webpage, a line of Js code can be implemented. This is a kind of webpage transition effect. When the link is opened, wait for the page to load and display it slowly in the form of a shutter, the Code is also very simple.
In Firefox, when the number of innerHTML operations is large, the performance will be greatly reduced. Someone wrote an alternative method to improve the performance of innhtml:Function replaceHtml (el, html ){Var oldEl = typeof el = "string "?
Course 3 of JavaScript 0 basics Making Decisions (I)
(This article is long and smelly, but it is extremely easy to understand. It is only suitable for beginners of JavaScript, especially those with no foundation)
Author blog:
Web applications often use Javascript to process some things on the page. We don't need to talk about form verification. We need to deal with the DOM tree of the page when displaying/hiding or executing a js function based on the user's usage. Take
Today, we will explain the event part of mt. The event description mainly includes three parts: binding, removing, and triggering. Let's take a look at an example.
// Jquery event binding method$ ('A'). click (function ){Alert ('A ');});// Or$ ('A').
The property method can contain parameters:Copy codeThe Code is as follows:Function ClassX (name ){This. name = name;ClassX. prototype. show = function (param ){Alert (this. name + "" + param );};}Var o = new ClassX ("name ");O. show ("param"); //
I. Use iframe to generate history through document. writeCopy codeThe Code is as follows: 0 0 Click the button to update the page DOM (simulate ajax submission). the browser's back button is available. Click Back to return to the previous
I have used three methods:1. Add a hidden button to the page, define the event, and execute $ ("# Hide btnID"). click () of js to execute the background method.2. Use ajaxPro for execution3. Use the url of ajax: page address/(static) method name for
Friends who have used AJAX certainly know that javascript is using UTF-8 International encoding, that is, each Chinese character with 3 bytes to store, but this caused the use of AJAX to send data when garbled.One solution is to use
VII. AJAX Development Now, you can clearly understand what AJAX is, what AJAX can do, and what AJAX is not. If you think AJAX can improve your development work, continue to see how to use AJAX.
7.1 AJAX application technology
Among the seven
XML-based Asynchronous JavaScript, AJAX for short, is the crown of Web innovation (known as Web2.0. Thanks to the various technologies that make up AJAX, Web application interactions such as Flickr, Backpack, and Google have made a qualitative leap
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