fn_b/resources/js/app-zuiyou.js
2026-02-12 12:36:53 +08:00

25 lines
455 B
JavaScript
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

if ('scrollRestoration' in history) {
history.scrollRestoration = 'manual';
}
// 强制清空滚动位置(不依赖 body直接操作 window
window.scrollTo(0, 0);
import './bootstrap';
const $ = window.jQuery;
window.$ = $; // 确保全局一致性
import { fInitArticleLoader } from './modules/articles.js';
$(function() {
window.scrollTo(0, 0);
if ($.fn.infiniteScroll) {
fInitArticleLoader();
}
});