As you can see, it should be a function that adds styles to some web pages in batches. Function styleHeaderSiblings (){
If (! Document. getElementByTagName) return false;
Var headers = document. getElementByTagName ("h1 ");
For (var I = 0; I
Many of my friends don't know what it means to add a defer to the script. After the program is downloaded, It is parsed and executed.
The document says that the code in defer is not executed immediately and the page will continue to be loaded. When
Today, I sorted out a previously written section of js Code that automatically calculates the next execution date based on the cycle value. I found a bug. I used parseInt to convert the source data string. When the input is similar, parseInt
Part of the self-developed Megami framework ...... Now, I find myself too real ...... File Name ......
The Code is as follows:
// The following is the method used by OOP// This is very cumbersome ...... Because JS is not an OOP language ......//
To use ExtJS, you must first obtain the ExtJS library file. The framework is open-source and can be downloaded directly from the official website.
-1 ExtJs different Version Download selection page
Click the Download ext-2.0.zip hyperlink in to
The actual application code of jQuery for select operations. Easy to learn about jquery
// Change event
The Code is as follows:
$ ("# TestSelect"). change (function () {// event generationJQuery ('option: selected', this). each (function () {//
JQuery1.2.x upgrade 1.3.x considerations
1. Selector
Set the input parameter name to go.
The Code is as follows:
$ ("Input [@ name = go]"). val (); // originally feasible on jQuery 1.2.x'$ ("Input [name = tag]"). val (); // But remove @ After
The Application of extjs needs to introduce extjs style in the page and extjs library file Style File for resources/css/ext-all.css, extjs js library file mainly contains two, adapter/ext/ext-base.js and ext-all.js, the ext-base.js represents the
The layout refers to the distribution and arrangement of neutron elements in container components. All the container components of Ext support local operations. Each container has a corresponding layout that manages the arrangement, combination, and
Sometimes we need to dynamically Add the appropriate js, because sometimes we do not need to load all the js to improve efficiency, however, this method is suitable for scenarios where a single js file is relatively large. If the js file is
Actually, it's not that powerful. However, it's better than chatting, and it's still useful. If anyone can perfect it ...... My friends who are doing web development know that debugging js programs is quite depressing, because the language syntax is
Recently, JavaScript has been used to implement a self-contained clearance game for Windows. At present, only basic functions are implemented. Another drawback is that it can only run normally on IE. It is estimated that the event is not properly
The Border layout is defined by Ext. layout. BorderLayout. The layout name is border. This layout divides the container into five areas in the Southeast and northwest, which are represented by east, south, west, north, and cente respectively. When
The layout implementation code in ext.
The Code is as follows:
Ext. onReady (function (){Ext. QuickTips. init ();// The purpose of the first sentence is to provide the prompt information function for the required components. The main prompt
It seems that some programmers have different sets, just as JavaScript programmers have almost no intersection with compilation principles and Assembly programmers who use CPU commands. The hot issue of "Scope chain" discussed earlier is addressing.
In many cases, you need to pay attention to the different differences between ie and firefox in web design. This article is not good for you.
1. firefox and ie event processing
In ie, event objects are saved and maintained as global variables. All
Yesterday, I used jQuery for ajax submission. I did not succeed. After repeated experiments, I summarized an experience 1. in addition to a method, there must be a jQuery global method to start. For example, if I want to call method a for ajax
Whether the div height is set or not, IE will adapt to the height based on the content. But FIrefox is not so smart. 1. if p wants a minimum height, the minheight attribute of css should be used, but IE does not support it. Considering that most
Use ActiveXObject in JavaScript to fill in and set the Excel format
1. Create
Var XLObj = new ActiveXObject ("Excel. Application ");
Var xlBook = XLObj. Workbooks. Add; // Add a workbook
Var ExcelSheet = xlBook. Worksheets (1); // create a
The corresponding method of the jquery object DOM object cannot be used, and the corresponding method of the DOM object jquery cannot be used. Therefore, you should pay attention to the conversion between Jquery objects and DOM objects in a specific
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