Play sound with javascript

前端 未结 3 1172
闹比i
闹比i 2021-01-13 21:43

I want to create a table with string and button(that play sound) in each row and every button play a different sound.

i want to do it with this method :



        
3条回答
  •  温柔的废话
    2021-01-13 22:13

    NOTE: This is not HTML5. You could get the source with thissound.src. Then you can add it to the DOM in whichever location you would like to put it at.

提交回复
热议问题