javascript - 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)
解决方案
错误是我为我的 JS 使用了两种不同类型的脚本,其中一种设置错误。
推荐阅读
- python - 如何使用 Sphinx 和 reStructuredText 从 Python 打印行打印“撇号”?
- python-3.x - ModuleNotFoundError:没有名为“sklearn.cluster._k_means”的模块 scikit-learn 0.22 vs 0.22.1
- django - 如何使用 django orm 获取简单的数据透视表?
- r - 如何从 R Highcharter 中删除“值”
- laravel - 在 Laravel App 中按模型分离 GraphQL 模式
- javascript - 样式覆盖父组件到子组件
- apache-spark - 将 BERT 模型作为 pickle 文件保存在磁盘上
- arrays - 使用 map 运算符将数组转换为新类的属性
- python - 列出名称仍然正确的是问题
- ruby-on-rails - Rails 6:模型能否意识到对其 has_many 关联之一所做的更改?