前端 - 应该先从angularJS , vue.js , react 这些框架中的哪个开始入手?
PHP中文网
PHP中文网 2017-05-15 17:09:30
0
19
2653

前几天学了Smarty模板引擎解决了我以前一直困扰的分工问题,但当获取到ajax返回的数据时,还得先用js生成标签,然后在把元素加到标签内,最后再把标签放到HTML中。。。今天发现这几个框架(应该)都可以解决这个问题,但是不知道从哪个开始学?不知道根据项目的复杂程度应该选哪个框架?希望前辈们给点建议,十分感谢!

PHP中文网
PHP中文网

认证0级讲师

reply all (19)
为情所困

As a Vue fan, of course I recommend Vue.
The reason is:

  1. It’s easier to get started than the others. You don’t need to get a bunch of build tools to use it directly (of course it’s best to have them)

  2. Lightweight, smaller size, faster loading, of course the front-end likes small and beautiful things

  3. The function is powerful enough and there are solutions for most scenarios

    滿天的星座

    vue advocates the principle of simplicity and practicality, it is small enough and powerful enough, which is good

      刘奇

      I have used all three, react is similar to vue, and angular contains more functions (angular is divided into version 1 and 2, 2 is typescript used by default, 1 is too bloated), it is recommended to learn vue, I am also using it recently vue.

        给我你的怀抱

        Seeing so many recommendationsvueabove, I think the key is to understand what problem each framework solves and what benefits it brings to development and performance. Maybe after a while another framework will come out and be praised again. , it’s better if you can go deeper when studying

          我想大声告诉你

          According to your description, your needs should be relatively simple, just use simple Vue; Vue is simple enough and powerful enough.
          Vuejs templates (not in .vue files) are strings and do not need to be converted; React’s JSX also needs to be converted (or introduce a lib), etc. It's too troublesome for you to get started with React.

          But my personal suggestion is that if you have the opportunity and energy, it’s best to get in touch with or learn React.

            迷茫

            Angular has dependency injection and dirty value checking, but Vue does not have these. It is easy to get started and the documentation is very well written. It is recommended to learn Vue. It is a very good framework.

              阿神

              vue
              Reasons: Simple, reliable and deep

                大家讲道理

                Recommend React + Mobx + Ant Design, which is as easy to learn as vue. Personally, I think the difficulty of the React technology stack is mainly Redux. Beginners or those who find it troublesome can actually bypass it. This is the todomvc project address of Mobx + React.

                  大家讲道理

                  Which ecosystem is perfect and which one should be used first

                    迷茫

                    Of course it’s vue

                      Latest Downloads
                      More>
                      Web Effects
                      Website Source Code
                      Website Materials
                      Front End Template
                      About us Disclaimer Sitemap
                      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!