"use client"; import { useEffect } from "react"; export default function HotjarLoader() { useEffect(() => { (function (h, o, t, j, a, r) { h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments); }; h._hjSettings = { hjid: 3414362, hjsv: 6 }; // 获取
元素 const headElement = o.getElementsByTagName("head")[0]; if (!headElement) { console.error("Head element not found in the document."); return; // 如果没有找到 ,直接退出 } // 创建