Audio.play () cannot be played?

Why does js fail to control audio playback? Broad brain pain

//ajaxHTML
<div class="mmp">
         <audio src="${this.voice}"></audio>
 </div>
//
$(document).on("click",".mmp",function(){
         $(this).children("audio").play(); 
})

/ / the red button on the page class= "mmp"

clipboard.png

Mar.21,2021

  <audio src="${this.voice}"></audio>

there will be a problem if it is caused by double quotation marks. And .children () returns a collection, which is not a good way to directly point audio.

Menu