myaudio.duration为null的解决办法

放在 myaudio.addEventListener("canplay",function(){});中,就可以获取到值。

原文地址:https://www.cnblogs.com/angis/p/5190782.html