签名哈希hash
How to detect the #hash and get the hash in JavaScript? It’s better if no additional library is needed. That said, jquery is fine if it is needed.
如何在JavaScript中检测#hash并获取哈希? 如果不需要其他库,则更好。 就是说,如果需要,jQuery很好。
You can use this piece of JavaScript code:
您可以使用这段JavaScript代码:
if (window.location.hash) {
// hash found
var hash = window.location.hash.substring(1);
} else {
// No hash
}
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-detect-the-hash-and-get-the-hash-in-javascript/
签名哈希hash