In JS, single quotation marks and double quotation marks are the same, usually use a single quotation mark, only when the nested time will be used in both quotation marks, interested friends can understand the following:
The syntax that can be executed: $ ("ul Li a"). Filter (": Contains (' Canon '),: Contains (' Panasonic '),: Contains (' Casio ')"). CSS ("Color", "red");
Error syntax: $ ("ul Li a"). Filter (": Contains (" Canon "),: Contains (" Panasonic "),: Contains (" Casio ")"). CSS ("Color", "red");
According to the document displayed in JS single quotation marks and double quotation marks are the same, but in use is to meet the question, so Baidu gave me the solution, said is usually used when the use of single quotation marks, only when the nested will be used at the same time two kinds of quotation marks. That is, the outside is a single quotation mark when the inside is to use double quotation marks, the outside is double quotation marks when the inside to use single quotation marks, in short, can not use double or single quotation marks;
In case of forgetting,
Referenced from: http://www.jb51.net/article/40163.htm
The difference between single and double quotation marks and the use of jquery note