小红花·文摘
  • 首页
  • 广场
  • 排行榜🏆
  • 直播
  • FAQ
Dify.AI

AI’s potential is enormous, but its impact depends on accountability. Leaders who measure the right things, and scale only what works, are already pulling ahead.

From promise to impact: How companies can measure—and realize—the full value of AI

McKinsey Insights & Publications
McKinsey Insights & Publications · 2026-04-24T00:00:00Z

Philip Reeves, the founding partner of Apis & Heritage Capital Partners, explains how employee ownership can strengthen businesses, create wealth, and foster more equitable ownership transfers.

The promise of employee ownership

McKinsey Insights & Publications
McKinsey Insights & Publications · 2026-02-24T00:00:00Z

本文介绍了两个新的Promise特性:Promise.try()和Promise.withResolvers()。Promise.try()用于统一处理同步和异步错误,但无法捕获setTimeout等异步操作中的错误。Promise.withResolvers()简化了Promise的创建与状态控制,适用于事件监听和超时控制等场景。这些特性提升了JavaScript异步编程的可读性和可维护性。

Promise.try()和Promise.withResolvers()作用速览

张鑫旭-鑫空间-鑫生活
张鑫旭-鑫空间-鑫生活 · 2026-01-22T12:52:22Z

Axios 是一个基于 Promise 的网络请求库,广泛用于前后端分离的 Web 开发。它简化了 HTTP 请求,支持请求和响应拦截器,自动处理认证和错误,提高了代码可维护性和用户体验。

前后端交互的桥梁:Axios

xxxx的个人博客
xxxx的个人博客 · 2026-01-10T14:00:32Z

As CEOs and CMOs ask where AI is moving from hype to real results, frontrunners demonstrate that tighter human–AI collaboration and sharper governance is required.

Agents for growth: Turning AI promise into impact

McKinsey Insights & Publications
McKinsey Insights & Publications · 2025-11-03T00:00:00Z

在Next.js应用中,作者发现一个函数因异步特性导致安全漏洞,原本应返回布尔值却返回Promise,导致所有用户都能访问资源。解决方案是将函数声明为async并使用await。这一事件提醒我们,框架的“魔法”可能引发严重问题。

“完美”代码的致命错误

程序师
程序师 · 2025-10-30T02:23:57Z

Rural communities account for more than 70 percent of US land and generate over $2 trillion in economic output. How can we ensure that scale is matched by opportunity for the people who live there?

The promise and potential of rural America

McKinsey Insights & Publications
McKinsey Insights & Publications · 2025-09-26T00:00:00Z
对Biome的noFloatingPromises lint规则进行压力测试

Vercel与Biome团队合作,强化了noFloatingPromises lint规则,以捕捉未处理的Promise。通过内部竞赛,工程师们展示了多种边缘案例,最终Proxy Promise示例获胜,体现了团队的创造力与合作精神。

对Biome的noFloatingPromises lint规则进行压力测试

Vercel News
Vercel News · 2025-09-04T13:00:00Z

The field of robotics presents opportunities in industries from manufacturing to healthcare to agriculture. Researchers are exploring the ethical and safety implications to set safe guardrails.

Rewriting the robotics playbook: From promise to performance

McKinsey Insights & Publications
McKinsey Insights & Publications · 2025-07-30T00:00:00Z

McKinsey Senior Partner Patrick Finn discusses how being nimble, continuously improving, and taking advantage of new technologies will help healthcare organizations better serve patients.

Patrick Finn on resilience, healthcare’s mission, and AI’s promise

McKinsey Insights & Publications
McKinsey Insights & Publications · 2025-06-25T00:00:00Z
🚀 React 19 彻底改变了游戏规则:告别 useEffect,欢迎 use()!

React 19 引入了 use() 钩子,允许组件直接等待 Promise,简化数据获取逻辑,自动处理加载状态和错误,提升了代码的声明性和可读性。

🚀 React 19 彻底改变了游戏规则:告别 useEffect,欢迎 use()!

DEV Community
DEV Community · 2025-05-21T05:30:22Z
掌握React中的JSX基础知识:从解构到Promise

掌握React中的JSX基础知识非常重要,包括解构、箭头函数、三元运算符、扩展运算符、模块化导入导出和Promise等特性。通过构建求解二次方程的组件,展示如何在JSX中高效使用这些JavaScript特性,以实现简洁的UI逻辑。

掌握React中的JSX基础知识:从解构到Promise

DEV Community
DEV Community · 2025-05-20T21:45:29Z
JavaScript - ES9(ECMAScript 2018)- 第一部分

ES9(ES2018)引入了JavaScript的新特性,包括对象的Rest和Spread属性、异步迭代(for await...of)和Promise.prototype.finally。这些特性简化了对象复制与合并,支持异步可迭代对象的处理,并在Promise完成后执行清理操作。

JavaScript - ES9(ECMAScript 2018)- 第一部分

DEV Community
DEV Community · 2025-05-19T21:38:33Z
异步编程与示例

异步编程是JavaScript的重要概念,允许并发执行任务,提升应用性能和用户体验。主要方式包括回调、Promise和Async/Await。回调函数可能导致“回调地狱”,而Promise和Async/Await则提供更清晰的异步管理,提升代码可读性和维护性。掌握这些概念有助于开发高效的Web应用。

异步编程与示例

DEV Community
DEV Community · 2025-05-19T18:26:51Z
Promise.all(): 失踪的金枪鱼案件

侦探奥利奥接到电话,冰箱里的金枪鱼失踪。他通过爪印分析、气味追踪和监控录像三条线索并行获取,最终确认是加菲猫偷了金枪鱼。

Promise.all(): 失踪的金枪鱼案件

DEV Community
DEV Community · 2025-05-16T22:09:05Z
你应该知道的现代JavaScript特性(2024–2025)

JavaScript不断发展,新增了以下功能:🔹 Array.prototype.toSorted() - 不可变排序 🔹 Object.hasOwn() - 更安全的hasOwnProperty 🔹 findLast() / findLastIndex() - 从末尾搜索 🔹 顶级await - 无需async包装 🔹 Promise.withResolvers() - 更简洁的promise控制 🔹 Record & Tuple(提案) - 不可变数据结构。

你应该知道的现代JavaScript特性(2024–2025)

DEV Community
DEV Community · 2025-05-14T14:12:46Z
理解JavaScript中的异步编程

异步编程是JavaScript的核心,允许在不阻塞主线程的情况下执行耗时操作。通过回调、Promise和Async/Await,开发者可以提升应用性能和用户体验,避免“回调地狱”,使代码更清晰,错误处理更有效。这些技术对现代JavaScript开发至关重要。

理解JavaScript中的异步编程

DEV Community
DEV Community · 2025-05-10T03:38:27Z
掌握现代JavaScript:深入探讨ES6及以上特性

自ES6以来,JavaScript迅速发展,新增了块级作用域、箭头函数、解构赋值、Promise和async/await等特性。这些改进使代码更简洁高效,帮助开发者处理异步操作和数据结构,掌握这些现代概念对开发者至关重要。

掌握现代JavaScript:深入探讨ES6及以上特性

DEV Community
DEV Community · 2025-05-06T11:31:57Z
Angular路由中的异步redirectTo函数

Angular 20.0.0-next.8引入了异步重定向功能,支持重定向函数返回Observable或Promise,适用于动态路由请求。示例中,/pikachu重定向为Observable,/bulbasaur为Promise,重定向行为一致,支持多种返回类型。

Angular路由中的异步redirectTo函数

DEV Community
DEV Community · 2025-05-05T04:38:05Z
Promise静态方法:.any、.all、.allSettled、.race 及 API:.then、.catch、.finally。

Promise静态方法包括.any、.all、.race、.allSettled、.resolve和.reject,分别用于处理多个Promise的不同场景:.any在任一Promise成功时解析,.all在所有Promise成功时解析,.race在第一个Promise完成时解析,.allSettled等待所有Promise完成并返回状态,.resolve和.reject用于创建已解析或已拒绝的Promise。Promise实例方法.then、.catch和.finally用于处理结果和错误。

Promise静态方法:.any、.all、.allSettled、.race 及 API:.then、.catch、.finally。

DEV Community
DEV Community · 2025-05-03T08:11:16Z
  • <<
  • <
  • 1 (current)
  • 2
  • 3
  • >
  • >>
👤 个人中心
在公众号发送验证码完成验证
登录验证
在本设备完成一次验证即可继续使用

完成下面两步后,将自动完成登录并继续当前操作。

1 关注公众号
小红花技术领袖公众号二维码
小红花技术领袖
如果当前 App 无法识别二维码,请在微信搜索并关注该公众号
2 发送验证码
在公众号对话中发送下面 4 位验证码
小红花技术领袖俱乐部
小红花·文摘:汇聚分发优质内容
小红花技术领袖俱乐部
Copyright © 2021-
粤ICP备2022094092号-1
公众号 小红花技术领袖俱乐部公众号二维码
视频号 小红花技术领袖俱乐部视频号二维码