【问题标题】:Masonry not working with jQuery砌体不适用于 jQuery
【发布时间】:2014-01-20 20:41:11
【问题描述】:

jQuery Masonry 不使用 jQuery,而是使用 javascript。你能告诉我为什么吗?

当我给出这个代码时:

console.log(typeof $.masonry)

显示“未定义”

但是如果我给出这个代码:

console.log(Masonry)

显示:

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

【问题讨论】:

  • 也尝试过:console.log(typeof jQuery.masonry)

标签: jquery jquery-masonry


【解决方案1】:

如果不传递正确的参数,或者在这种情况下选择器,它不会显示实际类型(因为缺少实际选择器) 试试看

typeof $('selector').masonry

【讨论】:

  • 但是如何确定砌体是否可用?
猜你喜欢
  • 1970-01-01
  • 2015-02-23
  • 2016-06-07
  • 1970-01-01
  • 2022-01-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多