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 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 Firefox and error.
The responsibilities of front-end development engineers include Cross-browser development. So I do not know the language of JS itself when to spend time learning browser compatibility knowledge, which will make JS learning more difficult. However, code that is not compatible with mainstream browsers cannot be used in actual projects.
The compatibility issues with DOM and BOM have once made my JavaScript learning stagnate. Language comprehension is not enough and code can only run in a particular browser.
My advice.
If you're learning about JavaScript and have the same situation as me, I suggest you: When you're beginner JavaScript, ignoring the compatibility of Dom and BOM, spend more time understanding the language itself (ECMAScript). Write code only in a specific browser (Chrome/firefox/safari), using a mature JavaScript framework (jquery, etc.) for practical work. Rest assured that very few companies will let JS novice with the original JS to do front-end development.
Learn JS early ignore compatibility issues what's the benefit
Reduce the difficulty of learning
Reduce frustration
Spend more time learning ECMAScript
When to learn about JS development knowledge across the browser
And when is the browser compatibility problem left to be resolved?
When you can skillfully use JavaScript frameworks to write reusable code (jquery Plug-ins or front-end controls), or when you are ready to develop a JavaScript framework yourself.
Some other JavaScript beginners suggest
Don't take the JavaScript Authority Guide as an introductory book.
JavaScript Advanced Programming (third edition) should be used as an introductory book
Values and values, scope knowledge must be understood
The debugging tools must understand and use more, and learn to catch errors yourself. (Chrome developer Tool/firebug)
Patience and patience, to each of the knowledge points dug can learn more easily.
These are some of my share hopes that if you can help beginners JavaScript, please point out if you think it is misleading.