Skip to main content

Web 框架

Web 框架有助于为现代 Web 应用提供结构。有态度的结构有助于保持开发团队的一致并使代码重用可行。

¥Web frameworks help provide structure to modern web applications. Opinionated structures help keep development teams aligned and make code reuse viable.

SheetJS 库是用纯 JavaScript 编写的,并且可以使用任何框架轻松集成到 Web 应用中。由于每个框架都有自己的生态系统,因此演示重点关注 SheetJS 数据概念如何映射到常见的生态系统模式。

¥SheetJS libraries are written in pure JavaScript and are readily integrated in web applications using any framework. As each framework has its own ecosystem, the demos focus on how SheetJS data concepts map to common ecosystem patterns.

Web 框架

¥Web Frameworks

流行框架的演示包含在单独的页面中:

¥Demos for popular frameworks are included in separate pages:

在 "旧版" 部分 涵盖了包括 KnockoutJS 在内的旧框架。

¥Legacy frameworks including KnockoutJS are covered in the "Legacy" section.

推荐

强烈建议使用框架。虽然现代网站可以在没有框架的情况下构建,但框架生态系统拥有经过考验的解决方案,用于组织数据、页面更新/路由和其他常见问题。

¥It is strongly recommended to use a framework. While modern websites can be built without frameworks, the framework ecosystems have battle-tested solutions for organizing data, page updates / routing, and other common problems.

强烈建议坚持使用熟悉的框架。精通 Angular 的团队应该继续使用 Angular。精通 ReactJS 的团队应该继续使用 ReactJS。对于常见问题,官方或社区都有使用任何框架的解决方案。

¥It is strongly recommended to stick with familiar frameworks. Teams well-versed in Angular should continue using Angular. Teams well-versed in ReactJS should continue using ReactJS. For common problems, there are official or community solutions using any framework.

新建项目可以使用任何框架来构建。流行的框架拥有庞大的生态系统和许多有才华的开发者可供雇用。在撰写本文时,ReactJS 拥有最大的开发者池和模块生态系统。

¥Greenfield projects can be built with any framework. The popular frameworks have large ecosystems and many talented developers for hire. At the time of writing, ReactJS has the largest developer pool and module ecosystem.

打包器和工具

¥Bundlers and Tooling

现代 Web 应用被设计为使用 CommonJS 或 ECMAScript 模块进行编织。"bundler" 将结合应用代码和模块来生成可以部署的最终网站。

¥Modern web applications are designed to be woven using CommonJS or ECMAScript modules. A "bundler" will combine application code and modules to produce a final website that can be deployed.

"打包器" 小节 涵盖了许多常见的打包器和构建工具。

¥The "Bundler" subsection covers a number of common bundlers and build tools.

以下演示位于单独的页面中:

¥The following demos are in separate pages: