我有以下简单的代码:
inputBytes = new TextEncoder().encode(inputString)
hashBytes = await window.crypto.subtle.digest("SHA-256", inputBytes)
console.log((typeof hashBytes) + ": " + JSON.stringify(hashBytes))
Run Code Online (Sandbox Code Playgroud)
为什么结果是空对象?我怎样才能得到真正的结果?
这太奇怪了,非常感谢任何帮助