Home  >  Article  >  Backend Development  >  javascript - Why doesn't PHP framework use requirejs or seajs?

javascript - Why doesn't PHP framework use requirejs or seajs?

WBOY
WBOYOriginal
2016-08-04 09:19:48897browse

For example, when I look at frameworks such as ThinkPHP, Yii, and CI, they don’t seem to consider using JS modular frameworks. Why is this?

Because recently the company is developing a new project, which is a platform. I originally maintained a framework written by a previous programmer, which used seajs. I feel that using this modularization is good, and the speed seems to have improved. .

Can anyone please give me the answer? Thank you

This question has been closed, reason: Unable to obtain exact result

Reply content:

For example, when I look at frameworks such as ThinkPHP, Yii, and CI, they don’t seem to consider using JS modular frameworks. Why is this?

Because recently the company is developing a new project, which is a platform. I originally maintained a framework written by a previous programmer, which used seajs. I feel that using this modularization is good, and the speed seems to have improved. .

Can anyone please give me the answer? Thank you

The php framework is a back-end framework, and the seajs requirejs you mentioned are both front-end categories, which are completely different. .

php has its own module system. And what is the relationship between php and js modular framework?

By the way, what JS module loader do you use, and what does it have to do with the PHP framework? There is no necessary connection between the two. seajs and requirejs do not depend on the PHP framework.

What does the PHP backend have to do with your front-end framework?

The frameworks used for front-end and back-end are completely different things.

Good news! ! ! Laravel 5.3 integrates vue.js by default! It works out of the box!

javascript - Why doesn't PHP framework use requirejs or seajs?

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