如何判断移动端浏览器自己百度下 if(isMobile)location='/mobile'+location.pathname+location.search
if(isMobile)location='/mobile'+location.pathname+location.search
我知道怎么做跳转 可是怎么在链接中间加一个目录我就不太懂了 能大概说一下吗 大神
window.navigator.userAgent;这个可以判断是什么设备访问,再处理一下跳转地址就行了
87,904
社区成员
224,614
社区内容
加载中
试试用AI创作助手写篇文章吧