2010-04-04 32 views

回答

1

檢查用戶代理。即JavaScript的方式。

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { 
    if (document.cookie.indexOf("iphone_redirect=false") == -1) window.location = "http://m.url.com"; 

} 

還是做在.net中的東西,如Mobile Device Browser File

相關問題