This article will introduce you to js operations related to xml and html operations. For more information, see references.
1. What is xml dom?• The xml dom defines the standard methods for accessing and processing XML documents.• Xml dom is a
Yesterday, we needed to customize the ckeditor editor toolbar and add a plug-in as a requirement. Next I will introduce my recording notes to you, so you can learn it as needed.
1. Download and install ckeditor.
2. Custom toolbar buttons:
You can
SetTimeout (code, millisec) method. If the code of the 1st parameter calls the function name directly, a global or local function call problem exists. Note the following when using the setTimeout (code, millisec) method:
SetTimeout (expression,
To determine whether the present value of a variable is null in js, we can directly undefined, null, \ ', false, 0, [], {} to operate the variable. Below I will show you several instances, for more information, see.
Method 1:
The Code is
I have collected two good js instances to add and delete table row tr instances. For more information, see. I hope this method will help you all.
Example 1
The Code is as follows:
Copy code
js insert delete talbe row A0 B0
After scrolling to the specified position, we will fix the effect on the left, right, or top or bottom. Next I will introduce three fixed display effects codes after scrolling to a certain position, for more information, see.
Fixed display after js
The core principle of redirection is that the user adds a change to the select statement. When the user clicks, The js obtains the value of the selected select statement and jumps, for more information, see.
My most commonly used code, the core code
This article introduces how to use JavaScript closures. For more information, see.
A closure is a way to access and manipulate external variables in a function. In general, we define some variables outside the function for internal use.
In js, parseInt and parseFloat both define or convert the numeric type, but one is an integer that supports the floating point type, that is, they have different precision.
ParseInt () function: converts a string to an integer. The return value
This article will introduce you to the new Code of the TreeView in javascript. If you need to know about it, you can refer to it.
Example 1
The Code is as follows:
Copy code
Function public_GetParentByTagName (element,
This article describes how to assign the content in the kindeditor editor to the textarea method when submitting a form through Ajax. For more information, see.
KindEditor cannot get the textarea text box value in Firefox or other browsers.
First,
In js, window. open () function is the most frequently used window operation. Next we will introduce various operations in js window. If you need to know about it, you can refer to it.
Open a window in HTML
We already know how to open a window in
In js, if we want to encode the url, the commonly used functions include escape, encodeURI, and encodeURIComponent. The corresponding three decoding functions are: unscape, decodeURI, and decodeURIComponent, next we will introduce the conversion
When developing a website in the background, we often need to click exit or timeout to automatically jump out of our current framework page. We can solve this by using many methods, next I will introduce some methods for jumping out of the framework.
There are many methods for clearing data in js. Below I will introduce several methods for clearing data, which can be used to compare with the performance of various array clearing methods. For more information, see.
Clearing the array is a common
The regular expression matches the email address [\ w] + @ [\ w] +. [\ w] {2, 3} \ w to match any word characters including underlines. It is equivalent to \ '[A-Za-z0-9 _] \'. + Match the previous subexpression once or multiple times.
For example, '
This article introduces how to solve js new date () function not supported in IE browser. For more information, see.
Solution 1
The Code is as follows:
Copy code
Function NewDate (str ){If (str = null)Return false;Str = str.
Arrays are an important data storage type in javascript. Next I will summarize how to create, define, delete, and modify an array length instance in js.
Define an array
The Code is as follows:
Copy code
Var a = new Array ("a",
There are many methods to search for characters in js. One is to search for a specific string and return a string, and the other is to find the position of the string. I will share with you their implementation methods.
Searches for a specific
The cross-origin issue has always been a tangled issue. Next I will summarize the principles and Solutions of ajax cross-origin access and JQuery cross-origin. I hope this method will help you.
Cross-origin of JSThe problem is that many programmers
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