//
        //
        //
        //Javascript
        (function(){
            
            function bin2dec(bin){
                return parseInt(bin,2);
            }
            
            function dec2bin(dec){
                dec = parseInt(dec);
                return dec.toString(2)
            }
            //异或
            function xor(n1, n2){
                var a = [], b = [], c =[], tmp = [];
                a = dec2bin(n1).split("");
                b = dec2bin(n2).split("");
                a.reverse();
                b.reverse();
                var tmp = a.length > b.length ? a : b;
                for(var i in tmp){
                    c.push( a[i] ^ b[i]);
                }
                c.reverse();
                return bin2dec( c.join('') );
            }
            
            var a = xor(2519219136,1373435170);
            console.log(a);
        })()
        
        
        
        

ps:为了更好的体验本站推荐使用chrome、firefox、ie9、ie10

结果: