Javascript compiled or not? Check inside

前端 未结 7 976
后悔当初
后悔当初 2021-01-19 16:36

Note that I am not experienced with Javascript. If a javascript code starts like this:

javascript:var _0x89f8=[\"\\x69\\x6E\\x6E\\x65\\x72\\x48\\x54\\x4D\\x4         


        
7条回答
  •  没有蜡笔的小新
    2021-01-19 17:13

    No this javascript is not compiled, the "strange" text you see is encoded text. For example \x69 equals the letter i

    It's a differant notation for normal letters and other characters (@,/ etc). And used to make text harder to read, or when using strange/unusual characters in strings for example.

    The function escape() will go from i to \x69 .As where the function unescape() will go from \x69 back to the letter i.

    The above code example is just an array of encoded strings.

提交回复
热议问题