Javascip-basic--- Notes for details:
1. Special values: NaN, Infinity, isNaN (), isFinite ()
NaN:
Copy codeThe Code is as follows:
Var a = parseInt ('a123 ');
Window. alert (a); // output NaN
Infinity:
Copy codeThe Code is as follows:
Window.
Operators can be understood at three different levels.Level 1 Understanding
When the operands are boolean values, "&" performs the Boolean AND (AND) operations on the two values.
Copy codeThe Code is as follows:X = 0 & y = 0 // returns true only
Similar logic problems are often encountered in the intelligence test questions. A few cups of different capacities will let you pour out much water.
On Android, a game dedicated to playing this question is called Water Logic.
I installed this
No need to look for it. I have tried it many times. ie, Firefox, and Google browsers are irreversible compatibility.The following is my simple solution. To completely solve this problem, you can create a Help page for adding a home page just like
Step 1 introduce the js File Copy codeThe Code is as follows: Step 2. Public the js file dictionary. js Copy codeThe Code is as follows:/*** When there are too many threads, there are too many other threads.* Author: ZhuangZi* Class Name: public
Let's take a look at the error example first. Html codeCopy codeThe Code is as follows: Javascript codeCopy codeThe Code is as follows:Function show (value){Alert (value );}Btn. onclick = show (certid. value ); The above code is incorrectly executed
The page mask pop-up box is the most common case. Today, we use jQuery to implement the page mask pop-up box. The main technologies used include JQuery, css, and html,
The html code is as follows:Copy codeThe Code is as follows: click here to view
Copy codeThe Code is as follows:// Scroll up or down
Var textRoll = function (){
$ ('# Notice p: last'0000.css ({'height': '0px', 'opacity ': '0 '}). insertBefore ('# notice p: first '). animate ({'height': '35px ', 'opacity': '1'}, 'low', function (
RequirementOpen another interface in one interface and use JS to obtain the user input value in another interface.Example:Index.html
Copy codeThe Code is as follows:
Home page
Another interface:
Other.html
Copy codeThe Code is as
Have you ever seen a lot of floating stuff [back to the top] in the bottom right corner of the page, and it didn't appear at the beginning? It appeared as soon as a scroll bar was moved, and it disappeared back to the top.For example:The javascript
We often add scheduled tasks to the website, such as generating static pages and sending emails.
You can set it in Global. asax.
Copy codeThe Code is as follows:
Void Application_Start (object sender, EventArgs e ){// Code that runs when the
Caller
Caller returns a reference to a function that calls the current function.
Note that:
1. This attribute is only useful when a function is executed.2. If a function is called by the top layer in a javascript program, null is
In this example, the image group browsing layer is displayed using the ColorBox plug-in of Jquery. Effect preview URL: http://www.keleyi.com/keleyi/phtml/colorbox/The following is the complete code for this effect. Save the following code to an html
I wrote a js self-made scroll bar. First, let's take a look at the demo (Click here) first.
There are two demos. The black one on the right is a superficial code I wrote at the beginning:
Copy codeThe Code is as follows:Var scrollself = (function (){
1. js code without any prompt to close the windowCopy codeThe Code is as follows: close 2. Disable the custom prompt
Copy codeThe Code is as follows:
3. Close the current page:Copy codeThe Code is as follows: close if it is a button:
Response.
Copy codeThe Code is as follows: aaaaaaaaaaaaa
============================== Various parameters ============
Here, yes/no can also use 1/0; pixel value is a specific value, in pixels.
Parameters
Value Range
Description
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