音频播放时出现 Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first. https://goo.gl/xX8pDD
解决:
第一步,在chrome浏览器中输入:chrome://flags/#autoplay-policy
第二步,在Autoplay policy中将Default改为No user gesture is required