返回目录
开源项目开发者工具类新手

Svelte:把声明式组件编译成高效 JavaScript 的 Web 开发框架

Svelte 是 sveltejs 组织维护的 MIT 许可开源项目,它把开发者编写的声明式组件编译为高效的 JavaScript,并精准地更新 DOM,从而提供一种构建 Web 应用的新方式。项目由志愿者推动开发,可通过 Open Collective 支持,并提供路线图与贡献指南。

0 次阅读2026/09/15 发布
Svelte:把声明式组件编译成高效 JavaScript 的 Web 开发框架 来源图片

社区作者 · zZz

它解决什么问题

Svelte 是什么?按照仓库首页的说明,Svelte 是一种构建 Web 应用的新方式:它是一个编译器,把你编写的声明式组件转换成高效的 JavaScript,并由这些代码“外科手术式”地精准更新 DOM。

配图 1 为项目仓库展示的 Banner(Svelte - web development for the rest of us)。

更多学习资料可访问 Svelte 官方网站,或加入 Discord 聊天室交流。

关于支持:Svelte 是 MIT 许可的开源项目,其持续开发完全依靠出色的志愿者。若希望支持他们的工作,可以考虑在 Open Collective 上成为 backer。通过 Open Collective 捐赠的资金将用于补偿与 Svelte 开发相关的开支,例如托管费用;如果收到足够的捐款,资金也可能更直接地用于支持 Svelte 的开发。

路线图:仓库提供了 roadmap,可查看当前正在推进的工作。

参与贡献:贡献相关信息请参见 Contributing Guide 以及 svelte 包。

关于站点可用性:如果无法访问任何 .dev 站点,仓库建议参考一条 SuperUser 问答(针对 svelte.dev 是否宕机的疑问)。

许可证:MIT。

— 本文由 AI 根据公开来源辅助整理,命令、版本与许可证请在使用前到原始页面复核。

安装 / 开始使用

What is Svelte? Svelte is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.

Learn more at the Svelte website , or stop by the Discord chatroom . Supporting Svelte Svelte is an MIT-licensed open source project with its ongoing development made possible entirely by fantastic volunteers.

If you'd like to support their efforts, please consider:

Funds donated via Open Collective will be used for compensating expenses related to Svelte's development such as hosting costs. If sufficient donations are received, funds may also be used to support Svelte's development more directly.

Roadmap You may view our roadmap if you'd like to see what we're currently working on. Contributing Please see the Contributing Guide and the svelte package for information on contributing to Svelte. Is svelte.dev down? Probably not, but it's possible.

If you can't seem to access any .dev sites, check out this SuperUser question and answer . License MIT

  • Becoming a backer on Open Collective .

来源教程配图

Svelte - web development for the rest of us
配图 1 · Svelte - web development for the rest of us查看原图

适用场景

构建现代 Web 应用
使用声明式组件组织界面代码
通过编译器把组件转换为高效 JavaScript
以精准的 DOM 更新方式提升前端渲染效率
作为前端框架用于各类网站与交互式界面开发