js中的单引号与双引号
问题描述:
可能重复:
何时在JavaScript中使用双引号或单引号
Possible Duplicate:
When to Use Double or Single Quotes in JavaScript
javascript中的单引号和双引号之间是否有区别?
Are there any differences between single and double quotes in javascript?
答
不,大多数时候是正确的答案.但是,如果要编写有效的JSON,则应在对象文字上使用双引号.
No, is the right answer most of the time. However if you want to write valid JSON, then you should use double quotes for object literals.