Replace
函数来替换字符串中的引号。要将双引号替换为单引号,可以使用以下代码:,,``asp,Dim strOriginal, strNew,strOriginal = "这是 ""测试""",strNew = Replace(strOriginal, """", "'"),Response.Write(strNew),
`,,这段代码将输出:,,
`,这是 '测试',
``Replace
函数来替换字符串中的引号。要将双引号替换为单引号,可以使用以下代码:,,``asp,Dim strOriginal, strNew,strOriginal = "这是 ""测试""",strNew = Replace(strOriginal, """", "'"),Response.Write(strNew),
`,,这段代码将输出:,,
`,这是 '测试',
``Powered By Z-BlogPHP 1.7.3