Now smart phone online more and more common, in order to gain user experience to increase the site traffic, you need to add a visit to your site to determine the device, if found to be a mobile phone user access, then jump directly to the mobile phone station, through the Baidu app site, it is easy to achieve this function. Just copy the code below to get it right.
The code is as follows:
<script src= "Http://siteapp.baidu.com/static/webappservice/uaredirect.js" type= "Text/javascript" ></ script> <script type= "Text/javascript" > uaredirect ("http://m.cnblogs.com/?u=txw1958");// Please change the URL of your mobile station </script>
Add these lines of code to the head of each page of your computer station, and if the template is generated, add it to the beginning of the template. If you don't use a template, you can add it to your site's public JS library file.
Mobile website judgment and jump