首页 > 这个怎么匹配手机端页面

这个怎么匹配手机端页面

<meta name="mobile-agent" content="format=html5;url=http://m.xxx.com/abc/" /> 
<meta name="mobile-agent" content="format=xhtml;url=http://m.xxx.com/abc/" /> 
<script type="text/javascript" src="http://siteapp.baidu.com/static/webappservice/uaredirect.js">
<script type="text/javascript">uaredirect("http://m.xxx.com/abc/");</script> 

织梦的程序里,我想把所有电脑页面都匹配相应的手机页面,即把www替换成m,如 www.xxx.com/abcd/1/html 在meta标签里替换成m.xxx.com/abcd/1.html,请问应该怎样匹配,具体的代码是什么?谢谢!


<meta http-equiv="mobile-agent" content="format=html5;url=http://m." />
【热门文章】
【热门文章】