The beginning of JavaScript love

Source: Internet
Author: User

Always wanted to write something about JavaScript, but because there has been no good experience, write out there is no value! Today's impulse to record my knowledge of JavaScript!

The language of JavaScript is not important, some people say it is a good language, some people say it is garbage language! Standing in my angle to think, the more to the back of the language is really a lot of pits! But the key question is not here,

The key problem is that as the default first language of the browser, the pit is no longer important, JavaScript is really a very important language!

If you touch JavaScript for the first time, then we think JavaScript is just a little bit of animating the page.

For example:

Alert ("Hello");

Yes, the Web page pops up a message box!

If you learn more, you'll find JavaScript can also manipulate page elements, which are DOM operations, such as:

document.getElementById ("Mybtn"). Onclick=function () {displaydate ()};

This DOM operation, I personally feel that use in the Web Automation operation is very good indeed!

If you understand the basic syntax of JavaScript, you understand the DOM operation and you're actually getting started!

But the problem comes, JavaScript light is not enough to get started, we have to go back to understand its true charm, or you will mistakenly think JavaScript is really too simple, it is wrong!

Now we really grasp the essence of JavaScript, Object!

var jiujiu={};jiujiu.name= "Niubi"; Console.log (Jiujiu.name);

This is a basic standard object usage! You should guess what results will be debug output!

It's an essay, and I don't want to be lengthy! Write it here today, and then take a little bit of detail on the details of JavaScript in the back!

The beginning of JavaScript love

Related Article

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.