我的问题是让我疯狂。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
。
我该如何实现这一点并输出我声明的可扩展内容?
谢谢。
谢谢你,我用数组方法去了。 –