jQuery live在调整大小和滚动时不触发
有人能告诉我为什么下面的代码没有启动jQuery live在调整大小和滚动时不触发,jquery,Jquery,有人能告诉我为什么下面的代码没有启动控制台。在调整大小和滚动上记录?(jquery1.7肯定已加载) $(窗口).live('滚动调整大小',函数() { console.log('我在工作吗?'); }); 谢谢。live在jQuery 1.7及更高版本中被弃用 As of jQuery 1.7, the .live() method is deprecated. 。相反,请使用仅适用于窗口的.on(),而不是类似于:$(window).on('scroll','div',functi
控制台。在调整大小和滚动上记录?(jquery1.7肯定已加载)
$(窗口).live('滚动调整大小',函数()
{
console.log('我在工作吗?');
});
谢谢。live
在jQuery 1.7及更高版本中被弃用
As of jQuery 1.7, the .live() method is deprecated.
。相反,请使用仅适用于窗口的.on()
,而不是类似于:$(window).on('scroll','div',function(){…});
As of jQuery 1.7, the .live() method is deprecated.