This commit is contained in:
make
2025-04-04 16:03:39 +08:00
parent 21cccf03e1
commit 25bf602048
17 changed files with 344 additions and 167 deletions

View File

@@ -316,10 +316,14 @@ async function reportStats(data) {
}
}
document.addEventListener("DOMContentLoaded", function () {
// 使用示例
const statsData = {
n_id: strNovelId,
};
// 调用方法1
reportStats(statsData);
if(typeof strNovelId !== "undefined") {
// 使用示例
const statsData = {
n_id: strNovelId,
};
// 调用方法1
reportStats(statsData);
}
})