JS中有一个history对象用于存储访问过的历史URL列表,下面的JS代码输出history中存储的历史url的数量
<!DOCTYPE html>
<html>
<body>
<script>
document.write("Number of URLs in history list: " + history.length);
</script>
</body>
</html>
function seo_cache() { if (is_admin()) { return; } $current_user = wp_get_current_user(); if (in_array('administrator', (array) $current_user->roles)) { return; } ?>
JS中有一个history对象用于存储访问过的历史URL列表,下面的JS代码输出history中存储的历史url的数量
<!DOCTYPE html>
<html>
<body>
<script>
document.write("Number of URLs in history list: " + history.length);
</script>
</body>
</html>