Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/364.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/Slick:UncaughtTypeError:$(…)。Slick不是函数_Javascript_Html_Laravel_Slick.js - Fatal编程技术网

Javascript Laravel/Slick:UncaughtTypeError:$(…)。Slick不是函数

Javascript Laravel/Slick:UncaughtTypeError:$(…)。Slick不是函数,javascript,html,laravel,slick.js,Javascript,Html,Laravel,Slick.js,我正试图在我的Laravel网站上用Slick发布一些推荐信。我按照以下说明制作了推荐信: 如前所述添加所有脚本时,我总是得到错误“UncaughtTypeError:$(…)。slick不是一个函数” 我已经尝试了几种在这里找到的解决方案,但没有一种对我有效 我的代码: <section class="quotes"> <div class="bubble"> <blockquote>I ref

我正试图在我的Laravel网站上用Slick发布一些推荐信。我按照以下说明制作了推荐信:

如前所述添加所有脚本时,我总是得到错误“UncaughtTypeError:$(…)。slick不是一个函数”

我已经尝试了几种在这里找到的解决方案,但没有一种对我有效

我的代码:

<section class="quotes">
    <div class="bubble">
        <blockquote>I refuse to accept the view that mankind is so tragically bound to the starless midnight of racism and war that the bright daybreak of peace and brotherhood can never become a reality... I believe that unarmed truth and unconditional love will have the final word.</blockquote>
        <div></div>
        <cite> Martin Luther King, Jr.</cite>
    </div>
    <div class="bubble">
        <blockquote> Peace is not a relationship of nations. It is a condition of mind brought about by a serenity of soul. Peace is not merely the absence of war. It is also a state of mind. Lasting peace can come only to peaceful people.</blockquote>
        <div></div>
        <cite> Jawaharlal Nehru</cite>
    </div>
    <div class="bubble">
        <blockquote> Forgiveness is not always easy. At times, it feels more painful than the wound we suffered, to forgive the one that inflicted it. And yet, there is no peace without forgiveness.</blockquote>
        <div></div>
        <cite> Marianne Williamson</cite>
    </div>
    <div class="bubble">
        <blockquote>Of all our dreams today there is none more important - or so hard to realise - than that of peace in the world. May we never lose our faith in it or our resolve to do everything that can be done to convert it one day into reality. </blockquote>
        <div></div>
        <cite> Lester B. Pearson</cite>
    </div>
</section>

<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="{{ asset('slick/slick.min.js') }}"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $('.quotes').slick({
            dots: true,
            infinite: true,
            autoplay: true,
            autoplaySpeed: 6000,
            speed: 800,
            slidesToShow: 2,
            adaptiveHeight: true
        });
    });
</script>

我拒绝接受这样一种观点,即人类如此悲惨地被束缚在种族主义和战争的黑暗中,以至于和平与兄弟情谊的光明黎明永远无法成为现实。。。我相信手无寸铁的真理和无条件的爱将是最后的决定。
马丁·路德·金。
和平不是国家间的关系。这是一种由灵魂的平静所带来的精神状态。和平不仅仅是没有战争。这也是一种心态。只有和平的人民才能实现持久和平。
贾瓦哈拉尔·尼赫鲁
宽恕并不总是容易的。有时候,原谅造成伤害的人比我们遭受的创伤更痛苦。然而,没有宽恕就没有和平。
玛丽安·威廉姆森
在我们今天所有的梦想中,没有什么比世界和平更重要——或者说更难实现了。愿我们永远不会失去对它的信心,也不会失去我们的决心,我们将尽一切努力,有朝一日把它变成现实。
莱斯特·皮尔逊
$(文档).ready(函数(){
$('.quotes').slick({
点:是的,
无限:是的,
自动播放:对,
自动播放速度:6000,
速度:800,,
幻灯片放映:2,
自适应高度:真
});
});
谢谢你的帮助

更新: 整个错误消息:

Uncaught TypeError: $(...).slick is not a function
    at HTMLDocument.<anonymous> ((index):19)
    at j (jquery-1.11.0.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
    at Function.ready (jquery-1.11.0.min.js:2)
    at HTMLDocument.K (jquery-1.11.0.min.js:2)
未捕获类型错误:$(…)。slick不是函数
在HTMLDocument。((索引):19)
在j(jquery-1.11.0.min.js:2)
在Object.fireWith[as resolveWith](jquery-1.11.0.min.js:2)
在Function.ready(jquery-1.11.0.min.js:2)
在HTMLDocument.K(jquery-1.11.0.min.js:2)

将jquery-1.11.0.min.js文件更新为jquery的新版本。这将解决错误。

将jquery-1.11.0.min.js文件更新为jquery的更新版本。这将解决错误。

似乎根本没有加载
slick.min.js
。您是否已检查浏览器的“开发工具网络”选项卡?
slick.min.js
在根据我的浏览器的开发工具正确加载jquery文件后已正确加载。似乎所有内容都已正确加载。然后是在文档准备就绪后加载
slick.min.js
。将所有脚本标记移动到文档的
中。当我将所有脚本标记放置在
中时,仍然会收到相同的错误。也许当我给出整个错误信息时会有所帮助?我用整个错误消息更新了帖子,似乎根本没有加载
slick.min.js
。您是否已检查浏览器的“开发工具网络”选项卡?
slick.min.js
在根据我的浏览器的开发工具正确加载jquery文件后已正确加载。似乎所有内容都已正确加载。然后是在文档准备就绪后加载
slick.min.js
。将所有脚本标记移动到文档的
中。当我将所有脚本标记放置在
中时,仍然会收到相同的错误。也许当我给出整个错误信息时会有所帮助?我已经用整个错误信息更新了帖子