天涯家园HomeH天涯家园HomeH

- 网络编程,php编编程,php代码,WEB精品软件资源分享学习家园

EdgeJS编程例

var uas = ['Mobile','iPhone','iPad','iPod','Android','mobile','iphone','ipad','ipod','android'];

var i = 0;

var ua = r.headersIn['User-Agent'];

for (; i < uas.length; i += 1) {

    if (ua.includes(uas[i])) {

        r.return(301,'https://m.hi23.com');

        return;

    }

}


下一篇: zblog - php -upload

相关文章