如果想簡單判斷,並跳轉,用下面代碼就可以:
* [' L0 b% }3 d3 y$ ][mw_shl_code=javascript,true]if( /Android|webOS| iPhone | iPad | iPod |BlackBerry|opera mini|opera mobile|appleWebkit.*mobile|mobile/i.test(navigator.userAgent) ) {
) d4 R$ X, N. Fwindow.location = 'wap.html';5 o7 E0 |* W$ W+ G% B! }! ^8 k* [9 s- `
}[/mw_shl_code]: w$ b. {/ E7 G
8 \$ S5 H* Y+ p. ^0 }, b |