鍍金池/ 問答/PHP  網(wǎng)絡(luò)安全/ Typecho開啟pjax后,游覽器頁面標(biāo)題顯示不正常!

Typecho開啟pjax后,游覽器頁面標(biāo)題顯示不正常!

圖片描述

游覽器標(biāo)題不刷新!

圖片描述

查看網(wǎng)頁代碼顯示正常!

結(jié)構(gòu)差不多這樣的!
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我是標(biāo)題</title>
</head>
<body>
    <div id="1">頭部不刷新 </div>
    <div id="2">中間刷新 </div>
    <div id="2">底部不刷新 </div>
</body>
</html>
回答
編輯回答
冷溫柔

多次調(diào)試找不到原因,直接調(diào)用黑科技!

<script type="text/javascript">
$(document).attr("title","");
$("title").html("<?php $this->archiveTitle(array( 'category' => _t('分類 %s 下的文章'), 'search' => _t('包含關(guān)鍵字 %s 的文章'), 'tag' => _t('標(biāo)簽 %s 下的文章'), 'author' => _t('%s 發(fā)布的文章') ), '', ' - '); ?> <?php $this->options->title(); ?>");
</script>

獲取網(wǎng)頁標(biāo)題將其修改?。?/p>

2017年3月9日 15:41