Home > Article > Web Front-end > The difference between bootstrap and vue
BootStrap:
Features a grid system that is simple to use and easy to get started with. Designed for responsive pages, one set of code can adapt to tablets and PCs.
The shortcoming is that there is a lack of a powerful set of systematic components (it was not available at the time of the investigation, but it is said that it is now). When I actually used it, scope conflicts occurred. If it is not sorted out, A whole set of components is very tiring to develop.
Related recommendations: "Bootstrap Getting Started Tutorial"
Vue:
The characteristic is that it stands on the shoulders of React , many aspects are better:
1. Two-way binding of data, data changes, page changes. When the page changes, so does the data.
2. The rendering of the page is said to be faster than React.
3. Componentization (actually React also has componentization). This is a bit different from the componentization concept of BootStrap. Vue's componentization has solved the problem of scope conflicts. In addition, js testing has become more professional (somewhat similar to junit).
4. Single html development, its development mode is one html, and then constantly replace the js corresponding to the component to switch the display effect. The common js and css in html only need to be downloaded once, which is theoretically faster than the rendering of Iframe pages.
5. Combined with the webpack provided by node.js, it can be packaged and released in a systematic way.
The disadvantage is that it is relatively difficult to get started, and large-scale development requires the accumulation of systematic development. Vue is recommended for component-based development. Element: http://element.eleme.io/#/zh-CN/component/popover
Conclusion:
For long-term considerations, it is recommended to use Vue node. js. For short-term use, BootStrap is a good choice.
The above is the detailed content of The difference between bootstrap and vue. For more information, please follow other related articles on the PHP Chinese website!