Double quotation marks cannot be nested in double quotes, or a pair of double quotes will end.
Nested double quotation marks in Java need to be escaped:
Public class test{ public static void main (String[] args) { string str1 = "\" name\ "";//String containing double quotes String str2 = "name \" is\ " WGB";//The middle of the string contains double quotes String str3 = "\\name";// You can also use escape characters to include other characters in the string system.out.println ("String One:" + str1); system.out.println ("string two:" + str2); system.out.println ("string Three:"  + STR3); } &nbSP;}
When JavaScript represents a string, you can use double quotation marks or single quotes
When stitching the JS string, double quotation marks must be single quotation marks inside, single quotation marks in the double quotation marks. So loop! But all double quotes are also possible, that is, double quotes inside the double quotes need to escape!
This article is from the "Nothing-skywalker" blog, please be sure to keep this source http://tianxingzhe.blog.51cto.com/3390077/1685677
Problems with nested Java and JavaScript double quotes