Die Codekopie lautet wie folgt:
var system = {};
var p = navigator.platform;
System.win = P.Indexof ("Win") == 0;
System.mac = P.Indexof ("mac") == 0;
System.x11 = (p == "x11") || (P.Indexof ("Linux") == 0);
if (system.win || system.mac || system.xll) {// Wenn es sich um einen Computer handelt, springen Sie zu Baidu
window.location.href = "http://www.baidu.com/";
} else {// Wenn es sich um ein Handy handelt, springen Sie zu Google
window.location.href = "http://www.google.cn/";
}