//2.1版本
/*Fingerprint2.get(function (e) {
a = Fingerprint2.x64hash128(e.map(function (e) {
return e.value
}).join(), 31)
document.getElementById('div1').innerText = a
console.log(a)
})*/
//1.5.1
new Fingerprint2().get(function (result, components) {
document.getElementById('div1').innerText = result;
});
<div id="div1"></div>
body{
height: 100%;
width: 100%;
}
#div1{
height: 100%;
width: 90%;
margin: 50px auto;
}