所以document.implementation.hasFeature真的能用么?

console.log(document.implementation.hasFeature('CSS', '11.0'))// 'true' in Chrome V56.0.2924.87  & Safari V10.0.3
阅读 4.2k
3 个回答

这个属性已经被弃用了:

This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible;

链接描述

https://developer.mozilla.org...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题