在该字符串中,您可以使用任意多的单引号和双引号(参见清单4)。
Within in the string, you can use as many single and double quotation marks as you like (see Listing 4).
字母之间的空格并不是必须的,但是可以提高可读性,单引号和双引号可以混用。
The Spaces between literals are not required, but help with readability. Any type of quoting can be used.
另一个例子就是在JS p中使用单引号和双引号在WebSphere产品家族编译期间会出错。
Another example is use of single and double quotes in JSP which fails during compilation for WebSphere family of products.
如果该值同时包含单引号和双引号字符,则用于将值括起来的引号字符每次出现时,都必须成对出现。
If the value contains both single-quote and double-quote characters, the quote character used to enclose the value must be doubled each time it occurs within the value.
第一,在创建字符串时,您可以混合使用单引号和双引号,只要字符串在开始位置和结束位置使用同一类型的引号。
First, you can mix single and double quotation marks when creating a string, as long as the string USES the same type of quotation mark at the beginning and end.
例如,对于Apache您可以使用Mod_Security筛选器(比如secfilterselective THE_REQUEST “(\' | \ ”) “)查找字符串中的单引号和双引号并禁止它们。”
For example, with Apache you could use a Mod_Security filter such as SecFilterSelective THE_REQUEST "(\ '| \") "to look for single quotes and double quotes in strings and disallow them."
当然,这三种操作符(单引号、双引号和反撇号)都有合法的用途,但是与英语中的例外一样,记住和掌握这些细微差异很令人头疼。
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.
可以使用单引号或双引号,只要左引号和右引号匹配,常用的还有其它引号的变化形式。
You can use single or double quotes as long as opening and closing tokens match, and there are other variations on quoting that are frequently useful.
使用单引号、双引号和三引号语法创建的字符串仍然是字符串对象。
The strings I've been creating using the single, double, or triple quotation mark syntax are still string objects.
如果该值同时包含分号和双引号字符,则该值可以用单引号括起来。
If the value contains both a semicolon and a double-quote character, the value can be enclosed in single quotes.
如果该值同时包含分号和双引号字符,则该值可以用单引号括起来。
If the value contains both a semicolon and a double-quote character, the value can be enclosed in single quotes.
应用推荐