Have to say, in the JS aspect, oneself really is a genuine rookie. For JS and some JS framework such as jquery JS frame, oneself is just in the stage of simple application, of course, oneself also in continuous learning, hope in the future can share
Pre-explained with var keywordLet's take a look at the results of this code execution:alert (n);//eject Undefinedvar n = 10;The result of the popup is undefined, why not 10? Let's look at the results of the following code execution:alert (n); n = 10;
The following two methods are available for passing parameters (multiple):Method One:" >Method Two:" >----------------The following excerpt from invoking JavaScript through an HREFThere are two ways to invoke JavaScript with the href, as
Code reuse has a well-known principle, which is GOF: Prioritize the use of object combinations rather than class inheritance. In JavaScript, there is no concept of class, so the reuse of code is not limited to class-type inheritance. There are many
/* Parse the query string to return an object containing all parameters */function Getquerystringargs () { //Gets the query string and removes the question mark at the beginning of var qs = (location.search.length > 0? Location.search.substring (
One, Windows object operations(1), open the window with code: window.open ("The first part", "Part II", "Part Three", "Part IV")The first part: write the page address.The second part: Open the way: _blank open a new window self in the original
with "= =", if the two value types are different, they may be equal because the "= =" is converted by default, and the conversion rules are more complex:A , if one is null and one is undefined, then [equal]. B, if one is a string, one is a numeric
First, JavaScript introductionIn the HTML position has three blocks: 1.head inside 2.body inside 3. after, for the sake of insurance generally write after ."1" usage: (1//head inside main function (2), body inside (the body within the most
Reason: JS in accordance with 2 binary to deal with decimal subtraction, on the basis of arg1 arg2 precision extension or inverse extension matching, so the following situation occurs.JavaScript (JS) decimal point subtraction problem, is a JS bug
function GetViewport () { var w = window.innerwidth? window.innerwidth: && Document.documentElement.clientWidth? document.documentElement.clientWidth: document.body.offsetWidth; var h = window.innerheight?
HTML DOM (Document Object model)When a Web page is loaded, the browser creates a Document object model for the page.The HTML DOM model is constructed as a tree of objects.Windows Object Operations
window.open ()-Open a new window
Window.
Mobile device web development preferred framework: zeptojs introduction, webzeptojs
I recently saw an article about a new js framework named zepto. js, which is applicable to mobile devices that already have desktop browsers except the ie series
Let's talk about the javascript code reuse mode and javascript code reuse.
Code reuse has a well-known principle proposed by GoF: Object combination is preferred, rather than class inheritance. In javascript, there is no class concept, so code reuse
7 considerations for making JavaScript better, and javascript considerations
With the improvement of browser performance and the steady adoption of new HTML5 programming interfaces, the volume of JavaScript on Web pages is gradually increasing.
Sprintf, printf, and sprintfprintf are implemented in JavaScript.
Use JavaScript to implement the sprintf/printf functions in most languages.
Http://www.webtoolkit.info/javascript-sprintf.html: relatively complete simulation of sprintf functions.
Js is used to obtain the element external link style. js is used to obtain the element style.
This article describes how to obtain the element external link style by js. Share it with you for your reference. The specific analysis is as follows:
Set
Js method for getting inline styles, js inline styles
This article describes how to obtain inline styles in js. Share it with you for your reference. The specific implementation method is as follows:
Copy codeThe Code is as follows: obtain inline
Detailed explanation of javascript half-query and javascript half-Explanation
Half-lookup Method:
In an ordered table, you can compare the value of the data to be searched with the value of the element in the search range. There are three situations:
Use angular to write a hello world, angularhello
Angularjs follows the MVC pattern and uses a "hello world" convention.
Copy codeThe Code is as follows:{{ greeting. text }}, world
Contents in controllers. js
Copy codeThe Code is as
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