Read about javascript resources for beginners, The latest news, videos, and discussion topics about javascript resources for beginners from alibabacloud.com
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
------------------------------------
Each language has its own special place, for JavaScript, using VAR can declare any type of variable, the script language seems simple, but want to write elegant code is need to accumulate experience. This article makes a list of seven details that JavaScript beginners should pay attention to and share with you.(1) Simplified codeJavaScript defines objects and arr
javascript| Beginners | data | structure
JavaScript, which provides scripting languages, is very similar to C + +, except that it removes easily-generated errors such as pointers in C and provides a powerful class library. For people who already have C + + or C, learning the JavaScript scripting language is a very rela
. scrollTop); If you want to add a class style to an element, the original method may be as follows:Copy codeThe Code is as follows:Function addclass (elm, newclass ){Var c = elm. className;Elm. className = (c = '')? Newclass: c + ''+ newclass; The more elegant method is:Copy codeThe Code is as follows:Function addclass (elm, newclass ){Var classes = elm. className. split ('');Classes. push (newclass );Elm. className = classes. join ('');} (4) event DelegationEvents are a very important part of
The following small series will bring you a study note on JavaScript inheritance. I think it is quite good. Now I will share it with you and give you a reference to JavaScript as an object-oriented language (JS is object-based), which is essential for inheritance, however, because there is no concept of a class, it is not like the real object-oriented programming language that implements inheritance by clas
Every language has its special place, for JavaScript, the use of Var can declare any type of variable, the scripting language seems very simple, but want to write elegant code is need to accumulate experience. This article provides a list of seven details that JavaScript beginners should pay attention to, and share them with you.
(1) Simplify the code
---------
If I can go back to the past, I will tell myself this sentence: beginners JavaScript when ignoring the compatibility of Dom and BOM, first understand some basic knowledge and finally consider compatibility
If I could go back to the past, I would tell myself: "When beginners JavaScript ignores the compatibility of Dom
Article Introduction: JavaScript developers deserve a collection of 7 resources.
Web developers often expect themselves to be professional in every aspect of the web, and JavaScript developers are no exception. JavaScript didn't seem so popular a few years ago, but now Ja
If I could go back to the past, I would tell myself: "When beginners JavaScript ignores the compatibility of Dom and BOM"
the situation when I was a beginner
The biggest headache when I was learning JavaScript was the browser compatibility issue. Under the Firefox good code put to IE can not be displayed, or in IE can be the normal display of the code in Fir
Because the vast majority of browsers are compatible with it, you can use it in these browsers. JavaScript is accepted fairly quickly because it is so simple and has a fairly wide range of uses. Many programmers used to think of JavaScript as a "toy language", but Ajax came into the market with the opposite side, allowing JavaScript to exhibit completely differen
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
your code is properly written, native JavaScript will always execute faster than using code libraries.
The "Each" method of jquery is handy for looping, but it's always a lot quicker to use the original for statement.
Crockford's JSON. Parse
Although JavaScript 2 builds a JSON processor, we need to do it ourselves when writing this article. The creator of Douglas Crockford,json has created a processor that
introductory tutorial for Ajax and is the best pure JS + HTML tutorial I've ever seen.
5. Douglas Crockford ' s JavaScript resources
Douglas Crockford is a well-known figure in the JS field, he has a book "Javascript:the Good Parts". His site is also a good JS resource concentration.
6. Advanced topics in Web development–fall 2011
For those who like classroom teaching, ITunes University has a free
In the present, a lot of programmers are self-taught to complete the entry and promotion. The same is true for JavaScript learning. Many novice JavaScript options are easy and convenient to learn through video tutorials or forums, but some fragmentation of knowledge acquisition is not very good for beginners.In the introductory phase of JavaScript, learning throu
. "; //get the query parameter from URL$query=$_get["Query"];Echo $intro[$query];?>?? Enter http://localhost/programming_language_intro.html in the browser and get the following page:
?? Select "JavaScript" from the drop-down menu and the page looks like this:
?? Select "Python" from the drop-down menu and the page looks like this:
?? The author's learning Experience: someti
This article mainly introduces how to allow concurrent download of JavaScript and other resources. The main purpose of concurrent download of JavaScript is to solve the problem that JS loading will impede page rendering, if you need JavaScript in IE6/7, you can see that JavaScript
This article mainly introduces how to allow concurrent download of JavaScript and other resources. The main purpose of concurrent download of JavaScript is to solve the problem that JS loading will impede page rendering, if you need JavaScript in IE6/7, you can see that JavaScript
Each language has its own special place, for JavaScript, using VAR can declare any type of variable, the script language seems simple, but want to write elegant code is need to accumulate experience. This article makes a list of seven details that JavaScript beginners should pay attention to and share with you.(1) Simplified codeJavaScript defines objects and arr
. You'll find that a lot of code defines objects like this:
Copy Code code as follows:
var car = new Array ();
car[' colour '] = ' red ';
Car[' wheels '] = 4;
car[' hubcaps '] = ' spinning ';
car[' age ' = 4;
This is crazy, don't be confused, "associative array" is just an alias for an object.
Another way to simplify the code is to use the ternary operator, for example:
Copy Code code as follows:
var direction;
if (x Direction = 1;
} else {
D
For beginners of JavaScript, it is recommended that you do not care about browser compatibility.
If I can go back to the past, I will tell myself this sentence: When I was a beginner in JavaScript, I ignored the compatibility between DOM and BOM. I first learned some basic knowledge and finally considered compatibility.
If I can go back to the past, I will tell
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.