Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は、ドキュメントの準備ができたときに、サウンドを 1 回だけ再生する、素晴らしくシンプルな方法が必要でした。
オンラインで手がかりを検索したところ、多くの情報が見つかりましたが、それほど説明的なものはありませんでした.
ありがとう ;)
このマークアップを使用
<audio id="sound_tag" src="your_audio_file.wav" preload="auto"></audio> <script type="text/javascript"> $(document).ready(function(){ $('#sound_tag')[0].play(); }); </script>