Home  >  Article  >  PHP Framework  >  Advantages and disadvantages of vue and thinkphp

Advantages and disadvantages of vue and thinkphp

(*-*)浩
(*-*)浩Original
2019-09-09 11:23:216393browse

Advantages and disadvantages of vue and thinkphp

Vue is a progressive framework for building user interfaces. Different from other large frameworks, Vue is designed to be applied layer by layer from the bottom up. Vue's core library only focuses on the view layer, which is not only easy to get started, but also easy to integrate with third-party libraries or existing projects. On the other hand, when combined with a modern tool chain and various supporting libraries, Vue is fully capable of providing drivers for complex single-page applications.

Advantages:

1. Simple and easy to use

2. Flexible and progressive

3. Lightweight and efficient (recommended to learn : PHP programming from entry to proficiency)

(3-1), 20KB size after pressing

(3-2), virtual DOM

4, MVVM

(4-1), data-driven view

(4-2), the conventional operation methods are DOM

(4-3), Ordinary javascript data

5. Componentization

Advantages of componentization

Improve development efficiency

Easy to reuse

Simplify debugging steps

Improve the maintainability of the entire project

Facilitate collaborative development

Disadvantages:

1. Vue has no shortage of introductory tutorials. However, there is a lack of high-level tutorials and documentation. The same goes for books.

2. VUE does not support IE8

3. The ecological environment is not as good as angular and react

4. The community is not big

If you have any questions, you can read the source code . Functionality is limited to the view layer, and features such as Ajax require additional libraries. The requirements for developers are high. For development, webpack is required, otherwise it will be difficult to use. It is best to use es6. However, Vue-cli has almost completely isolated webpakc

ThinkPHP (FCS) is a lightweight medium-sized framework that is a Chinese PHP development framework transplanted from Java's Struts structure. ThinkPHP's purpose is to simplify development, improve efficiency, and be easy to expand. Its support for databases already includes support for MySQL, MSSQL, Sqlite, PgSQL, Oracle, and PDO. ThinkPHP has rich documentation and examples, and the framework has strong compatibility, but its functions are limited, so it is more suitable for the development of small and medium-sized projects.

Advantages:

1. Easy to get started with rich Chinese documentation;

2. The framework has strong compatibility, PHP4 Fully compatible with PHP5, fully supports UTF8, etc.

3. Suitable for the development of small and medium-sized projects.

Disadvantages:

1. The support for Ajax is not very good;

2. The directory structure is messy and takes time to sort out;

3. It is easy to get started, but difficult to learn in depth.

The above is the detailed content of Advantages and disadvantages of vue and thinkphp. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn