优化侧边栏点击事件js性能
This commit is contained in:
parent
9f01d7a88a
commit
ff7517cfd2
|
@ -20,7 +20,7 @@
|
|||
|
||||
$('#websiteFooter').text($('#footer').val());
|
||||
|
||||
$('#sidebar .sub-menu > a').click(function () {
|
||||
$('#sidebar').on('click', 'a', function () {
|
||||
var o = ($(this).offset());
|
||||
diff = 300 - o.top;
|
||||
if (diff > 0)
|
||||
|
|
Loading…
Reference in New Issue