我有我從數據庫字符串url中獲取的變量,但url沒有引號到url,我需要將引號添加到它下面是我的代碼。將雙引號添加到存儲在變量中的字符串
var audioUrl
url is having string like http://xxxxx/xxx/xx-xx-123.m4a without double quotes
audioUrl= (data.url)
i need convert data.url value to "http://xxxxx/xxx/xx-xx-123.m4a"
Circle Jplayer
var audio="http://xxxxx/xxx/xx-xx-123.m4a"
var myOtherOne = new CirclePlayer("#jquery_jplayer_2",
{
m4a: audio,
}
你有什麼調用'的console.log(audioUrl)時'? – Weedoze
http://xxxxx/xxx/xx-xx-123.m4a我的網址沒有引號 –
如果我理解正確,只需連接它:'audioUrl =''''+ data.url +''''' – kosmos