Infinitescroll不是Yii的功能 [英] Infinitescroll is not a function with Yii
本文介绍了Infinitescroll不是Yii的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Firefox的错误控制台中,我收到这种类型的错误"$(...).infinitescroll不是函数"-与该站点非常相似:
I get this type of error "$(...).infinitescroll is not a function" in error console of Firefox - which is very similar to this site: https://github.com/davialexandre/yiinfinite-scroll/issues/3
推荐答案
更改这些行:
<script type="text/javascript">
$.noConflict();
// Code that uses other library's $ can follow here.
</script>
这些:
<script type="text/javascript">
var $ = jQuery.noConflict(true);
$.noConflict();
// Code that uses other library's $ can follow here.
</script>
它解决了问题.我仍然不知道原因.
It solves the problem. I still can't figure it out the reason.
这篇关于Infinitescroll不是Yii的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文