gpt4 book ai didi

node.js - 替换 Nodejs 中的域?

转载 作者:搜寻专家 更新时间:2023-10-31 23:10:50 27 4
gpt4 key购买 nike

我已经阅读了很多与此相关的主题,但它们现在有点旧了,这就是为什么 Domain 仍然是 Deprecated 直到现在还有人发现任何其他好的 替代 是否使用 ??

我读了这篇文章 alternative-to-domain-in-nodejs在那里我找到了zone.js , 是否有人将其用作域名替代品?因为这个库的最后一次提交是 3 年前,所以我认为它不是一个可靠的解决方案??

最佳答案

Domain尚未弃用,待弃用;在有替代品之前,它不会被适当弃用。来自文档:

This module is pending deprecation. Once a replacement API has been finalized, this module will be fully deprecated. Most end users should not have cause to use this module. Users who absolutely must have the functionality that domains provide may rely on it for the time being but should expect to have to migrate to a different solution in the future.

注意最后一点:

Users who absolutely must have the functionality that domains provide may rely on it for the time being...

因此,就替代而言:观看该页面。据推测,新的 API 将被宣布并更新弃用通知。

关于node.js - 替换 Nodejs 中的域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49494211/

27 4 0
文章推荐: php - 在 Zend Framework 之上处理诸如登录页面之类的内容的最佳方式是什么? (为什么我的实现会爆炸?)
文章推荐: css - 有没有办法使用
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com