This commit is contained in:
2026-09-24 16:25:22 +08:00
commit 7428184f01
1198 changed files with 314515 additions and 0 deletions
@@ -0,0 +1,12 @@
/**
* 震动
* @param {number} duriation 震动时间单位ms,ios,微信没有用。
*/
export function vibrator(duriation : number):boolean {
try {
navigator.vibrate(duriation);
} catch (error) {
console.error("WEB震动失败:",error)
}
return true;
}