![](/img/trans.png)
[英]JavaScript: How can I set src in the JavaScript code based on data attributes in the HTML code?
我想在我的網站上使用其中的 6 個 Before/After 音頻播放器: https://github.com/mattbartley/AB-Audio-Player 但是,音頻文件的來源設置在 JavaScript 代碼中。 所以當我在我的 HTML 中實現這個播放器的多個實例時,它們都播放相 ...