0
A
回答
3
看最精彩的答案來源與這個網址:
What is the best way to detect a mobile device in jQuery?
從該線程目前的方法:
var isMobile = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/);
Jq uery:
$.browser.device = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
相關問題
- 1. Android:智能手機或平板電腦
- 2. UiAutomator檢測平板電腦與手機
- 3. 檢測手機與平板電腦?
- 4. 智能手機和平板電腦 - 插入計算機
- 5. 檢測支持cookie和jQuery Mobile的智能手機/平板電腦瀏覽器
- 6. 在平板電腦上測試智能手機應用程序
- 7. 區分智能手機和平板電腦
- 8. 縱向和橫向查詢的智能手機,平板電腦
- 9. 媒體查詢移動(智能手機和平板電腦)
- 10. 智能手機需求活動和平板電腦DialogFragment
- 11. 針對智能手機和/或平板電腦的android開發
- 12. 重寫平板電腦和智能手機的url
- 13. 爲平板電腦和/或智能手機構建Phonegap
- 14. 片段,兩款智能手機和平板電腦?
- 15. Android智能手機和平板電腦的碎片處理?
- 16. 如何檢測平板電腦與智能手機的JavaScript [Phonegap應用]
- 17. 將多個智能手錶連接到一個智能手機/平板電腦
- 18. 檢測手機和平板電腦不工作的代碼
- 19. 檢測平板電腦和手機,htaccess或CSS
- 20. 智能手機/平板電腦開發之間的區別?
- 21. android如何區分智能手機或平板電腦
- 22. Android智能手機應用程序支持Android平板電腦
- 23. 智能手機與平板電腦的不同XML值
- 24. 針對智能手機,平板電腦等的CSS開發
- 25. 多個Android智能手機連接到平板電腦
- 26. 手機和平板電腦佈局
- 27. 適用於手機和平板電腦
- 28. Android手機和平板電腦問題
- 29. 檢測平板電腦
- 30. 平板電腦檢測
但不是android平板電腦,平板電腦,這段代碼表明它是一個手機! – Miguel