Method 1:
Use a browser internal converter to implement conversion. The essentials are to dynamically create a container label element, such as Div, and set the string to be converted to the innertext of this element (ie supported) | textcontent
1 2 3 4
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
the second method is the same as the first method. copy Code the code is as follows: // preview function var
There are two types of situations:
1. Access between subdomains based on the same parent domain. For details, see taobao.com, jipiao.taobao.com, and promotion.taobao.com. They have the same parent domain taobao.com.
2. Access between pages based on
To put it simply, you can convert a string into an expression and return the execution result.
Eval Method
See
String object
Applied to: Global Objects
Requirements
Version 1
Check JScript
Code And execute.
Eval (codestring)
The required codestring
CopyCodeThe Code is as follows: var getmonthweek = function (a, B, c ){
/*
A = d = current date
B = 6-W = there are still several days to finish the current week (not today)
Divide the sum of A + B by 7, which is the week of the current month.
*
Assume that there is a div on the home page, and an IFRAME is placed in it.
CopyCode The Code is as follows:
The three menu links are loaded on the IFRAME.
The three subpages load window. onload on their own pages and executeCopy codeThe
To select these items, you must first find the rows to be selected, as shown below:
VaR table = Document. getelementbyid (" ");
VaR rowindex = 0;
For (VAR I = 1; I {
VaR input = table. Rows [I]. cells [0]. getelementsbytagname ("input") [0].
First, let's talk about the style sheet attributes.
1. inline style is set in the element style attribute, with the highest level
2. The page style table definition is defined in the page , followed by the level
3. External link style table
1. sorttable description
Sorttable
Version 2
7th 10000l 2007
Stuart LANGRIDGE, http://www.kryogenix.org/code/browser/sorttable/
Instructions:Download this fileAdd to your HTMLAdd class = "sortable" to any table you 'd like to make sortableClick
1. Use window. onerror to specify the error handling function.
When an error occurs, onerror is called back. When multiple script errors exist in a javascript block, the script after the first error is triggered (callback) is automatically dropped
CopyCodeThe Code is as follows: function flower ()
{
This. Name = "Rose ";
This. color = "red ";
}
// Flower () as the constructor
VaR OBJ = new flower ();
// Output True, flower as class reference
Alert (OBJ instanceof flower );
The
Today, I checked Sina's Js
Code It is good to find a back-cast advertising code from both the perspective of learning and use, but it will be blocked if it finds a problem.
The following is the specific JS Code.
Copy code The Code is as follows :/*
There is no way. Practice has proved that the best solution is to write an OCX control by yourself, so you only need to register the OCX control. At the same time, the OCX control is highly scalable, that is to say, to introduce the functions of vc \
, Dojo. js write Class Method
The latest version of dojo is 1.3.1. Remember that it was 0.4 in. The number of documents increases gradually, and the number of dojo-based documents increases gradually. Dojo also released the core version, which is
+ Click to display carefree, my idol is a fruit. no worries. My idol is a fruit. + Click here to show that you don't have to worry about it, fruit I worship you no worries about love, fruit I worship you + Click to show no worries about love,
He supports the following DOM2 methods:
AppendChild, cloneNode, hasAttributes, hasChildNodes, insertBefore, normalize, removeChild, replaceChild.
The following DOM2 features are also supported:
Attributes, childNodes, firstChild, lastChild,
1. SproutCore
SproutCoreApple's explanation of SproutCore is "open-source, platform-independent, Cocoa-like JavaScript framework, used to create Web applications with a desktop application appearance and operational sense ."
SproutCore
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.