0
templateBuilder.Append("function link(){\r\n");
templateBuilder.Append("var a =document.getelementById('abc').value;\r\n"); //assume that the value is cc
templateBuilder.Append("window.location=\"/productlist.aspx?wd=");
templateBuilder.Append("\";\r\n");
templateBuilder.Append("}\r\n");
从上面的代码,任何人都可以设置我的变量“A”加入我的窗口位置? 所以会有>> “/productlist.aspx?wd=cc”如何在模板生成器格式中设置变量的窗口位置
我曾试图templateBuilder.Append( “window.location的= \”/ productlist.aspx WD = “+一+”“);
它不能够通过可变太 – user43698
它会转换为WD =%27 +%20A – user43698
什么是你在“一”? – Sam