<!-- 可以通過js代碼判斷 -->
<!-- 手機端電腦端判斷-->
<script type="text/javascript">
$(document).ready(function () {
//平台、設備和操作系統
var system = {
win: false,
mac: false,
xll: false
};
//檢測平台
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) {
window.location.href = "pc/index.html";//pc端
} else {
window.location.href = "m/index.html";//手機
}
});
</script>
