首页 > 解决方案 > shoco.js 出错(未捕获的 TypeError:$.stackSave 不是函数)

问题描述

我正在使用 shoco (de) 压缩软件。具体来说,我使用的是 JS 版本。我收到此错误:

`Uncaught TypeError: $.stackSave is not a function
    at Object.v.Xa (shoco.js:2969)
    at f (shoco.js:403)
    at shoco.js:413
    at Array.map (<anonymous>)
    at ma (shoco.js:412)
    at shoco.js:424
    at Object.compress (shoco.js:19)
    at setMessage (post.html:87)
    at HTMLButtonElement.onclick (post.html:28)`

仅供参考:这post.html就是我打电话的地方shoco.compress

这是该代码:shoco.compress(document.getElementById("MessageBox").value)

标签: javascripthtml

解决方案


错误是我为我的 JS 使用了两种不同类型的脚本,其中一种设置错误。


推荐阅读