How can I insert quotes in a string, anchor tag? I am adding link using tag in my application of node.js. It is not accepting.
How to overcome that? And what is the reason it doesn't accept that?
"<A HREF="index.html">";
您可以在字符串文字中转义引号:
var s = "<A HREF=\"index.html\">";
有两种方法
var s = '<A HREF="index.html">';
字符串文字中的转义引号:
var s = "<A HREF=\"index.html\">";