我有一个问题,我正在使用 stradus jquery 播放器从我的网站播放 soundcloud 内容,它有不同的参数,其中一个是链接
<script type="text/javascript">
$(document).ready(function(){
$stratus({
auto_play: true,
download: false,
links: 'http://soundcloud.com/qotsa',
random: true
});
});
但我不想用php从我的数据库中获取soundoudlinks并将它们加载到链接中我尝试了一切但我总是得到一个语法异常错误,有人知道如何用php制作字符串吗?
<script type="text/javascript">
$(document).ready(function(){
$.stratus({
links: <?php echo(implode("','", $soundcloudsurl)); ?>
});
});
</script>
这是我的代码!