javascript - H5 audio tag How to achieve continuous playback of music across pages (without restarting)
为情所困2017-05-16 13:29:47
0
2
1431
Mobile terminal development How to achieve continuous playback of music across pages (without restarting); the currentTime attribute is not easy to use. . . . . .
能不能跨页面没有摸索过, 但是咱们的页面可以用p模拟, 这样音乐能一直播放
两种方法
第一个页面隐藏,播放音乐,第二个页面跳转,或者用history.pushState,跨页面加载数据
参考 http://stackoverflow.com/ques...