Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Laravel 5无限滚动div_Javascript_Jquery_Laravel_Laravel 5 - Fatal编程技术网

Javascript Laravel 5无限滚动div

Javascript Laravel 5无限滚动div,javascript,jquery,laravel,laravel-5,Javascript,Jquery,Laravel,Laravel 5,我是新来的, 有人能帮我修复这个无限卷轴的div不工作在拉威尔5? 我已经访问了很多链接来解决这个问题,但没有任何帮助 这是我的javascript $(document).ready(function() { var loading_options = { finishedMsg: "<div class='end-msg'>Congratulations! You've reached the end of the internet</div>

我是新来的, 有人能帮我修复这个无限卷轴的div不工作在拉威尔5? 我已经访问了很多链接来解决这个问题,但没有任何帮助

这是我的javascript

$(document).ready(function() {
    var loading_options = {
        finishedMsg: "<div class='end-msg'>Congratulations! You've reached the end of the internet</div>",
        msgText: "<div class='center'>Loading news items...</div>",
        img: "/js/ajax-loader.gif"
    };

    $('#content').infinitescroll({
        loading: loading_options,
        navSelector: "ul.pagination",
        nextSelector: "ul.navigation a:first",
        itemSelector: "#content div.cat-item"
    });
}); 
$(文档).ready(函数(){
变量加载_选项={
finishedMsg:“祝贺你!你已经到达了互联网的尽头”,
msgText:“正在加载新闻项…”,
img:“/js/ajax loader.gif”
};
$('#content')。无限滚动({
加载:加载选项,
导航选择器:“ul.分页”,
下一个选择器:“ul.navigation a:first”,
项目选择器:“#内容div.cat-item”
});
}); 
这是在我的刀片上

<div class="col-sm-8 single-left" id="content">
    @foreach ($all as $image) 
    <div class="song" >
        <div class="song-info">
            <h3>{{$image->judul}}</h3>  
        </div>
        <div class="singleimage" >
            <img src="/file/meme/{{ $image->gambar }}" alt="" />
        </div>
    </div>

    <div class="song-grid-right">
        <div class="share">
            <h5><div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button" data-size="large" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/wahyu.p.putra.10"></a></div></h5>
            <ul>
                <li><a href="/Meme/{{ $image->url }}/{{ $image->url2 }}" class="icon like">{{$image->likes}} Likes</a></li>
                <li><a href="#" id="commenttombol" class="icon comment-icon">Comments</a></li>
                <li class="view">{{$image->view}}</li>
            </ul>
        </div>
    </div>
    @endforeach 
</div>

<div id="pagination">
    {!! $all->render()!!}
</div>

@foreach($all as$image)
{{$image->judul}
gambar}“alt=”“/>
  • {{$image->view}
@endforeach {!!$all->render()!!}
谢谢:请保留此代码

<div id="pagination">
   {!! $all->render()!!}
</div>

{!!$all->render()!!}
在这个房间里

<div class="col-sm-8 single-left" id="content">

希望它能起作用。如果不行,请告诉我