Masonry not working with jQuery

天大地大妈咪最大 提交于 2019-12-11 13:56:04

问题


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

When I giving this code:

console.log(typeof $.masonry)

Showing "undefined"

But if I giving this code :

console.log(Masonry)

Showing:

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

回答1:


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


来源:https://stackoverflow.com/questions/21234181/masonry-not-working-with-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!