To escape the cookie function codec used, unescape

<Script> 
Alert (Escape ( 'abc123')) // Escape encoding of non-ASCII characters, such as spaces
alert (escape ( 'ab c' ) + "-" + unescape ( 'ab c')) // unescape decoding
Alert (Escape () + '@ A, BC!' "-" '! @ A, BC' + unescape ())
</ Script>

Guess you like

Origin www.cnblogs.com/java-ty/p/12155248.html