html - What does '\ ' mean in javascript? -
i got javascript code contains html code inside strings. strings start '\ '
(backslash, space). sequence do?
this weird because strings aren't highlighted html code after '\ '
in intellij idea v14.1.4. here's screenshot of sample-code.
those backslashes escapes space character follows.
"\ "
same thing " "
.
in javascript string can escape character, doesn't need escaping. spaces doesn't need escaping, backslashes doesn't serve purpose in case.
Comments
Post a Comment