砌体不适用于jQuery [英] Masonry not working with jQuery

查看:124
本文介绍了砌体不适用于jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery Masonry不适用于jQuery,但适用于javascript.你能告诉我为什么吗?

jQuery Masonry is not working with jQuery but working with javascript. Can you tell me why?

当我给出此代码时:

console.log(typeof $.masonry)

显示未定义"

但是,如果我给出此代码:

But if I giving this code :

console.log(Masonry)

显示:

function n(){y.apply(this,arguments)} 

推荐答案

如果没有传递正确的参数,则在这种情况下选择器将不会显示实际类型(因为缺少实际选择器) 尝试

Wihtout passing the right arguments or in this case selector it won't show the actualy type (because the actuall selector is missing) Try it with

typeof $('selector').masonry

这篇关于砌体不适用于jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆