我正在学习制作我的第一个 google chrome 扩展程序。有一个网站有一个名为 songPath 的变量。I want to create a new button on the screen that when selected will download the url string inside songPath, instead of just opening it and playing it in the browser.
<div class="player">
<script type="text/javascript">
var songPath = "http://songurl.mp3";
</script>
</div>
任何人都可以向我指出一些执行类似操作的脚本代码或示例。谢谢!