Open fuzhengwei opened 2 years ago
<script> util = { test: function(){ return new Promise( resolve => { new Fingerprint2().get(function(result, components){ let value = result.toUpperCase(); let token = value.substring(value.length - 6).toUpperCase(); resolve(token); }); }) }, test02:async function(){ const result = await util.test(); alert(result); console.log(result); } } util.test02(); console.log('end'); //alert(tmMenu.token()); </script>
util.test02().then(function(t){ console.info(t); })
https://dashboard.fingerprint.com/onboarding