1 Uncaught TypeError: Cannot read property 'extend' of undefined 2 at sha224.js:12 3 at sha224.js:60 7 Uncaught TypeError: CryptoJS.SHA224 is not a function 8 at sha_crypto.html:53
在導入sha224.js的時候要注意:在到sha224之前一定要導入core.js和sha256.js的包,所有的包都依賴與core包,core包是核心包,在導入核心包的依賴后,sha224.js也依賴於sha256.js在沒導入sha256.js包之前,會出現上述錯誤。包sha256.js導入就不會出錯了。
1 sha384.js:13 Uncaught TypeError: Cannot read property 'extend' of undefined 2 at sha384.js:13 3 at sha384.js:63 4 sha_crypto.html:56 Uncaught TypeError: CryptoJS.SHA384 is not a function 5 at sha_crypto.html:56
在導入sha384.js的時候要注意:在導入sha384之前一定要導入sha512.js和x64-core.js,應為sha384.js依賴於sha512.js和x64-core.js。而且sha512.js也依賴於x64-core.js,不然會報
“ Uncaught TypeError: Cannot read property 'Word' of undefined ”的錯誤。
hmac.js依賴於core.js和其對應的算法,如要使用HmacMD5對應導入MD5.JS和hmac.js和core.js
