振动API隐藏在Chrome 23中的位置在哪里? [英] Where is the Vibration API hiding in Chrome 23?

查看:149
本文介绍了振动API隐藏在Chrome 23中的位置在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 post ,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中的位置在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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