Only then did I understand that it turns out that at this time, it still belongs to HTML jurisdiction, so the escape characters should be HTML's, not JavaScript's. The method of using two double quotes is vbScript, "This method is used by javascript, and HTML uses ". In addition, you can also use: ", '. Various expression methods are listed below:
< ;input value="Two single quotes - error" type="button" onclick="alert(''OK'');" />
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn