日期:2014-05-20  浏览次数:20327 次

从xml中想页面传递参数,怎么传递!!!急
printstr += " <m type=\"p\" symbol=\"3\" symbolName=\"App\" port=\"1\" stattype=\"1\" color=\"33cc33\" size=\"0.08\" flash=\"0\" t=\" " + STCD + "/" + STNM + " \" url=\"http://localhost:4096/main/jiancezhan/yueri.aspx?stnm="+STNM+"\">";

主要是下面的url中的一些转义符怎么弄啊,我现在传了一个stnm这个参数,要是我在想传递一个参数,怎么传递呢!后面在写呢。我弄不清楚那些转义符的作用!

------解决方案--------------------
STNM = STNM + "&STNM2=2222"
------解决方案--------------------
printstr += " <m type=\"p\" symbol=\"3\" symbolName=\"App\" port=\"1\" stattype=\"1\" color=\"33cc33\" size=\"0.08\" flash=\"0\" t=\" " + STCD + "/" + STNM + " \" url=\"http://localhost:4096/main/jiancezhan/yueri.aspx?stnm="+STNM+"&id=1\">";

------解决方案--------------------
printstr += " <m type=\"p\" symbol=\"3\" symbolName=\"App\" port=\"1\" stattype=\"1\" color=\"33cc33\" size=\"0.08\" flash=\"0\" t=\" " + STCD + "/" + STNM + " \" url=\"http://localhost:4096/main/jiancezhan/yueri.aspx?stnm="+STNM+"&abc=" + ABC + "\">";