    <script src="<?php echo SITE_URL; ?>/js/common.js"></script>
    <?php if (isset($pageJs)): ?>
    <script src="<?php echo SITE_URL . $pageJs; ?>"></script>
    <?php endif; ?>
    <script>
    // 课表数据本地存储半月清理：每隔15天清除本地缓存的课表数据
    (function() {
        var CACHE_KEY = 'course_sync_time';
        var now = Date.now();
        var lastSync = localStorage.getItem(CACHE_KEY);
        if (lastSync) {
            var diff = now - parseInt(lastSync);
            // 超过15天(15*24*3600*1000ms)则清理本地课表缓存
            if (diff > 15 * 24 * 3600 * 1000) {
                localStorage.removeItem(CACHE_KEY);
                localStorage.removeItem('course_data');
                localStorage.removeItem('course_week');
            }
        }
    })();
    </script>
</body>
</html>