美文网首页
2022-04-01_Uncaught TypeError: $

2022-04-01_Uncaught TypeError: $

作者: 微笑碧落 | 来源:发表于2022-03-31 22:29 被阅读0次

1.告警代码

  • Uncaught TypeError: $.post is not a function

2.处理方法

  • 这个的意思是没有定义post方法。
  • 主要原因是导入的jquery版本不正确。官方下载的jquery-3.6.0.slim.min.js是不包含aja的精简版本。需要下载jquery-3.6.0.min.js版本
  • You can also use the slim build, which excludes the ajax and effects modules:

3.参考文章

1.jquery download
2.关于Jquery错误的解决:Uncaught TypeError: $.post is not a function

相关文章

网友评论

      本文标题:2022-04-01_Uncaught TypeError: $

      本文链接:https://www.haomeiwen.com/subject/rdszjrtx.html