Skip to Content
JavaScript 经典实例:第三版
book

JavaScript 经典实例:第三版

by Adam D. Scott, Matthew MacDonald, Shelley Powers
September 2022
Intermediate to advanced
585 pages
8h 17m
Chinese
China Electric Power Press Ltd.
Content preview from JavaScript 经典实例:第三版
446
16
Web
组件是
Web
标准生态系统中一个非常吸引人的部分,潜力无限。
HTML
模板、
自定义元素和
Shadow DOM
提供了一种创建小型可重用
UI
组件的方式。轻量化组
件的理念在
React
Vue
JavaScript
库中也有体现。
16.11
选择前端框架
16.11.1
问题
你构建的
Web
应用较为复杂,需要使用
JavaScript
框架。选择哪个框架合适呢?
16.11.2
方案
曾经有一段时间,
JavaScript
框架似乎比时装周
T
台的轮换速度还快。值得庆幸的是,
过去几年,框架争战趋于平缓,只剩下几个选择脱颖而出。尽管新开发的速度有所
放缓,但是为自己和项目选择一个最合适的框架依然不是一件简单的事。在评估项
目适合使用什么框架时,笔者建议你问自己下面几个问题。
我需要
JavaScript
框架吗?
不要一上来就诉诸框架。很多时候,简单的网站和应用不使用框架反而更易于
开发和维护,而且用户性能更好。
我要开发的是什么类型的项目?
是个人项目,客户项目,需要长期支持的企业级项目,还是开源项目?征询项
目维护人员的意见,使用最符合他们需求的框架。
社区接受程度如何,项目的寿命有多长?
首选提供长期支持的框架。框架开发还活跃吗?遇到问题和
bug
时有没有大型
社区做后盾?
框架的文档写得怎么样?
确保文档易于理解,完备齐全。
编写
Web
应用
447
框架的开发者生态系统怎么样?
评估工具、插件和元框架。
我熟悉那个框架吗?
我知道那个框架吗,对它熟悉吗,学起来简单吗?
对我的用户有什么影响?
这或许是最重要的问题。判断框架对项目的性能 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JavaScript Patterns

JavaScript Patterns

Stoyan Stefanov
JavaScript

JavaScript

David Flanagan
JavaScript

JavaScript

T. J. Crowder

Publisher Resources

ISBN: 9787519869601