candy-Yao
  function myPlay(){
        var audio = document.getElementById(\'Jaudio\'),
            play = function(){
                audio.play();
                document.removeEventListener("touchstart",play, false);
            };
        audio.play();
        document.addEventListener("WeixinJSBridgeReady", function () {//微信
            play();
        }, false);
        document.addEventListener(\'YixinJSBridgeReady\', function() {//易信
            play();
        }, false);
        document.addEventListener("touchstart",play, false);
    }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2021-12-03
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案