问题
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
回答1:
Change these lines:
<script type="text/javascript">
$.noConflict();
// Code that uses other library's $ can follow here.
</script>
to these:
<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.
来源:https://stackoverflow.com/questions/13708722/infinitescroll-is-not-a-function-with-yii