Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编译一个使用 css 文件和 javascript 代码的 PHP 应用程序。我选择与 Phalanger 合作,但我找不到任何提及如何编译此类应用程序的教程。那么有没有可能,或者 Phalanger 只是编译 php 文件?
Phalanger 是 php 代码的服务器端编译器,js 是客户端脚本。这意味着 Phalanger 不处理 js,无论是在 php 文件中还是在独立的 js 文件中。php 文件中的 Js 代码就像使用常规 php 一样简单地输出到响应中。
您可以考虑使用其他工具来优化和最小化 js 文件。