IDC comment Network (idcps.com) reported on September 71.40%: according to the latest cnzz data, Android browser ranked first in the Chinese smart terminal browser market share in, followed by the UC browser of 14.64%, followed by the QQ browser of 6.02%. The following descr
To determine the browser type and terminal source, we have summarized the following:
Determine the browser type:
Determine the terminal Source:
Function getterminal () {var type = 'pc'; // The default value is PC. The value can be PC or MT (mobile) var terminal = ''; //
Work often use JS to judge the function of the browser! Today, we use JS to determine whether the browser is from a mobile device or a PC device!The code is as follows:varBrowser={versions:function(){ varU = window.navigator.userAgent; return{trident:u.indexof (' Trident ') >-1,//IE kernelPresto:u.indexof (' presto ') >-1,//Opera KernelWebkit:u.indexof (' AppleWebKit ') >-1,//Apple, Google kernelGecko:u.
W3m is an open source command line below the Web browser. It supports tables, frames, SSL lines, colors. If it is on the appropriate terminal, it even supports "inline image". This software usually renders the original layout of the page as much as possible.1. Installing w3m$ sudo apt-get install w3m w3m-img650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/00/2E/wKiom1mYN7DBBbTRAAJYNA5joRE428.png
Summarizes a JavaScript to get the current terminal type (PC, mobile), operating system type, browser type, browser version of the gadget.Personally feel OK, tested no problem, can identify IE7 and above./**author:weihuandate:2017-6-26**/var _agentinfo = {devicetype: "",//PC or Mobileosname: "",//Windows, Android, Linu X and so On...browsername: "",//Chrome, Safa
Document directory
Apple-mobile-web-app-status-bar-style
Format-detection
Viewport
Original article address
Http://blog.sina.com.cn/s/blog_4dffbd380100kvht.html
By default, the mobile terminal browser sets the width and initial size of the view.A recent mobile terminal project encountered a problem of changing the default settings. At first, I was very ske
This is a python script #! Usrbinpythonm 3.12345612345 print (m); the browser can output the result when the PHP script is called like this, but when the Python script is :#! Usrbinpythonimport epicsm epics. caget ( #39; VME: Voltage_N12V #39;) print (m). then, no output is returned when you call the browser using PHP... However, the output result phppython is executed on the
1. Shellinabox IntroductionShellinabox is a Web browser-based remote terminal emulator built using Ajax technology, which means that after the software is installed, the server side does not need to open the SSH service, the remote host can be operated through a Web browser, but your web browser needs to support ajax/
When doing mobile projects, you will often encounter the need to determine the page browsing terminal needs. To determine what browser terminal, first print navigator.useragent out. Therefore, several more commonly used methods are collected: if (/(Iphone|ipad|ipod|ios)/i.test (navigator.useragent)) {//ios Span style= "font-size:14pt" > Window.location.href = "
Determine the mobile terminal browser version based on javascript.
The specific explanations are in comments, so there is not much nonsense here, and the code is provided directly.
Copy codeThe Code is as follows:
The browser versions of common mobile terminals are basically here. For more information, see.
JQuery determines whether the browser is automatically redirected to a mobile terminal or a computer.
A small code segment, the same website for mobile viewing and computer viewing jump to different pages.
First load the jQuery file.
$ (Function () {var MobileUA = (function () {var ua = navigator. userAgent. toLowerCase (); var mua = {IOS:/ipod | iphone | ipad /. test (ua), // iOS IPHONE:/iphone /. test
The specific explanation is in the annotation, here is not much nonsense, directly to the code
Copy Code code as follows:
The common mobile Terminal browser version is basically here, there is a need for small partners under the reference bar
There is no habit of blogging, and it may not be a good habit. There are technical points to write down, all written in notes. Now think write blog is also very good, now in Shenzhen Kai Dream Network Technology Co., Ltd. work, the main work to do app development. Think of yourself from Java server-side development, and now Android, Apple application software development of the road, after 2, 3 years, a deep understanding of the continuous learning to enrich their own benefits.Recently, the comp
Lynx(i) Lynx introductionLynx is a fully functional www browser under a character interface. Lynx can run on many operating systems, such as VMS, UNIX, Windows, Windows NT, and of course Linux. Because of the lack of a beautiful graphical interface, Lynx occupies very little resources and is very fast. In addition, Lynx is the only WWW browser that can run under a character terminal.Lynx's homepage address
[Linux exploration journey] Part 2 Lesson 1: Terminal terminal, playing a good show, lesson 1 Terminal
Introduction
1. Part 2 Lesson 1:Terminal
2. Lesson 2: command line, the world at your fingertips
Terminal
With the end of the first part, we entered the second part (
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.