dede判断移动设备跳转
<script type="text/javascript">try {var urlhash = window.location.hash;
if (!urlhash.match("fromapp")){if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{window.location="/m";}}}catch(err){}</script>
首页
<script type="text/javascript">try {var urlhash = window.location.hash;
if (!urlhash.match("fromapp")){if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{window.location="/m/list.php?tid={dede:type}[field:ID /]{/dede:type}";}}}catch(err){}</script>
栏目页
<script type="text/javascript">try {var urlhash = window.location.hash;
if (!urlhash.match("fromapp")){if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{window.location="/m/view.php?aid={dede:field.id/}";}}}catch(err){}</script>
内容页
aaaaaaaa