1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* 震动
|
||||
* @param {number} duriation 震动时间单位ms,ios,微信没有用。
|
||||
*/
|
||||
export function vibrator(duriation : number):boolean {
|
||||
wx.vibrateShort({
|
||||
type:"medium",
|
||||
success() {
|
||||
|
||||
},
|
||||
fail(error) {
|
||||
console.error("微信:震动失败")
|
||||
}
|
||||
})
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user