要实现在的语句为:s1.addVariable("file","&Pic&")
我刚才用response.write "s1.addVariable(""file"",'"&Pic&"');"
结果输入的语句为:s1.addVariable("file",'&Pic&')请问要怎么写才能输出s1.addVariable("file","&Pic&")?

解决方案 »

  1.   

    你的&Pic是直接输出,还是pic是服务端变量?
     
      

  2.   

    response.write "s1.addVariable(""file"","""&Pic&""");"
      

  3.   

    不行啊~
    response.write "s1.addVariable(""file"","""&Pic&""");" ---->s1.addVariable("file","");
      

  4.   

    要实现在的语句为:s1.addVariable("file","&Pic&") 
    我刚才用response.write "s1.addVariable(""file"",'"&Pic&"');" 
    结果输入的语句为:s1.addVariable("file",'&Pic&')
    请问要怎么写才能输出s1.addVariable("file","&Pic&")?先定义变量str=s1.addVariable("file",'&Pic&');在执行替换就可以了:str=str.replace(',");这样就可以,把'替换成"就可以了。
     
      

  5.   

    你不是说pic是服务器端变量吗?既然是服务端,怎么在输出后还有呢