弃用的意思?
当 jQuery、微软或其他一些软件公司说:“此功能已被弃用”时。
例如,当有一个 func1 在版本 1.0 中运行良好,但在版本 2.0 中已弃用,并且还引入了新的 func2 时:
- func1 是否也应该包含在版本 2.0 中以实现向后兼容性?
- func1 在 2.0 版本中应该可以正常工作吗? ( func2 对于版本 2 和 1 来说没问题)
- 是否允许 func2 在版本 2.0 中无法正常工作?
弃用的真正含义是什么?它在所有组织中的含义都相同吗?
对于前。 jQuery 中的 live 方法在 IE 1.7 中不起作用,但在 Chrome 中起作用)。
When jQuery, Microsoft or some other software company says:"this function is deprecated".
For example, when there is a func1 that works fine in version 1.0 and is deprecated in version 2.0 that also introduces a new func2:
- Should func1 also be included in version 2.0 for backwards compatibility?
- Is func1 supposed to work without bugs in version 2.0? ( func2 is fine with versions 2 and 1)
- Is func2 allowed not to work correctly in version 2.0?
What does deprecation really mean and does it mean the same in all organizations?
For ex. the live method in jQuery doesn't work in 1.7 in IE but it does in Chrome).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我认为关于弃用的维基百科文章很好地回答了这个问题:
I think the Wikipedia-article on Deprecation answers this one pretty well:
已弃用意味着他们不建议使用它,并且它没有进行进一步的开发。但它的工作方式不应该与以前的版本有所不同,除非文档明确说明这一点。
是的,否则它不会被称为“已弃用”
除非文档中另有说明,否则它应该与以前相同
>
不,但如果 v1 中存在问题,他们不会修复它们
Deprecated means they don't recommend using it, and that it isn't undergoing further development. But it should not work differently than it did in a previous version unless documentation explicitly states that.
Yes, otherwise it wouldn't be called "deprecated"
Unless stated otherwise in docs, it should be the same as before
No, but if there were problems in v1 they aren't about to fix them
如果这些问题有真正的答案,那么每个软件供应商的答案都会有所不同,并且将由供应商定义。我不知道在这个问题上有任何真正的行业标准。
从历史上看,微软会将某些内容标记为已弃用,并声明将在未来版本中将其删除。不过,在他们真正摆脱它之前,可能会有几个版本。
If there are true answers to those questions, it would be different per software vendor and would be defined by the vendor. I don't know of any true industry standards that are followed with regards to this matter.
Historically with Microsoft, they'll mark something as deprecated and state they'll remove it in a future version. That can be several versions before they actually get rid of it though.
弃用通常意味着“不要使用它”。
已弃用的函数可能有效,也可能无效,但不保证一定有效。
Deprecated in general means "don't use it".
A deprecated function may or may not work, but it is not guaranteed to work.
当用于描述软件 API 时,对
已弃用
含义的最简单回答是:The simplest answer to the meaning of
deprecated
when used to describe software APIs is: