IE11 Edge JavaScript 弃用和过时的功能
IE11 Edge JavaScript Deprecated and obsolete features
Mozilla Developer Network
说 "You should use toISOString instead of the deprecated toGMTString method in new code."
然而,
在MSDN JavaScript Version Information查看toGMTString方法,IE11仍然支持该元素。
我正在为 IE11 边缘模式工作,我应该关注 MSDN 还是 Mozilla?
感谢您的帮助。
ECMAScript says toGMTString
is deprecated. toISOString
is not supported in IE8 and earlier. If you need to support IE7/IE8, use the deprecated one. If you want to be compatible with current standards, use the recommended one. "deprecated" does not mean it doesn't exist any more; it means there are reasons not to use it (including, potentially, that it won't exist for much longer). Even better, use both - see which is available and use that, for the best coverage. MDN has a polyfill可以用来弥补旧版浏览器的不足
Mozilla Developer Network 说 "You should use toISOString instead of the deprecated toGMTString method in new code."
然而,
在MSDN JavaScript Version Information查看toGMTString方法,IE11仍然支持该元素。
我正在为 IE11 边缘模式工作,我应该关注 MSDN 还是 Mozilla? 感谢您的帮助。
ECMAScript says toGMTString
is deprecated. toISOString
is not supported in IE8 and earlier. If you need to support IE7/IE8, use the deprecated one. If you want to be compatible with current standards, use the recommended one. "deprecated" does not mean it doesn't exist any more; it means there are reasons not to use it (including, potentially, that it won't exist for much longer). Even better, use both - see which is available and use that, for the best coverage. MDN has a polyfill可以用来弥补旧版浏览器的不足