我的問題是讓我瘋狂。Jquery變量輸出
我宣佈索姆變量這樣
var tip01 = "This is my first tip";
var tip02 = "This is my second tip";
根據我的查詢字符串我想寫出我的建議值。
我的查詢字符串:前myQSvalue = 01
var myQSvalue = getQueryString('myQSvalue');
var myTip = 'tip' + myQSvalue;
$("#output").html(myTip);
但輸出是:tip01
insted的的This is my first tip
。
我該如何實現這一點並輸出我聲明的可擴展內容?
謝謝。
謝謝你,我用數組方法去了。 –