Home  >  Article  >  Web Front-end  >  Introduction to js special character escaping_javascript skills

Introduction to js special character escaping_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:17:371534browse

dot escaping: . ==> \u002E

Escape of dollar sign: $ ==> \u0024

Escape of exponentiation symbol: ^ ==> \u005E

Escape of left brace: { ==> \u007B

Escape of left square bracket: [ ==> \u005B

Escape of left parenthesis: ( ==> \u0028

Escape of vertical bar: | ==> \u007C

Right bracket escape: ] ==> \u005D

Escape of right parenthesis: ) ==> \u0029

Escape of asterisk: * ==> \u002A

Escape of plus sign: ==> \u002B

Escape of question mark: ? ==> \u003F

Backslash escaping: ==> \u005C

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