針對(duì)使用百度識(shí)別代碼造成網(wǎng)站訪問速度慢的問題,可以更改如下識(shí)別代碼:
1.網(wǎng)站首頁(yè)模版識(shí)別代碼:
-
<script type="text/javascript">
-
if ((navigator.userAgent.match(/(iPhone|iPod|Android|Backerry|WebOS|Symbian|Windows Phone|Phone)/i))) { location.replace("{dede:global.cfg_cmsurl/}/m/");} else {}
-
</script>
2.頻道和欄目識(shí)別代碼:
-
<script type="text/javascript">
-
if ((navigator.userAgent.match(/(iPhone|iPod|Android|Backerry|WebOS|Symbian|Windows Phone|Phone)/i))) { location.replace("{dede:global.cfg_cmsurl/}/m/list.php?tid={dede:field.typeid/}");} else {}
-
</script>
3.內(nèi)容詳情頁(yè)識(shí)別代碼:
-
<script type="text/javascript">
-
if ((navigator.userAgent.match(/(iPhone|iPod|Android|Backerry|WebOS|Symbian|Windows Phone|Phone)/i))) { location.replace("{dede:global.cfg_cmsurl/}/m/view.php?aid={dede:field.id/}");} else {}
-
</script>