雖然我提到了很多與這個問題有關的答案,但我無法解決我的問題。 我的JS是如下在jquery中得到一個雙重qoutes裏的變量值
var currenteffect= $('#test').val();
//alert(currenteffect);
jQuery('#wowslider-container1').wowSlider({effect:currenteffect, prev:"", next:"", duration: 20*100, delay:20*100, width:960, height:360, autoPlay:true, autoPlayVideo:false, playPause:false, stopOnHover:false, loop:false, bullets:true, caption: true, captionEffect:"fade", controls:true, responsive:1, fullScreen:false, onBeforeStep:0, images:0 });
我需要得到currenteffect價值雙qoutes裏面像
大意是: 「飛」。
誰能幫我
爲什麼,它不應該只要'currenteffect'是字符串'「飛」''的事? – adeneo
否**字段** test **的值發生更改。 – Vimal
當你這樣做時它會提醒什麼? 'alert(currenteffect);' –