javascript

PC&M双端转跳

没有废话,看代码!

移动端加:

//不是移动设备里跳转到PC地址
if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|OperaMini/i.tesst(navigator.userAgent)) {
window.location = "/cp/a11111212xx/index.htm";
}

PC中加:

//是移动端跳转到移动地址
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|OperaMini/i.test(navigator.userAgent) ) {
window.location = "/cp/a11111212xxm/index.htm";
}

————-评论后,您的评论将通过审核后展示出来哦~~~————–

1,018条评论

  • daftar baru joker123

    Today, I went to the beachfront with my kids.
    I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is
    totally off topic but I had to tell someone!

  • my review here

    Very good blog! Do you have any tips and hints for aspiring writers?
    I’m hoping to start my own site soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress or go
    for a paid option? There are so many options out
    there that I’m totally overwhelmed .. Any tips? Bless you!

Leave a Reply

邮箱地址不会被公开。