StackOverflow 文件 JavaScript 教程 振動 API 檢查支援 檢查支援 Created: November-22, 2018 檢查瀏覽器是否支援振動 if ('vibrate' in window.navigator) // browser has support for vibrations else // no support 振動模式單振動