他们分别是 双引号 ( double quote ): ",单引号(forward quote): ',和反单引号(back quote): `。每一种都有不同的 涵义吗?
基于12个网页-相关网页
当然,这三种操作符(单引号、双引号和反撇号)都有合法的用途,但是与英语中的例外一样,记住和掌握这些细微差异很令人头疼。
Certainly, all three operators-the single, double, and back quotation marks-serve a valid purpose, but like exceptions in English, memorizing and mastering the variations can be maddening.
该函数使用一个正则表达式将一个单引号标记更改为带有反斜杠的单引号标记。
That function USES a regular expression to change a single quotation mark into backslashed single quotation mark.
您还可以简单地将整个字符串放到单引号(')中,但是需要在变量中真正的单引号字符前面加上一个反斜线(\ ')。
You can also simply enclose the entire variable value in single quotation marks (') as long as you precede any actual single quotation marks in the variable with a backslash (\ ').
应用推荐