Original address: http://my.oschina.net/sevenhdu/blog/332014Catalogue [-]
Event bubbling
Event capture
Dom Event Flow
As browsers evolve into the fourth generation (IE4 and Netscape Communicator 4), the browser team encounters
JavaScript Advanced Programming Reading notes (i)
After working out some Web applications as a hobby, you need to master JavaScript and CSS, HTML5 and other technologies in terms of interactivity, so reading notes are necessary.
Many pages have a "back to top" button underneath, especially one that doesn't have navigation at the bottom of the page, which can help visitors navigate again or revisit the ad (think it's beautiful). With the increasing use of JavaScript in
document which city do you like? Beijing Shanghai Wuhan shenzhen Journey to the Monkey Kingdoms Outlaws of the marsh
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/7E/wKiom1Q-fa7xb66aAAB9JDqbBaw944.jpg "title=" Qq201410
Just beginning to touch JS, want to write classic waterfall stream, search the next online tutorial, found mostly with jquery written, very simple, with it also do not consider compatibility issues (jquery has been considered), I want to use the
JavaScript gets the parameter value:Sets or gets the file name or path specified by the object.alert (window.location.pathname);Sets or gets the entire URL as a string.alert (WINDOW.LOCATION.HREF);Sets or gets the port number associated with the URL.
1, when you query a non-existent array index, the result will be undefined. 2. Traversing an array can be written like this: for (var i = 0;i ) { //dosomething with A[i] }However, this is less efficient because each loop computes the length of
JavaScript is an interpreted language that is precompiled and executed according to the block.The JavaScript interpreter, in the pre-compilation phase, pre-declares the variable and then pre-declares the function. In the execution phase, variables
One, JavaScript memory monitoring ToolBefore discussing memory leaks, let's introduce several JavaScript memory monitoring tools.IE sieve and jsleaksdetector (these two can be downloaded in the following attachment), Firefox leak monitor,chrome
Jquery implements the keyboard listening program code
Example
The Code is as follows:
Copy code
The keydown event is triggered when the keyboard is pressed.The keyup event is triggered when the key is released, that is,
CSS only changes the transparency of the background, does not change the transparency of sub-elements, and changes the css into sub-elements.
In general, we can use the opcity attribute of css to change the transparency of an element, but the
Recommended articles for Web developers and Designers [Series 30]
"Recommended best Web Front-end development articles": 9th (total 30th) met with you. Dream sky blog followFrontend DevelopmentTechnology, sharing all kinds of excellent services that
Deduplication of javascript Arrays
// Remove the Array of numeric elements function sortnum (a, B) {return a-B;} Array. prototype. unique1 = function () {this. sort (sortnum); var newnumbers = [this [0]; for (var I = 0; I
The javascript web page implements a countdown program to calculate the time remaining in the current year.
Function counter () {var date = new Date (); var year = date. getFullYear (); var date2 = new Date (year, 12, 31, 23, 59, 59);/* convert to
Use Angular and Nodejs to set up a chat roomI. Using Node to build a static server is the underlying support of this project. It is used to support access to static resources such as html, css, gif, jpg, png, javascript, json, and plain text. There
Return to the top button for rolling and dynamic display and hiding. Return to the top button
Many websites have the function of returning to the top to judge the dynamic display and hiding of rolling parameters. This function is suitable for
Code of the website flv video playback plug-in based on js and flash
The specific implementation code is as follows:
The Code is as follows:
website flv video playback plug-in (javascript, flash)
JavaScript-new understanding of this pointerFor a long time, the understanding of this is only available and can be used, but does not go deep into its essence. This time, I made a deep understanding through JavaScript The Good Parts. Let's take a
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