不赞成使用的意思? [英] Deprecated meaning?

查看:68
本文介绍了不赞成使用的意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用jQuery时,Microsoft或其他软件公司说:不建议使用此功能。

When jQuery, Microsoft or some other software company says:"this function is deprecated".

例如,当有一个func1在1.0版中可以正常使用时并在2.0版中弃用,该版本还引入了新的func2:

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:


  1. 为了向后兼容,func1是否也应包含在2.0版中?

  2. 在版本2.0中func1应该可以正常工作吗? (func2适用于版本2和1)

  3. 是否允许func2在2.0版中无法正常工作?

贬值的真正含义是什么?在所有组织中,它的含义相同吗?

What does deprecation really mean and does it mean the same in all organizations?

例如, jQuery中的live方法在IE中的1.7中不起作用,但在Chrome中有效。)

For ex. the live method in jQuery doesn't work in 1.7 in IE but it does in Chrome).

推荐答案

我认为关于弃用的Wikipedia文章回答得很好:


在编写计算机软件,其标准或文档的过程中,弃用是一种应用于软件功能的状态,指示应避免使用它们,通常是因为已被取代。尽管已弃用的功能仍保留在软件中,但使用它们可能会发出警告消息,建议您采用其他做法,并且过时的功能可能表示将来会删除该功能。不推荐使用功能(而不是立即删除功能)是为了提供向后兼容性,并使使用该功能的程序员有时间使他们的代码符合新标准。

In the process of authoring computer software, its standards or documentation, deprecation is a status applied to software features to indicate that they should be avoided, typically because they have been superseded. Although deprecated features remain in the software, their use may raise warning messages recommending alternative practices, and deprecation may indicate that the feature will be removed in the future. Features are deprecated—rather than immediately removed—in order to provide backward compatibility, and give programmers who have used the feature time to bring their code into compliance with the new standard.

这篇关于不赞成使用的意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆