Understanding JavaScript Advanced Programming Learning

Source: Internet
Author: User

JavaScript is a scripting language designed for Web page interaction and consists of the following three different parts

    • ECMAScript, providing core language features

    • Document Object Model (DOM):D Ocument object models that provide an interface for accessing and manipulating Web page content

    • Browser (BOM): Browser Object Model, which provides methods and interfaces for interacting with the browser

<script type= "Text/javascript" defer= "defer" charset= "Utf-8" ></script>
    • CharSet tell the browser the encoding format

    • Defer tells the browser to download it now but delays execution. Delay until the browser encounters the

The JavaScript code is interpreted from top to bottom, as follows

<script type= "Text/javascript" >function Sayhell () {alert ("</script>");} </script>

When the browser encounters a string </script> thinks it is the end tag, remember not to appear anywhere in the code. However, you can solve this problem by escaping characters, as follows

<script type= "Text/javascript" >function Sayhell () {alert ("<\/script>");} </script>

ECMAScript keywords

Breakdoinstanceoftypeofcase elsenewvarcatchfinallyreutrnvoidcontinueforswitchwhiledebugger* Functionthiswithdefaultif Throwdeletein Try

ECMAScript reserved words, although do not know what to do, but feel pretty tall on the

Abstractenumintshortbooleanexportinterfacestaticbyteexportinterfacesupercharfinalnativesynchronizedclassfloatpackagethrow Sconstgotoprivatetransientdebuggerimplementsprotectedvolatiledoubleimportpublic


This article is from the "严萧" blog, make sure to keep this source http://yplus.blog.51cto.com/7656781/1851206

Understanding JavaScript Advanced Programming Learning

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.