我的网站中有一个 jplayer 组件。我想动态更改 mp3 的变量 sky.mp3,即通过 ajax 函数。我怎么能用jquery做到这一点?
var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1",
{
mp3:"sky.mp3"
}, {
cssSelectorAncestor: "#cp_container_1",
swfPath: "js",
supplied: "mp3",
wmode: "window",
keyEnabled: true
});
<div id="cp_container_1">
<a class="cp-play" onClick="return false;" href="#"></a>
</div>