问题描述
根据,Webkit前缀已经从Vibration API实现中删除,因为它已经达到候选推荐标准。 a href =https://developer.mozilla.org/en-US/docs/DOM/window.navigator.vibrate =nofollow> Firefox ,可以在navigator.vibrate找到振动API。 (根据),而不是Chrome 23中的 - 与或没有webkit前缀。我试过在chrome:// flags中启用实验性javascript ,但没有任何效果。
尽管在devtools中进行了大量搜索,网,我仍然无法找到这个API。它在哪里隐藏?
博客只是表明API已经在WebKit中前缀过。我们没有在Chrome for Desktop中使用它,我们没有在版本25的Android版Chrome浏览器中使用它。
According to a post on Peter Beverloo's blog, "The webkit prefix has been dropped from the Vibration API implementation as it reached Candidate Recommendation."
In Firefox, the Vibration API can be found at navigator.vibrate (per the spec), not so in Chrome 23 - with or without the webkit prefix. I've tried enabling experimental javascript in chrome://flags but to no effect.
Despite playing around in devtools and plenty of searching on the net, I'm still unable to locate this API. Where is it hiding?
The blog was just indicating that the API has been unprefixed in WebKit. We don't have it in Chrome for Desktop and we don't have it in Chrome for Android as of version 25
这篇关于振动API隐藏在Chrome 23中的位置在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!