Make two statements before the introduction:
The following code can be run directly, of course you don’t forget tocitejQuery.
The above is the detailed content of Use a feature of HTML5 - DeviceOrientation to implement the shake function on the mobile phone. For more information, please follow other related articles on the PHP Chinese website!