久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

ImagesLoaded with Masonry, Object #<Object>沒有

ImagesLoaded with Masonry, Object #lt;Objectgt; has no method #39;imagesLoaded#39;(ImagesLoaded with Masonry, Object #lt;Objectgt;沒有方法“imagesLoaded)
本文介紹了ImagesLoaded with Masonry, Object #<Object>沒有方法“imagesLoaded"的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

遇到此錯(cuò)誤,嘗試將 Masonry 與 imageLoaded 一起使用:

Getting this error, trying to use Masonry with imageLoaded:

對(duì)象#沒有方法'imagesLoaded'"

"Object # has no method 'imagesLoaded'"

必要腳本的鏈接在我的標(biāo)題中:

The links to the necessary scripts are in my header:

<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script><script src="/js/masonry.pkgd.min.js" type="text/javascript"></script>
<script src="/js/imagesloaded.pkgd.min.js" type="text/javascript"></script>

下面是代碼在我的頁腳中的樣子:

And here is how the code looks in my footer:

$(document).ready(function() {
    $('#archive-post-container').imagesLoaded(function() {
        $(this).masonry({
            itemSelector : '.post',
            columnWidth:344
        });
    });
});

編輯/附錄:將 ImagesLoaded 和 Masonry 的腳本標(biāo)簽放在我需要它們的頁面的實(shí)際 .php 文件中,而不是放在 header.php 中,這會(huì)導(dǎo)致我出現(xiàn)此錯(cuò)誤,來自 ImagesLoaded:Uncaught TypeError: undefined is not a function

EDIT / ADDENDUM: Placing the script tags for ImagesLoaded and Masonry in the actual .php file for the page I need them on, instead of in header.php gets me this error instead, coming from ImagesLoaded: Uncaught TypeError: undefined is not a function

不知道為什么將標(biāo)簽從標(biāo)題移動(dòng)到標(biāo)題下方會(huì)改變這一點(diǎn),但至少現(xiàn)在我正在使用 imagesLoaded?

Not sure why moving the tags just from the to just under the header would change this, but at least now I am getting to imagesLoaded?

推薦答案

請(qǐng)注意,ImageLoaded 不再包含在最新的 Masonry 發(fā)行版中,每

Note that ImagesLoaded is no longer included in the latest Masonry distribution, per

http://masonry.desandro.com/appendix.html#upgrading-從-v2

你可以直接在這里獲取:

You can get it directly here:

http://desandro.github.io/imagesloaded/

這篇關(guān)于ImagesLoaded with Masonry, Object #&lt;Object&gt;沒有方法“imagesLoaded"的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

jQuery/JavaScript Library for avatar creation?(用于創(chuàng)建頭像的 jQuery/JavaScript 庫?)
How to do following mask input problem?(如何做以下掩碼輸入問題?)
Issues Setting Value/Label Using DropKick Javascript(使用 DropKick Javascript 設(shè)置值/標(biāo)簽的問題)
how to unit-test private methods in jquery plugins?(如何對(duì) jquery 插件中的私有方法進(jìn)行單元測(cè)試?)
stellar.js - configuring offsets / aligning elements for a vertical scrolling website?(stellar.js - 為垂直滾動(dòng)網(wǎng)站配置偏移量/對(duì)齊元素?)
jQuery masked input plugin. select all content when textbox receives focus(jQuery 屏蔽輸入插件.當(dāng)文本框獲得焦點(diǎn)時(shí)選擇所有內(nèi)容)
主站蜘蛛池模板: 亚洲精品色 | 精品亚洲一区二区 | 国产成人精品一区二三区在线观看 | 台湾佬成人网 | 欧美日产国产成人免费图片 | 99re热精品视频国产免费 | 麻豆av免费观看 | 九色在线观看 | 久久久精品亚洲 | 日韩av免费在线电影 | 精品国产成人 | 一区二区三区中文字幕 | 在线一级片 | 欧美黄页 | 黄篇网址 | 伊人二区 | 亚洲免费精品 | 亚洲国产一区二区三区 | 一区二区三区在线观看视频 | 欧美精三区欧美精三区 | 国产高清毛片 | 欧美一区二区三区久久精品 | 久久久久中文字幕 | 亚洲高清电影 | 成人国产精品色哟哟 | 亚洲区一区二 | 美国一级片在线观看 | 一区二区在线免费观看 | 东方伊人免费在线观看 | 国产亚洲精品精品国产亚洲综合 | 国产成人精品免费视频大全最热 | 亚洲 中文 欧美 日韩 在线观看 | 五月婷婷丁香婷婷 | 国产一区二区在线免费观看 | 人人人人干| 黑人中文字幕一区二区三区 | 一本色道精品久久一区二区三区 | 国产激情一区二区三区 | 日日射影院 | 国产精品xxxx| 日韩精品中文字幕一区二区三区 |