Learning JavaScript… Should I skip straight to the good stuff (the frameworks)?

后端 未结 9 1590
小蘑菇
小蘑菇 2020-12-30 15:48

I learnt HTML/CSS a good few years back, then PHP a little later. I\'ve recently become interesting in web development again, just started playing with frameworks like Djang

9条回答
  •  旧巷少年郎
    2020-12-30 16:14

    Yes, jumping straight to framework-based programming instead of DOM is a good idea.

    I started doing JS before any major frameworks like jQuery came along, and was reluctant to switch at first, but when I first started using jQuery, it felt so good to be able to write selectors and stuff and not have to worry about cross-browser compatibility.

    However, there are some areas of JS where frameworks wouldn't be available. One of them is in userscripting, where you have to make your script work on a site you don't control. Another such one is the use of JavaScript in applications such as XUL.

    Overall, I suggest you start with some trivial JS applications, then switch to jQuery instead of going on to the complex topic of DOM.

提交回复
热议问题