如何检查特定的 HTML5 API
在浏览器中是否可用?
例如,在 JavaScript
if(!('webkitSpeechRecognition' in window)) {
Dart 中的等价物是什么?
最佳答案
import 'dart:html';
...
SpeechRecognition.supported
另见 https://github.com/dart-lang/bleeding_edge/blob/master/dart/tests/html/speechrecognition_test.dart
关于html - 使用 Dart 检查 HTML5 API 在浏览器中是否可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22581659/