问题
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