Each language has a special place. For JavaScript, using var can declare any type of variables. This script language looks very simple, however, to write elegant code, you need to constantly accumulate experience. This article lists seven details that JavaScript Beginners should pay attention. Nbsp; SyntaxHighlighter
Each language has a special place. For
Because most browsers are compatible with it, you can use it in these browsers. Javascript is accepted quite quickly because it is so simple and widely used. Many
Program In the past, JavaScript was often regarded as a "Toy language". However, Ajax entered the market and showed the opposite side. It showed completely different capabilities and functions for JavaScript
All languages have their own special features. For JavaScript, using var can declare any type of variables. This script language looks very simple, however, to write elegant code, you need to constantly accumulate experience. This article lists seven details that JavaScript Beginners should pay attention.
(1) simplified code
------------------------------------
the configuration object, such as css id, class name, and language.3. Return this object as a public attribute so that others can rewrite it.(7) code compatibilityCompatibility is easy for beginners to ignore. Generally, Javascript is tested in a fixed browser, and this browser is probably IE, which is very fatal, this is because IE currently has the worst standard support among several mainstream browsers
In the previous list of programming languages, we introduced the JavaScript language of the impending regularization, as illustrated in the article, that JavaScript is not only the most dynamic scripting language, but also one of the most useful programming languages. Because the vast majority of browsers are compatible with it, you can use it in these browsers. JavaScr
For beginners of programming language friends, often make some more "classic" mistakes. In this series of articles, we'll show you how to get beginner programming friends to avoid some basic bugs and learn how to program and develop code correctly.
In this article, we describe the issues and techniques that need to be noted in the development of 5 JavaScript code.
Redundant DOM operations
Dom operations
JavaScript beginners: 004-JS annotation Writing Method and basic operators, 004jsJS commentsAdding comments in JS is similar to writing C # code. There are two types: // and.Single line commentUse a double slashFor example,
Multi-line comment
Use/* content */
For example,
Basic operators of JS
The basic operators in JavaScript are basically the same as those i
Seven Notes for beginners of JavaScript
Each language has a special place. For JavaScript, using var can declare any type of variables. This script language looks very simple, however, to write elegant code, you need to constantly accumulate experience. This article lists seven details that JavaScript
:
Bindtest (3, 4); //Output 109
Arrow function (= =)Because it takes a lot of space, we will write a blog to introduce it.ConclusionWhen you finish reading this blog, you should be able to understand the objects that are pointed to in most cases this .Let's take a look at the following:
thisis usually determined by the execution environment of the current function;
In global scope, this point to Global Object ( window object);
When using new keyword d
A friend recommended book (http://eloquentjavascript.net/), while not busy recently read the next.
In general, this book is not suitable for beginners of JS, because the examples in it are relatively poor, less academic, and practical applications.
I personally recommend head first JavaScript For JS books. In fact,
CSS attribute comparison tables in JavaScript are essential for beginners of JavaScript.
Comparison between box labels and attributes
CSS syntax (Case Insensitive)
Javascript syntax (case sensitive)
Border
Border
Border-bottom
Bord
Introduction to cookie| Beginners
====================================
The problem is that I want to resolve the automatic access http://www.thehungersite.com. This page can limit your access to it once every day (don't forget to click on this link).So far, the first thing I did at the beginning was to manually select my bookmarks to load this page.
Why not create a simple script for it?Because I wanted it to work the same way under Netscape and IE, I
cookie| Beginners
[Translator Note: Copy the last sample code of this article to a text file, rename the file to homepage.htm format file, run in a browser, this article explains the example code
Brief introduction
====================================
The problem is that I want to resolve the automatic access http://www.thehungersite.com. This page can limit your access to it once every day (don't forget to click on this link).So far, the first thing
This book is not for beginners, as it is said in the preface. Need a certain foundation, and have a certain coding practice, in order to well understand the content of the book.学习一门编程语言,需要熟悉它的语法、形式和结构,这样才会编写合法的、符合语义的、具有意义和行为正确的程序。The purpose of this book is to deepen understanding of how to use JS effectively to build
To engage in web development. I don't know where to begin.The JavaScript language does not know how to step in.The best way is to constantly do Web pages, write code. Constantly look at other people's Code, study other people's Code!Practice JS with code every skill point: listen to more read more ask more write!Learn to System, can also find a super-useful XXX code snippet, meticulous grinding!Keep track of your learning results every day, and don't
String object for getting started with javascript [required for beginners] 1. String object
String object is used to process text (String ).
Ii. Constructor
New String (value) // ConstructorFunction String (value) // Conversion function
Iii. Attributes
Length: the number of characters in the string.
Var str = new String ("abcdefg"); document. write (str. length); // output 7
Iv. Methods
1. chatAt () is
1. Front PageName action= "#" is submitted to this page2. Add Ajax code to the head tag elementIn fact, this AJAX function is the check (str) functionThe function is to pass in a string hello to the background server, the background of the program after processing (assuming that the function of the program is uppercase to lowercase) and then the hello to the function, and then this function is responsible for the ResponseTest Hello inserted into the innerHTML documentThe function of implementing
To engage in web development, do not know where to begin?JavaScript language but don't know how to step!The best way is to constantly do Web pages, write code, constantly look at other people's Code, research other people's Code!Practice JS with code every skill point: listen to more read more ask more write!Learn to System, you can also find a super-practical XXX code snippet, carefully grind!Keep track of your learning results every day, and don't b
To engage in web development, do not know where to begin?JavaScript language but don't know how to step!The best way is to constantly do Web pages, write code, constantly look at other people's Code, research other people's Code!Practice JS with code every skill point: listen to more read more ask more write!Learn to System, you can also find a super-practical XXX code snippet, carefully grind!Keep track of your learning results every day, and don't b
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.