迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
我需要,在pc端页面,调用当前移动端页面的url,是用哪个标签,哪个大佬知道,谢谢!
<meta http-equiv="mobile-agent" content="format=xhtml;url=需要当前移动端url">
<link rel="alternate" media="only screen and(max-width: 640px)" href="需要当前移动端url">
调用出现错误 <meta http-equiv="mobile-agent" content="format=xhtml;url={dr_rp($my_web_url, SITE_URL, SITE_MURL)}"> <link rel="alternate" media="only screen and(max-width: 640px)" href="{dr_rp($my_web_url, SITE_URL, SITE_MURL)}">
<script type="application/javascript"> var MobileUA = (function() { var ua = navigator.userAgent.toLowerCase(); var mua = { IOS: /ipod|iphone|ipad/.test(ua), IPHONE: /iphone/.test(ua), IPAD: /ipad/.test(ua), ANDROID: /android/.test(ua), WINDOWS: /windows/.test(ua), TOUCH_DEVICE: ('ontouchstart' in window) || /touch/.test(ua), MOBILE: /mobile/.test(ua), ANDROID_TABLET: false, WINDOWS_TABLET: false, TABLET: false, SMART_PHONE: false }; mua.ANDROID_TABLET = mua.ANDROID && !mua.MOBILE; mua.WINDOWS_TABLET = mua.WINDOWS && /tablet/.test(ua); mua.TABLET = mua.IPAD || mua.ANDROID_TABLET || mua.WINDOWS_TABLET; mua.SMART_PHONE = mua.MOBILE && !mua.TABLET; if(ua.match(/MicroMessenger/i)=="micromessenger") { mua.SMART_PHONE = true; } return mua; }()); if (MobileUA.SMART_PHONE) { document.location.href = '{str_replace(SITE_URL, SITE_MURL, $my_web_url)}'; } </script>
<meta http-equiv="mobile-agent" content="format=xhtml;url=需要当前移动端url">
<link rel="alternate" media="only screen and(max-width: 640px)" href="需要当前移动端url">
调用出现错误 <meta http-equiv="mobile-agent" content="format=xhtml;url={dr_rp($my_web_url, SITE_URL, SITE_MURL)}"> <link rel="alternate" media="only screen and(max-width: 640px)" href="{dr_rp($my_web_url, SITE_URL, SITE_MURL)}">
问题三连: 1、上代码 (你的代码); 2、上截图 (错误信息提示截图); 3、上链接 (你的问题所在链接);