[英]Adobe Javascript: escaping backslashes and quotation marks
I'm trying to populate a field with a simple script:我正在尝试用一个简单的脚本填充一个字段:
var a =""
if (this.getField("Check Box7").value == "Yes")
{
a='""\\\\server\\\share\\\""'
}
which yields this result: "\\\\server\\share\\"
I need this result: \\\\server\\share (so no quotation marks)产生这个结果: "\\\\server\\share\\"
我需要这个结果:\\\\server\\share(所以没有引号)
How can I obtain this result?我怎样才能得到这个结果?
This input will give the required output, as specified in the initial question:此输入将提供所需的输出,如初始问题中所述:
var a =""
if (this.getField("Check Box7").value == "Yes")
{
a="\\\\server\\\share\\";
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.