Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajaxSetup({
- cache: true,
- jsonpCallback:function(){
- var key = this.data;
- var h = 0;
- for (var i=0; i < key.length; i++) {
- h = (h + (key.charCodeAt(i)*i)) % 10000;
- }
- console.log(h,key);
- return '_' + h;
- }
- });
Add Comment
Please, Sign In to add comment