위챗 브라우저에서 MP3 음악 자동 재생

3361 단어


    <head>
        "utf-8">
        MP3
        "</span><span style="color:#800000;">text/javascript</span><span style="color:#800000;">"</span> src=<span style="color:#800000;">"</span><span style="color:#800000;">http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js</span><span style="color:#800000;">"</span>>
    head>
    
        
"overflow: hidden;">
"</span><span style="color:#800000;">text/javascript</span><span style="color:#800000;">"</span>> <span style="color:#0000ff;">function</span> audioAutoPlay(<span style="color:#0000ff;">id</span><span style="color:#000000;">){ var audio </span>= document.getElementById(<span style="color:#0000ff;">id</span><span style="color:#000000;">); audio.play(); document.addEventListener(</span><span style="color:#800000;">"</span><span style="color:#800000;">WeixinJSBridgeReady</span><span style="color:#800000;">"</span>, <span style="color:#0000ff;">function</span><span style="color:#000000;"> () { audio.play(); }, </span><span style="color:#0000ff;">false</span><span style="color:#000000;">); document.addEventListener(</span><span style="color:#800000;">'</span><span style="color:#800000;">YixinJSBridgeReady</span><span style="color:#800000;">'</span>, <span style="color:#0000ff;">function</span><span style="color:#000000;">() { audio.play(); }, </span><span style="color:#0000ff;">false</span><span style="color:#000000;">); } audioAutoPlay(</span><span style="color:#800000;">'</span><span style="color:#800000;">Jaudio</span><span style="color:#800000;">'</span><span style="color:#000000;">); </span>

 
다음으로 전송:https://www.cnblogs.com/wangchuanyang/p/6288655.html

좋은 웹페이지 즐겨찾기