前几天学了Smarty模板引擎解决了我以前一直困扰的分工问题,但当获取到ajax返回的数据时,还得先用js生成标签,然后在把元素加到标签内,最后再把标签放到HTML中。。。今天发现这几个框架(应该)都可以解决这个问题,但是不知道从哪个开始学?不知道根据项目的复杂程度应该选哪个框架?希望前辈们给点建议,十分感谢!
为情所困2017-05-15 17:11:30
As a Vue fan, of course I recommend Vue.
The reason is:
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)
Lightweight, smaller size, faster loading, of course the front-end likes small and beautiful things
The function is powerful enough and there are solutions for most scenarios
滿天的星座2017-05-15 17:11:30
vue advocates the principle of simplicity and practicality, it is small enough and powerful enough, which is good
怪我咯2017-05-15 17:11:30
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.
给我你的怀抱2017-05-15 17:11:30
Seeing so many recommendations vue
above, 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
我想大声告诉你2017-05-15 17:11:30
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.
迷茫2017-05-15 17:11:30
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.
大家讲道理2017-05-15 17:11:30
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.