JS识别浏览器类型(电脑浏览器和手机浏览器)
废话不多说了,直接给大家贴代码了,具体代码如下所示: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" Content="text/html;charset=UTF-8"/> <title>识别电脑浏览器和手机浏览器</title> </head> [removed] var system ={}; var p = navigator.platform; system.win = p.indexOf("Win") == 0; system.m