我有这个脚本,我想播放名为“pr_id”的歌曲,我该如何在路径中写入?谢谢!
$(document).ready(function(){
var pr_id = document.getElementById('id')
$("#jquery_jplayer_1").jPlayer({
ready: function (){
$(this).jPlayer("setMedia", {
mp3:"/sounds/[pr_id].mp3"
});
},
swfPath: "js",
supplied: "mp3",
wmode: "window"
});
});