When the JavaScript engine executes the code, various errors occur, and the various error-handling statements are shown in table 1:
Statement
Description
Try
Statement to test code block errors
Object.defineproperty ()The Object.defineproperty () method defines a new property directly on an object, or modifies an existing property and returns the object.GrammarObject.defineProperty(obj, prop, descriptor)
1
Parameters
Determine if a member is a function:
if (typeof options.sourcemapname = = = ' function ') {Mapnamegenerator = Options.sourcemapname;}
?
Try/catch
var result;try
These two days in the writing plug-in when inadvertently was Console.log () to the pit.Look at the following example: var obj = {' K1 ': [[+], ' K2 ': [2,3,4]} console.log (obj )// {' K1 ': [0,2,3], ' K2 ': [2,3,4]} Console.log (OBJ.
1. Get and set the value of the Select,checkbox,radiocheck box:12345Radio Box:123Drop-down box:123 Submit select 4,5 check box select 3 Radio Box select 2 Radio Box 2. JQuery Method:check box:12345Radio Box:123Drop-down box:123 Submit select 4,5
One, JS get Element (parent node, child node, sibling node)Press CTRL + C to copy the codePress CTRL + C to copy the codeTwo, jquery gets the element (parent node, child node, sibling node) $ ("#test1"). Parent (); Parent node $ ("#test1").
After one weeks of JavaScript learning, learning the history of JavaScript, and the basic grammar, structure of learning, and previously learned C # language in the logical, grammatical similarities, one is a strong type language, a weak type
The DOM is the abbreviation for Document Object model, which is a documentation-based programming API interface.I. Node and node relationshipsThe DOM organizes HTML documents in a tree-like structure, and each tag or element in an HTML document is a
Original article: http://www.cnblogs.com/suntrain/p/5663794.htmlA dynamic script refers to a script that does not exist at the time of page load, but is dynamically added by modifying the DOM at some point in the future. As with manipulating HTML
for (var i = 0; i ) { setTimeout(function() { console.log (' I: ', I ); );} Console.log (i);Output Result:// output 5I: 5I: 5I: 5I: 5I: 5Remember our formula, sync = = Async = Callback1, the For loop and the console outside the
The browser object model is one of the components of JavaScript, which provides an object that interacts with the browser window independently of the content, and uses the browser object model to interact with the HTML.First, Window object1, the
Typically, we declare a function test) {}, which can be called by Test (). However, if we add () at the end of this function declaration, the parser is incomprehensible.function Test () { console.log (' Hello world! ' );} (); // The parser is not
is a sentence:Constructors can also take parameters when creating objects, because they can be initialized with some properties, that is, when you create objects, you take them with them, and you can, of course, take no arguments.After instantiating
Trend of front-end development tools in 2017 and front-end development tools in 2017
Do you have more than two years of front-end development experience? Will you use advanced CSS auxiliary skills such as Sass and Autoprefixer? Is your JavaScript
Sublime usage and Sublime usage
I,First install the plug-in1. install Package Control to install other plug-ins.
(1), PressCtrl +'Call upConsole(Note: Avoid hotkey conflicts)
(2) paste the following code to the command line and press Enter:
Import
We recommend 20 helpful Web Front-end development tutorials and web Front-end
In normal searches, I encountered a lot of interesting information, applications and documents. I sorted them in the following list. This is a great way to collect useful
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