ASP | HTML] single quotes and double quotes
Errors in javascript:
① Error:
Quote: <a href = "javascript: window. Open (" http://51js.com ")"> carefree script </a>
② Correct:
Quote: <a href = "javascript: window. Open ('HTTP: // 51js.com ')"> carefree script </a>
Note: You can see that in this example, the attribute is set with double quotation marks, and the double quotation marks contained in ① are naturally wrong! Change the incorrect double quotation marks to single quotation marks in view ②! Now.
Errors in ASP (VBScript:
① Error:
Quote: <%
Response. Write ("<a href =" javascript: window. Open ("http://51js.com") "> carefree script </a> ")
%>
② Correct:
Quote: <%
Response. Write ("<a href =" "javascript: window. Open ('HTTP: // 51js.com ')" "> carefree script </a> ")
%>
Or
<%
Response. Write ("<a href = 'javascript: window. Open (" http://51js.com "") '> carefree script </a> ")
%>
Note: According to my experience, the double quotation marks in ASP (VBScript) must be replaced by two double quotation marks or single quotation marks. Otherwise, the program will not run normally.
Problems encountered in your program and solutions:
Classstr = classstr & "<tr> <TD colspan = '4' style = 'font-size: 12px; font-weight: 800 '>