ALL
Understand this in JavaScript
In JavaScript, this is always pointing to the owner of a function or a method.FunctionLet's check out function first.function introduce() { alert("Hello, I am Laruence\r\n");}For this function, what does this point to? In JavaScript, a global function's owner is the current page, i.e, the window object. Because its a method of the window object if we define a global function. Now you should know the this will point to the window object in the above function.If we check the introduce property of window:var name = "I am Laruence";function introduce() { &nb...
3,653 0 JAVASCRIPT THIS EVENT CALL
Data from iPhone 5 event
Apple finally unveils iPhone 5 on an event at the Moscone Center in San Francisco. At the beginning of the event, Apple showed us some data.There will be 380 Apple Retail Stores opened across 13 countriesLast year Apple Retail Store welcomed 83 million customers7 million Mountain Lion upgrades since last monthIt ranked the first place in sales for Macbook Air in United States, it has 27% market share in JulyFrom April to July, 17 million iPads are sold84 million iPads are sold until this July, last year it has 62% market share91% traffic is from iPad among all traffics from tabletIn Fortune 5...