51Testing软件测试论坛

标题: &quot是做什么用的 [打印本页]

作者: jimmyzhou    时间: 2009-5-15 20:07
标题: &quot是做什么用的
经常看见有人Browser("Browser").Page("Page").Sync这么写,但一直不理解&quot是什么,查字典是容错的意思,但是不是很理解用法,谁能帮忙解释下或有相关方面的资料啊,谢谢啦

[ 本帖最后由 walker1020 于 2009-5-17 21:51 编辑 ]
作者: shanxi    时间: 2009-5-16 19:50
&quot就是引号
作者: jimmyzhou    时间: 2009-5-20 16:44
哦,原来如此,那为啥不写成引号,难道是浏览器解析的问题?
作者: fei.ge    时间: 2009-5-22 17:57
我发现QC中引号在数据库里是“"”

[ 本帖最后由 fei.ge 于 2009-5-23 16:11 编辑 ]
作者: shanxi    时间: 2009-5-22 20:23
Some characters are reserved in HTML and XHTML. For example, you cannot use the greater than or less than signs within your text because the browser could mistake them for markup.

HTML and XHTML processors must support the five special characters listed in the table below:

Character Entity Number Entity Name Description
" " " quotation mark
' ' ' (does not work in IE) apostrophe  
& & & ampersand
< < < less-than
> > > greater-than

比如Attributes中规定:
By default, SGML requires that all attribute values be delimited using either double quotation marks (ASCII decimal 34) or single quotation marks (ASCII decimal 39). Single quote marks can be included within the attribute value when the value is delimited by double quote marks, and vice versa. Authors may also use numeric character references to represent double quotes (&#34;) and single quotes (&#39;). For double quotes authors can also use the character entity reference &quot;.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2