找到behavior.js
var _thisKaTeX parse error: Can't use function '$' in math mode at position 16: options = this.$̲options(),
…options.computed;
改为
if (!computed) {
return
} else {
var _thisKaTeX parse error: Can't use function '$' in math mode at position 16: options = this.$̲options(),
…options.computed;
}
BUG 记录uniapp引入vant组件 出现的this.$options()不是一个方法报错
最新推荐文章于 2025-04-01 08:30:00 发布
博客内容涉及在JavaScript代码中修复KaTeX解析错误的问题。原始代码尝试在不合适的模式下使用'$'函数,导致错误。修改后的代码增加了条件判断,避免在未定义`computed`时执行可能产生错误的代码块。
4975

被折叠的 条评论
为什么被折叠?



