When writing a JS script, you often use some spelling functions, such as calling SetTimeout
Copy Code code as follows:
var msgalert= "Test";
function Testalert (msg)
{
Alert (msg)
}
$ (document). Ready (function () {
$
Specific steps:
Method One: Pop-up window code: onblur= "Self.focus ()":
method Two: Using the ShowModalDialog method to establish a modal dialog box, its parameter description is shown in table 1.5.2.
Open mode Window
method Three: Using
Things to be aware of when using jsp:include tags and Recall the difference between the two (there is no difference in usage for this article)
Jsp:include is to compile the included.jsp file first and then include (compile first, then include)
@
When working on the project, I encountered problems related to the operation of IFRAME. Business is very simple, in fact, in the operation of a form inside the IFRAME, call the parent form of a function. So I wrote two very simple HTM pages to test,
The prototype keyword can add a method or property to a JS original object or to a class that you create.
You can also implement inheritance.
Example:
Copy Code code as follows:
Use of prototype keywords in js
Use of
A very useful jsontostring methodJsontostring Code
Copy Code code as follows:
function Jsontostring (o) {
var arr = [];
var FMT = function (s) {
if (typeof s = = ' object ' && s!= null) return jsontostr (s);
Return/^ (String|number)
The settimeout () method is used to call a function or evaluate an expression after a specified number of milliseconds.
Grammar:
SetTimeout (CODE,MILLISEC)
Parameters:
Code (required): The JavaScript code string to execute after the function to be
Generally we can judge the resolution by the following code
Copy Code code as follows:
JS to determine the browser resolution
Copy Code code as follows:
Description: This JS code can be modified,
Opener.show ();
The parent form needs a top show () method
Parent-side page code:
Copy Code code as follows:
html.html
-->
open new page
Newpage.html code requires an open page
Copy Code code
The following is the gradient of the JS code (said redundant three lines to hide, click "More" to show the rest, click "Less" to gradually hide):
Copy Code code as follows:
function Showaccomplishmenttablerow () {
$
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