jQuery放大镜CloudZoom插件分析,反编译

1. 分析,打开CloudZoom.js,发现是十六进制混淆:

console.log('\x46\x75\x6E\x63\x74\x69\x6F\x6E');
console.log('\x72\x65\x76\x65\x72\x73\x65');
console.log('\x6A\x6F\x69\x6E');

2. 反编译:

var zoom_str = ['...'];
(new Function(zoom_str.reverse().join('')))();
console.log(zoom_str.reverse().join(''));

3. Enjoy it…

附上已破解的源文件:cloudzoom