## js播放声音 ```javascript var audio = document.createElement('audio'); var source = document.createElement('source'); source.type = "audio/mp3"; source.type = "audio/mp3"; source.src = '/static/media/ding.mp3'; source.autoplay = "autoplay"; source.controls = "controls"; audio.appendChild(source); audio.play(); ```