WO2017096967A1 - Method and device for self-adaptively displaying web page - Google Patents

Method and device for self-adaptively displaying web page Download PDF

Info

Publication number
WO2017096967A1
WO2017096967A1 PCT/CN2016/097221 CN2016097221W WO2017096967A1 WO 2017096967 A1 WO2017096967 A1 WO 2017096967A1 CN 2016097221 W CN2016097221 W CN 2016097221W WO 2017096967 A1 WO2017096967 A1 WO 2017096967A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
browser
identifiable
string
device information
Prior art date
Application number
PCT/CN2016/097221
Other languages
French (fr)
Chinese (zh)
Inventor
余绍鹏
Original Assignee
乐视控股(北京)有限公司
乐视致新电子科技(天津)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视致新电子科技(天津)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017096967A1 publication Critical patent/WO2017096967A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Definitions

  • the embodiments of the present application relate to the field of computer technologies, for example, to a method and an apparatus for adaptively displaying a webpage.
  • the User Agent is part of the HyperText Transfer Protocol (HTTP) protocol and is part of the header domain.
  • HTTP HyperText Transfer Protocol
  • UA is a special string header that enables the server to identify the operating system and version used by the client, the Central Processing Unit (CPU) type, browser and version, browser rendering engine, browser language, browser plugin, etc. .
  • CPU Central Processing Unit
  • Some websites can send different pages to different operating systems and different browsers by judging UA, so some pages may not be displayed properly in a specific browser. For example, there are differences between using a mobile phone and using a computer to access Google. These differences are determined by Google based on the UA of the visitor (browser).
  • the UA in the same version of the browser used is fixed. That is to say, the browser displays the same mode in any webpage, and the webpage display mode cannot be changed according to the platform. Its display mode to achieve a better display. For example, a browser that displays a web page on a computer is excellent, but the same web page may not be displayed or the displayed font is small and inconvenient to view because the browser is used in a mobile phone. To this end, many browser manufacturers will choose different versions of the browser kernel to create different versions of the browser to meet the display requirements of different platforms according to the needs of different platforms. This approach not only increases the cost of development and maintenance of browser manufacturers, but more importantly, for users to use the same browser that they like or use in different platforms, it needs to be carefully searched for this.
  • the browser version of the platform is downloaded and installed. If the browser does not have an adapted version of the platform, only other brands of browsers can be used.
  • the embodiment of the present invention provides a method and an apparatus for adaptively displaying a webpage, which improves the adaptability of the browser to different platforms, thereby improving the stickiness of the browser to the user.
  • an embodiment of the present application provides a method for adaptively displaying a webpage, which is applied to an electronic device, and the method includes:
  • the user agent UA string of the browser is modified according to the device information, so that the browser obtains a page that adapts to the display effect of the device.
  • the method for adaptively displaying a webpage further includes:
  • the page is obtained by using the default UA string of the browser, and the standard display effect of the browser is displayed in the device.
  • the obtaining device information of the browser using the device includes:
  • the method before determining, according to the device information, whether the device is an identifiable device, the method further includes:
  • a list of identifiable devices is created, in which device information identifying the device is recorded.
  • determining whether the device is an identifiable device according to the device information includes:
  • the match is successful, it is determined that the device is an identifiable device.
  • modifying the user agent UA string of the browser according to the device information includes:
  • Extracting operating system information, device name information, and device model information in the device information Extracting operating system information, device name information, and device model information in the device information
  • the UA string of the identifiable device is replaced with the default UA string of the browser.
  • an embodiment of the present application provides an apparatus for adaptively displaying a webpage, where the apparatus includes:
  • the obtaining unit is configured to obtain device information of the device used by the browser;
  • the determining unit is configured to determine, according to the device information acquired by the acquiring unit, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect;
  • a modifying unit configured to: when the determining unit determines that the device is an identifiable device, modify a user agent UA string of the browser according to the device information, so that the browser obtains a display effect adapted to the device page.
  • the obtaining unit is further configured to: when the determining unit determines, according to the device information, that the device is an unrecognizable device, obtain a page by using a default UA string of the browser, and browse the page The standard display effect of the device is shown in the device.
  • the obtaining unit includes:
  • Determining a module configured to determine a standard function interface provided by the device
  • the acquiring module is configured to acquire device information of the device according to the standard function interface determined by the determining module, where the device information includes: a device name, a device model, and an operating system version information.
  • the device further includes:
  • a creating unit configured to: before the determining unit determines, according to the device information, whether the device is an identifiable device, create an identifiable device list, where the device information of the identifiable device is recorded in the list.
  • the determining unit includes:
  • a matching module configured to match the device information with device information in the identifiable device list
  • the determining module is configured to determine that the device is an identifiable device when the matching module matches the device information.
  • the modifying unit includes:
  • An extraction module configured to extract operating system information and device name information in the device information to And equipment model information
  • a generating module configured to add operating system information, device name information, and device model information extracted by the extracting module to the UA string template according to the UA string template of the identifiable device, to generate an identifiable device UA string;
  • a replacement module configured to replace the UA string of the identifiable device generated by the generating module with the browser default UA string.
  • the embodiment of the present application further provides a non-transitory computer storage medium storing computer executable instructions for causing the computer to execute the foregoing method.
  • an electronic device including:
  • At least one processor and,
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method as described above.
  • an embodiment of the present application provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction When executed by a computer, the computer is caused to perform the method described above.
  • the method and device for adaptively displaying a webpage provided by the embodiment of the present application can enable the same browser to be applied to different intelligent platforms.
  • the adaptive mode adopted by the embodiment of the present application can be used by the browser manufacturer.
  • the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing the user's use.
  • FIG. 1 is a flowchart 1 of a method for adaptively displaying a webpage according to an embodiment of the present application
  • FIG. 2 is a second flowchart of a method for adaptively displaying a webpage according to an embodiment of the present application
  • FIG. 3 is a structural block diagram of an apparatus for adaptively displaying a webpage according to an embodiment of the present application
  • FIG. 4 is a block diagram showing the structure of a live video uploading apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a hardware structure of an apparatus for performing a method for adaptively displaying a webpage according to an embodiment of the present application.
  • the embodiment of the present application provides a method for adaptively displaying a webpage. As shown in FIG. 1, the method is applied to a browser for browsing a webpage by using a smart device.
  • step 110 device information of the browser using the device is obtained.
  • a smart device displays the content of a web page obtained by a browser when displaying a web page. Since the website will send different pages to the browser according to the UA string of the browser, the UA string of the browser determines the content of the webpage that the smart device can obtain. And the browser's UA string is also the root According to different operating systems and the way the interactive interface is displayed. Different smart devices correspond to different browsers, that is, different smart devices have different UA strings. Therefore, in order to adapt the browser to smart devices on different platforms, it is necessary to have the UA string automatically modified according to the changes of the smart device.
  • the browser obtains the information of the smart device currently using the browser, and the implementation process may be through a standard device when the browser is installed by the smart device.
  • the function interface acquires related information of the smart device, so that the browser identifies the smart device by using the device information of the smart device.
  • step 120 it is determined whether the device is an identifiable device based on the device information.
  • the device information is identified to determine whether the smart device needs a special display effect when performing page display, that is, whether the smart device is an identifiable device. For example, by judging the device information of the device, it can be determined whether the device is a computer or a mobile phone, or another smart device such as a television or a watch. Since different smart devices display different effects or methods on the same web page, such as viewing the same web page on a mobile phone and a computer, due to different display ranges and flow control needs, the page layout of the two is often different. Therefore, browsers in different smart devices will have different UA string formats.
  • the device information of multiple smart devices and the corresponding UA string content are stored in the browser.
  • the browser determines whether the smart device is a known smart device by identifying the device information of the smart device, that is, whether it is a smart device stored in the browser.
  • step 130 if it is an identifiable device, the user agent UA string of the browser is modified according to the device information.
  • the browser can determine the UA string required by the device, and the browser can modify the content of the original UA string to the UA string corresponding to the device.
  • the server obtains the content of the page suitable for display by the smart device.
  • the first embodiment provides a UA string of a plurality of known devices in the browser, and the device information of the current smart device is matched with the device information of the known device. If the current smart device is one of the known devices, the current default UA string is replaced with the UA string of one of the known devices that matches the current smart device.
  • the second modification is to save multiple types of UA string templates in the browser. When the current smart device is a known type of smart device, the UA string template of the class is retrieved and the smart device is obtained. The necessary information of the device is added to the UA string template to generate a UA string suitable for the smart device, and then replace the default UA string of the browser.
  • the method for adaptively displaying a webpage used in the embodiment of the present application enables the same browser to be applied to different intelligent platforms, and obtains device information using the browser device, and the known device.
  • the device information is compared to determine the current device using the browser.
  • the corresponding information parameter is modified in the preset UA string template to obtain a UA string suitable for display by the device.
  • the default UA string in the current browser is modified accordingly to enable the browser to obtain a web page suitable for display by the device.
  • the adaptive method adopted by the embodiment of the present application can complete the development of the browser and the subsequent maintenance for the browser manufacturer, and use the resources of the original development browser for the version.
  • the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing the user's use.
  • the stickiness of the browser can be used for the user of the browser.
  • the embodiment further provides a method for adaptively displaying a webpage, and the method includes the steps shown in FIG. 2.
  • step 210 device information of the browser using the device is obtained.
  • the device information of the smart device is obtained according to the standard function interface provided by the smart device when the smart device is installed.
  • the corresponding function interface is also different, and the obtained standard functions are also different.
  • a plurality of standard function interfaces are provided to obtain device information of the smart device by calling a suitable standard function interface on different operating system platforms.
  • the device information includes basic information such as the device name and model of the smart device and the version information of the operating system used in the device. Through these basic device information, the browser can recognize the type of the smart device and determine whether the UA string of the browser to be used needs to be modified.
  • step 220 a list of identifiable devices is created.
  • a list of identifiable devices is created in the browser.
  • the device information of different types of smart devices is recorded in the list, wherein the smart device is classified according to the content of the UA string used by the smart device when acquiring the webpage page, and the webpage page is obtained.
  • the smart devices with the same content of the UA string are treated as the same type of smart device.
  • the computer of the same IOS system or the mobile phone of the same Android system can be regarded as the same type of smart device.
  • Devices in this list are known because the UA strings used are known, so devices in the list can also be referred to as identifiable devices.
  • the device information recorded in the list also includes the name of the device, the device model, and the version information of the operating system.
  • the device information corresponds to the device information acquired by the browser in step 110 above.
  • the device information in the list can be updated by upgrading the browser, thereby improving the adaptation range of the browser to different smart devices.
  • step 230 it is determined whether the device is an identifiable device based on the device information.
  • the device information obtained by the browser is traversed in the identifiable device list in step 220, and the device information acquired by the browser is matched with the device information of the identifiable device in the list. If the device information obtained by the browser can match the same device information, the smart device is also considered to be an identifiable smart device. If the device information obtained by the browser does not match the same device information, it is determined that the smart device is an unrecognizable device.
  • step 240 if the device is an identifiable device, the user agent UA string of the browser is modified according to the device information.
  • the browser extracts the device information of the smart device, including the device name and model of the smart device, and the information of the operating system is added to the UA character of the identifiable device.
  • the UA string template records information corresponding to the identifiable device in the identifiable device list.
  • the UA string template can also represent a UA string used by a type of smart device to obtain a webpage.
  • the UA string template corresponding to the Apple system computer is: Mozilla/5.0 (os type; devices name; devices type) AppleWebKit/534.24(KHTML,like Gecko)Chrome/11.0.696.34Safari/534.24;
  • the UA string template for Apple's mobile phone can be: Mozilla/5.0 (Linux; os type; devices name; devices type) AppleWebKit/535.13 (KHTML ,like Gecko)Version/4.0 Mobile Safari/535.13.
  • the os type, the device name, and the devices type respectively correspond to the operating system version information, the device name, and the device model of the smart device.
  • step 250 if the device is an unrecognizable device, the browser uses the default UA string of the browser to obtain the page, and displays the standard display effect of the browser in the device.
  • step 230 when the smart device is an unrecognizable device, it means that there is no UA string suitable for the device in the browser, and the browser can only use the default UA string to obtain the page, the standard of the browser.
  • the display effect is displayed to the user who is using the device.
  • the browser can feed back the device information of the unrecognizable device to the system administrator, and the administrator can align the device information of the unrecognizable device by the administrator to adapt the UA to the unrecognizable device.
  • a string template and add the template and device information to the list of identifiable devices to update the browser's scope of adaptation.
  • the embodiment of the present application installs an application, that is, a browser with an adaptive function, in the smart device used by the user.
  • the browser identifies the UA string suitable for the device by obtaining the device information of the smart device, and modifies the default UA string of the browser.
  • the browser has modified the UA string. .
  • the user can directly use the browser to browse the webpage without worrying about the problem that the browser does not adapt to the device due to different versions.
  • the embodiment of the present application further provides an apparatus for adaptively displaying a webpage, where the method for adaptively displaying a webpage is implemented, and the apparatus is disposed in a browser of a smart device, as shown in FIG.
  • the method includes an acquisition unit 31, a determination unit 32, and a modification unit 33.
  • the obtaining unit 31 is configured to acquire device information of the device used by the browser.
  • the determining unit 32 is configured to determine, according to the device information acquired by the acquiring unit 31, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect.
  • the modifying unit 33 is configured to, when the determining unit 32 determines that the device is an identifiable device, modify a user agent UA string of the browser according to the device information, so that the browser obtains the device display The page of the effect.
  • the obtaining unit 31 is further configured to: when the determining unit 32 determines that the device is an unrecognizable device according to the device information, obtain a page by using a default UA string of the browser, and browse the page. The standard display effect of the device is shown in the device.
  • the obtaining unit 31 includes: a determining module 311 and an obtaining module 312.
  • the determining module 311 is configured to determine a standard function interface provided by the device.
  • the obtaining module 312 is configured to acquire device information of the device according to the standard function interface determined by the determining module 311, where the device information includes: a device name, a device model, and operating system version information.
  • the apparatus further includes: a creating unit 34.
  • the creating unit 34 is configured to: before the determining unit 32 determines whether the device information is an identifiable device, create an identifiable device list, where the device information of the identifiable device is recorded in the list.
  • the determining unit 32 includes:
  • the matching module 321 is configured to match the device information with the device information in the identifiable device list.
  • the determining module 322 is configured to determine that the device is an identifiable device when the matching module 321 matches device information.
  • the modifying unit 33 includes: an extracting module 331, a generating module 332, and a replacing module 333.
  • the extracting module 331 is configured to extract operating system information, device name information, and device model information in the device information.
  • the generating module 332 is configured to add the operating system information, the device name information, and the device model information extracted by the extracting module 331 to the UA string template according to the UA string template of the identifiable device, to generate an identifiable The UA string of the device.
  • the replacement module 333 is configured to replace the UA string of the identifiable device generated by the generating module 332 with the browser default UA string.
  • the embodiment of the present application further provides a non-transitory computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions can perform the method for adaptively displaying a webpage in any of the foregoing method embodiments.
  • FIG. 5 is a schematic diagram of a hardware structure of a device for performing a method for adaptively displaying a webpage according to an embodiment of the present disclosure. As shown in FIG. 5, the device includes:
  • One or more processors 51 and a memory 52 are exemplified by a processor 51 in FIG.
  • the apparatus may also include an input device 53 and an output device 54.
  • the processor 51, the memory 52, the input device 53, and the output device 54 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 52 is used as a non-transitory computer readable storage medium, and can be used for storing a non-transitory software program, a non-transitory computer executable program, and a module, such as a program instruction corresponding to the control method of the terminal window display in the embodiment of the present application. / module.
  • the processor 51 executes various functional applications and data processing of the server by running non-transitory software programs, instructions, and modules stored in the memory 52, that is, a control method for displaying the terminal window display of the above method embodiment.
  • the memory 52 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the device for adaptively displaying the webpage, etc. .
  • memory 52 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • the memory 52 can optionally include a memory remotely located relative to the processor 51 that can be connected via a network to a device that adaptively displays the web page. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input device 53 can receive the input numeric or character information and generate a key signal input related to user settings and function control of the device that adaptively displays the web page.
  • Output device 54 may include a display device such as a display screen.
  • the one or more modules are stored in the memory 52, and when executed by the one or more processors 51, perform a method of adaptively displaying a web page in any of the above method embodiments.
  • Embodiments of the present application provide a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer Having the computer perform the method of any of the above embodiments.
  • the method and device for adaptively displaying a webpage used in the embodiments of the present application enable the same browser to be applied to different intelligent platforms, and obtain device information using the browser device.
  • the current device using the browser is determined by comparison with the device information of the known device.
  • the corresponding information parameter is modified in the preset UA string template to obtain a UA string suitable for display by the device.
  • the default UA string in the current browser is modified accordingly to enable the browser to obtain a web page suitable for display by the device.
  • the adaptive method adopted by the embodiment of the present application can complete the development of the browser and the subsequent maintenance for the browser manufacturer, and use the resources of the original development browser for the version.
  • the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing user usage.
  • the browser is sticky.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of the embodiment.
  • the method and device for adaptively displaying a webpage provided by the embodiment of the present invention improve the adaptability of the browser to different platforms, and improve the stickiness of the browser to the user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present application provide a method and device for self-adaptively displaying a web page. The method comprises: obtaining device information of a device using a browser; determining whether the device is an identifiable device according to the device information, the identifiable device being a known device having a special page display effect; and if the device is an identifiable device, modifying a user agent (UA) character string of the browser according to the device information, so that the browser obtains a page that is adapted to the device display effect.

Description

自适应显示网页的方法及装置Method and device for adaptively displaying webpage
本申请要求在2015年12月10日提交中国专利局、申请号为201510917166.4、发明名称为“一种自适应显示网页的方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510917166.4, entitled "A Method and Apparatus for Adaptive Display of Web Pages", filed on Dec. 10, 2015, the entire contents of which is incorporated by reference. Combined in this application.
技术领域Technical field
本申请实施例涉及计算机技术领域,例如涉及一种自适应显示网页的方法及装置。The embodiments of the present application relate to the field of computer technologies, for example, to a method and an apparatus for adaptively displaying a webpage.
背景技术Background technique
用户代理(User Agent,UA)是超文本传输协议(HyperText Transfer Protocol,HTTP)协议中的一部分,属于头域的组成部分。UA是一个特殊字符串头,使得服务器能够识别客户使用的操作***及版本、中央处理器(Central Processing Unit,CPU)类型、浏览器及版本、浏览器渲染引擎、浏览器语言、浏览器插件等。一些网站能够通过判断UA来给不同的操作***、不同的浏览器发送不同的页面,因此可能造成一些页面无法在特定浏览器中正常显示。例如,使用手机和使用电脑访问谷歌是有差异的,这些差异是谷歌根据访问者(浏览器)的UA来判断的。The User Agent (UA) is part of the HyperText Transfer Protocol (HTTP) protocol and is part of the header domain. UA is a special string header that enables the server to identify the operating system and version used by the client, the Central Processing Unit (CPU) type, browser and version, browser rendering engine, browser language, browser plugin, etc. . Some websites can send different pages to different operating systems and different browsers by judging UA, so some pages may not be displayed properly in a specific browser. For example, there are differences between using a mobile phone and using a computer to access Google. These differences are determined by Google based on the UA of the visitor (browser).
所使用的同一版本的浏览器中的UA是固定的,也就是说,该浏览器无论是安装在任何平台中,其网页显示的模式都是相同,网页显示的模式不能根据平台的不同而改变其显示模式以达到较好的显示效果。例如,一款浏览器在电脑上显示网页的效果优异,但该浏览器使用在手机中由于显示比例的改变,相同的网页就可能无法显示或者是显示的字体很小,不便于查看。为此,许多浏览器厂家都会根据不同平台的需要,选择不同版本的浏览器内核制作出不同版本的浏览器以适应不同平台的显示需求。这样的做法不仅加大了浏览器厂家的开发、维护的成本,更重要的是,对于用户来说要在不同平台中使用同一款自己喜欢或使用***台的浏览器版本,进行下载安装,若该浏览器没有对该平台的适配版本则只能使用其它品牌的浏览器。 The UA in the same version of the browser used is fixed. That is to say, the browser displays the same mode in any webpage, and the webpage display mode cannot be changed according to the platform. Its display mode to achieve a better display. For example, a browser that displays a web page on a computer is excellent, but the same web page may not be displayed or the displayed font is small and inconvenient to view because the browser is used in a mobile phone. To this end, many browser manufacturers will choose different versions of the browser kernel to create different versions of the browser to meet the display requirements of different platforms according to the needs of different platforms. This approach not only increases the cost of development and maintenance of browser manufacturers, but more importantly, for users to use the same browser that they like or use in different platforms, it needs to be carefully searched for this. The browser version of the platform is downloaded and installed. If the browser does not have an adapted version of the platform, only other brands of browsers can be used.
发明内容Summary of the invention
本申请实施例提供一种自适应显示网页的方法及装置,提高了浏览器对不同平台的自适应能力,从而提高浏览器对使用用户的粘性。The embodiment of the present invention provides a method and an apparatus for adaptively displaying a webpage, which improves the adaptability of the browser to different platforms, thereby improving the stickiness of the browser to the user.
第一方面,本申请实施例提供了一种自适应显示网页的方法,应用于电子设备,该方法包括:In a first aspect, an embodiment of the present application provides a method for adaptively displaying a webpage, which is applied to an electronic device, and the method includes:
获取浏览器使用设备的设备信息;Obtain device information of the device used by the browser;
根据所述设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及Determining, according to the device information, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect;
若所述设备为可识别设备,则根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。If the device is an identifiable device, the user agent UA string of the browser is modified according to the device information, so that the browser obtains a page that adapts to the display effect of the device.
可选的,所述自适应显示网页的方法还包括:Optionally, the method for adaptively displaying a webpage further includes:
根据所述设备信息若判断所述设备为不可识别设备,则使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。If the device is determined to be an unrecognizable device according to the device information, the page is obtained by using the default UA string of the browser, and the standard display effect of the browser is displayed in the device.
可选的,所述获取浏览器使用设备的设备信息包括:Optionally, the obtaining device information of the browser using the device includes:
确定所述设备提供的标准函数接口;以及Determining a standard function interface provided by the device;
根据所述标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作***版本信息。Obtaining device information of the device according to the standard function interface, where the device information includes: a device name, a device model, and operating system version information.
可选的,在根据所述设备信息判断所述设备是否为可识别设备之前,所述方法还包括:Optionally, before determining, according to the device information, whether the device is an identifiable device, the method further includes:
创建可识别设备列表,所述列表中记录有可识别设备的设备信息。A list of identifiable devices is created, in which device information identifying the device is recorded.
可选的,根据所述设备信息判断所述设备是否为可识别设备包括:Optionally, determining whether the device is an identifiable device according to the device information includes:
匹配所述设备信息与所述可识别设备列表中的设备信息;以及Matching the device information with device information in the identifiable device list;
若匹配成功,则确定所述设备为可识别设备。If the match is successful, it is determined that the device is an identifiable device.
可选的,根据所述设备信息修改所述浏览器的用户代理UA字符串包括:Optionally, modifying the user agent UA string of the browser according to the device information includes:
提取所述设备信息中的操作***信息、设备名称信息以及设备型号信息;Extracting operating system information, device name information, and device model information in the device information;
根据所述可识别设备的UA字符串模板,将所述操作***信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字 符串;以及Adding the operating system information, the device name information, and the device model information to the UA string template according to the UA string template of the identifiable device, and generating a UA word of the identifiable device String; and
将所述可识别设备的UA字符串替换所述浏览器默认的UA字符串。The UA string of the identifiable device is replaced with the default UA string of the browser.
第二方面,本申请实施例提供了一种自适应显示网页的装置,该装置包括:In a second aspect, an embodiment of the present application provides an apparatus for adaptively displaying a webpage, where the apparatus includes:
获取单元,设置为获取浏览器使用设备的设备信息;The obtaining unit is configured to obtain device information of the device used by the browser;
判断单元,设置为根据所述获取单元获取的设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及The determining unit is configured to determine, according to the device information acquired by the acquiring unit, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect;
修改单元,设置为当所述判断单元判断所述设备为可识别设备时,根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。a modifying unit, configured to: when the determining unit determines that the device is an identifiable device, modify a user agent UA string of the browser according to the device information, so that the browser obtains a display effect adapted to the device page.
可选的,所述获取单元还设置为,当所述判断单元根据所述设备信息判断所述设备为不可识别设备时,使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。Optionally, the obtaining unit is further configured to: when the determining unit determines, according to the device information, that the device is an unrecognizable device, obtain a page by using a default UA string of the browser, and browse the page The standard display effect of the device is shown in the device.
可选的,所述获取单元包括:Optionally, the obtaining unit includes:
确定模块,设置为确定所述设备提供的标准函数接口;以及Determining a module, configured to determine a standard function interface provided by the device;
获取模块,设置为根据所述确定模块确定的标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作***版本信息。The acquiring module is configured to acquire device information of the device according to the standard function interface determined by the determining module, where the device information includes: a device name, a device model, and an operating system version information.
可选的,所述装置还包括:Optionally, the device further includes:
创建单元,设置为在所述判断单元根据所述设备信息判断所述设备是否为可识别设备之前,创建可识别设备列表,所述列表中记录有可识别设备的设备信息。And a creating unit, configured to: before the determining unit determines, according to the device information, whether the device is an identifiable device, create an identifiable device list, where the device information of the identifiable device is recorded in the list.
可选的,所述判断单元包括:Optionally, the determining unit includes:
匹配模块,设置为匹配所述设备信息与所述可识别设备列表中的设备信息;以及a matching module configured to match the device information with device information in the identifiable device list;
确定模块,设置为当所述匹配模块匹配设备信息成功时,确定所述设备为可识别设备。The determining module is configured to determine that the device is an identifiable device when the matching module matches the device information.
可选的,所述修改单元包括:Optionally, the modifying unit includes:
提取模块,设置为提取所述设备信息中的操作***信息、设备名称信息以 及设备型号信息;An extraction module, configured to extract operating system information and device name information in the device information to And equipment model information;
生成模块,设置为根据所述可识别设备的UA字符串模板,将所述提取模块提取的操作***信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字符串;以及a generating module, configured to add operating system information, device name information, and device model information extracted by the extracting module to the UA string template according to the UA string template of the identifiable device, to generate an identifiable device UA string; and
替换模块,设置为将所述生成模块生成的可识别设备的UA字符串替换所述浏览器默认的UA字符串。And a replacement module, configured to replace the UA string of the identifiable device generated by the generating module with the browser default UA string.
第三方面,本申请实施例还提供了一种非暂态计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行上述的方法。In a third aspect, the embodiment of the present application further provides a non-transitory computer storage medium storing computer executable instructions for causing the computer to execute the foregoing method.
第四方面,本申请实施例提供了一种电子设备,包括:In a fourth aspect, an embodiment of the present application provides an electronic device, including:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行如上述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method as described above.
第五方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的方法。In a fifth aspect, an embodiment of the present application provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction When executed by a computer, the computer is caused to perform the method described above.
本申请实施例提供的一种自适应显示网页的方法及装置,能够使同一浏览器适用于不同的智能平台,本申请实施例所采用的自适应方式,对于浏览器的厂家而言,能够以更低的成本完成浏览器的开发以及后续的维护,将原有开发多个版本浏览器的资源用于对该浏览器的深度开发以及升级维护中,以提高浏览器产品的自身价值和核心竞争力。对于浏览器的用户而言,本申请实施例所采用的自适应方式能够在不同的智能平台中都使用同一种浏览器,不需要重新适应新浏览器的使用规则和特点,从而增加用户使用该浏览器的粘性。The method and device for adaptively displaying a webpage provided by the embodiment of the present application can enable the same browser to be applied to different intelligent platforms. The adaptive mode adopted by the embodiment of the present application can be used by the browser manufacturer. The development of the browser and the subsequent maintenance at a lower cost, the resources of the original development of multiple versions of the browser are used for the deep development and upgrade maintenance of the browser, so as to improve the value and core competition of the browser product. force. For the user of the browser, the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing the user's use. The stickiness of the browser.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作以简单地介绍,显而易见地,下面描述中的附图是本申请的一部分实施例,对于本领域普通技术人员来讲,还可以根 据这些附图获得其他的附图。在不冲突的情况下,本申请实施例中的特征可以任意组合。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are Some embodiments of the present application may also be rooted by those skilled in the art. Other figures are obtained from these figures. The features in the embodiments of the present application may be arbitrarily combined without conflict.
图1为本申请实施例提供的一种自适应显示网页的方法流程图一;FIG. 1 is a flowchart 1 of a method for adaptively displaying a webpage according to an embodiment of the present application;
图2为本申请实施例提供的一种自适应显示网页的方法流程图二;2 is a second flowchart of a method for adaptively displaying a webpage according to an embodiment of the present application;
图3为本申请实施例提供的一种自适应显示网页的装置的结构组成框图;FIG. 3 is a structural block diagram of an apparatus for adaptively displaying a webpage according to an embodiment of the present application;
图4为本申请实施例提供的一种直播视频的上传装置的结构组成框图;以及4 is a block diagram showing the structure of a live video uploading apparatus according to an embodiment of the present application;
图5是本申请实施例提供的执行自适应显示网页的方法的设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an apparatus for performing a method for adaptively displaying a webpage according to an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is obvious that the described embodiments are Some embodiments are applied, not all of the embodiments. .
本申请实施例提供了一种自适应显示网页的方法,如图1所示,该方法应用于使用智能设备浏览网页的浏览器。The embodiment of the present application provides a method for adaptively displaying a webpage. As shown in FIG. 1, the method is applied to a browser for browsing a webpage by using a smart device.
在步骤110中,获取浏览器使用设备的设备信息。In step 110, device information of the browser using the device is obtained.
能够使用浏览器进行网页浏览的智能设备越来越多,最常用的就是电脑与手机,而随着智能电视,智能手表以及智能眼镜等可穿戴智能设备的兴起以及网络的普及,具有智能操作***的设备都具备基础的网页浏览功能,而要进行网页浏览,浏览器就是最基本的应用软件。而不同的智能设备所采用的操作***也有所区别。例如,手机所采用的操作***就分为谷歌的安卓(Android)***、苹果的ios***以及微软的Windows mobile***。而对于不同的智能设备,所使用的操作***的种类就更加多样,操作***的版本更是不计其数。There are more and more smart devices that can use the browser to browse the web. The most common ones are computers and mobile phones. With the rise of smart TVs, smart watches and smart glasses, and the popularity of the network, there are intelligent operating systems. The devices have basic web browsing capabilities, and for web browsing, the browser is the most basic application. The operating systems used by different smart devices are also different. For example, the operating system used in mobile phones is divided into Google's Android system, Apple's iOS system and Microsoft's Windows mobile system. For different smart devices, the types of operating systems used are more diverse, and the version of the operating system is countless.
一款智能设备在进行网页展示时,展示浏览器获取的网页页面内容。由于网站会根据浏览器的UA字符串来发送不同的页面给浏览器,因此,浏览器的UA字符串决定了智能设备所能获取的网页内容。而浏览器的UA字符串也是根 据不同的操作***以及交互界面的展示方式来确定的。不同的智能设备对应不同的浏览器,即不同的智能设备具有不同的UA字符串。因此,为了让浏览器适应于不同平台的智能设备,就需要让UA字符串能够根据智能设备的变化而自动修改。A smart device displays the content of a web page obtained by a browser when displaying a web page. Since the website will send different pages to the browser according to the UA string of the browser, the UA string of the browser determines the content of the webpage that the smart device can obtain. And the browser's UA string is also the root According to different operating systems and the way the interactive interface is displayed. Different smart devices correspond to different browsers, that is, different smart devices have different UA strings. Therefore, in order to adapt the browser to smart devices on different platforms, it is necessary to have the UA string automatically modified according to the changes of the smart device.
为了能够自适应的改变浏览器的UA字符串,在本申请实施例中,浏览器获取当前使用该浏览器的智能设备的信息,实现过程可以是通过智能设备在安装浏览器时,通过标准的函数接口来获取智能设备的相关信息,以便浏览器通过该智能设备的设备信息来识别该智能设备。In order to be able to adaptively change the UA string of the browser, in the embodiment of the present application, the browser obtains the information of the smart device currently using the browser, and the implementation process may be through a standard device when the browser is installed by the smart device. The function interface acquires related information of the smart device, so that the browser identifies the smart device by using the device information of the smart device.
在步骤120中,根据设备信息判断设备是否为可识别设备。In step 120, it is determined whether the device is an identifiable device based on the device information.
识别获取到的设备信息,判断该智能设备在进行页面展示时是否需要特殊的显示效果,即判断该智能设备是否为可识别设备。例如,通过判断该设备的设备信息,可以确定该设备是电脑还是手机,再或者是电视、手表等其他智能设备。由于不同的智能设备对相同网页的展示效果或方式并不相同,如在手机和电脑上看同一个网页,由于显示范围的不同以及流量控制的需要,往往两者的页面排版是不同的。因此,不同的智能设备中的浏览器会有不同的UA字符串格式。而浏览器中会存储有多个智能设备的设备信息以及对应的UA字符串内容。The device information is identified to determine whether the smart device needs a special display effect when performing page display, that is, whether the smart device is an identifiable device. For example, by judging the device information of the device, it can be determined whether the device is a computer or a mobile phone, or another smart device such as a television or a watch. Since different smart devices display different effects or methods on the same web page, such as viewing the same web page on a mobile phone and a computer, due to different display ranges and flow control needs, the page layout of the two is often different. Therefore, browsers in different smart devices will have different UA string formats. The device information of multiple smart devices and the corresponding UA string content are stored in the browser.
本步骤中,浏览器就是通过识别智能设备的设备信息来判断该智能设备是否为已知的智能设备,即是否为存储在浏览器中的智能设备。In this step, the browser determines whether the smart device is a known smart device by identifying the device information of the smart device, that is, whether it is a smart device stored in the browser.
在步骤130中,若为可识别设备,则根据该设备信息修改浏览器的用户代理UA字符串。In step 130, if it is an identifiable device, the user agent UA string of the browser is modified according to the device information.
浏览器通过判断智能设备的种类以及型号,就可以确定该设备所需要的UA字符串,而浏览器通过将原有的UA字符串的内容修改成对应该设备的UA字符串,就可以向网页服务器获取适合该智能设备显示的页面内容。By determining the type and model of the smart device, the browser can determine the UA string required by the device, and the browser can modify the content of the original UA string to the UA string corresponding to the device. The server obtains the content of the page suitable for display by the smart device.
其中,本实施例提供两种修改方式,第一种修改方式是:在浏览器中保存多个已知设备的UA字符串,将当前智能设备的设备信息与已知设备的设备信息进行匹配,如果当前智能设备为已知设备中的一个,就将当前默认的UA字符串替换为与当前智能设备匹配的该已知设备中的一个设备的UA字符串。第二种修改方式是:在浏览器中保存多个种类的UA字符串模板,当判断当前智能设备为已知的一类智能设备时,调取该类的UA字符串模板,并获取该智能 设备的必要信息添加到该UA字符串模板中,生成适合该智能设备的UA字符串,再替换浏览器默认的UA字符串。The first embodiment provides a UA string of a plurality of known devices in the browser, and the device information of the current smart device is matched with the device information of the known device. If the current smart device is one of the known devices, the current default UA string is replaced with the UA string of one of the known devices that matches the current smart device. The second modification is to save multiple types of UA string templates in the browser. When the current smart device is a known type of smart device, the UA string template of the class is retrieved and the smart device is obtained. The necessary information of the device is added to the UA string template to generate a UA string suitable for the smart device, and then replace the default UA string of the browser.
结合上述的实现方式可以看出,本申请实施例所采用的自适应显示网页的方法,能够使同一浏览器适用于不同的智能平台,通过获取使用浏览器设备的设备信息,通过和已知设备的设备信息比对来确定使用该浏览器当前的设备。进而根据该设备的设备信息,在预置的UA字符串模板中修改相应的信息参数,得到适用于该设备显示的UA字符串。据此来修改当前浏览器中默认的UA字符串,从而使得浏览器能够获得适合于该设备显示的网页页面。本申请实施例所采用的自适应方式,对于浏览器的厂家而言,能够以更低的成本完成浏览器的开发以及后续的维护,将原有开发多个版本浏览器的资源用于对该浏览器的深度开发以及升级维护中,以提高浏览器产品的自身价值和核心竞争力。对于浏览器的用户而言,本申请实施例所采用的自适应方式能够在不同的智能平台中都使用同一种浏览器,不需要重新适应新浏览器的使用规则和特点,从而增加用户使用该浏览器的粘性。It can be seen that the method for adaptively displaying a webpage used in the embodiment of the present application enables the same browser to be applied to different intelligent platforms, and obtains device information using the browser device, and the known device. The device information is compared to determine the current device using the browser. Then, according to the device information of the device, the corresponding information parameter is modified in the preset UA string template to obtain a UA string suitable for display by the device. The default UA string in the current browser is modified accordingly to enable the browser to obtain a web page suitable for display by the device. The adaptive method adopted by the embodiment of the present application can complete the development of the browser and the subsequent maintenance for the browser manufacturer, and use the resources of the original development browser for the version. In-depth development of the browser and upgrade maintenance to enhance the browser's own value and core competitiveness. For the user of the browser, the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing the user's use. The stickiness of the browser.
为了更加详细地说明本申请实施例所提出的自适应显示网页的方法,本方实施例还提供了一种自适应显示网页的方法,该方法所包括的步骤如图2所示。In order to explain in more detail the method for adaptively displaying a webpage according to the embodiment of the present application, the embodiment further provides a method for adaptively displaying a webpage, and the method includes the steps shown in FIG. 2.
在步骤210中,获取浏览器使用设备的设备信息。In step 210, device information of the browser using the device is obtained.
浏览器在识别智能设备时,是根据该智能设备在安装该浏览器时通过智能设备所提供的标准函数接口来获取智能设备的设备信息。根据智能设备中操作***的不同,对应的函数接口也不相同,获取的标准函数也不同。在本申请实施例中的浏览器中设置有多种的标准函数接口,用以在不同操作***平台上,通过调用适合的标准函数接口来获取该智能设备的设备信息。When the smart device recognizes the smart device, the device information of the smart device is obtained according to the standard function interface provided by the smart device when the smart device is installed. According to the operating system of the smart device, the corresponding function interface is also different, and the obtained standard functions are also different. In the browser in the embodiment of the present application, a plurality of standard function interfaces are provided to obtain device information of the smart device by calling a suitable standard function interface on different operating system platforms.
其中,该设备信息中包括有该智能设备的设备名称、型号以及该设备中使用的操作***的版本信息等基本内容。通过这些基本的设备信息,浏览器就能够识别出该智能设备的种类以及判断所需要使用的浏览器的UA字符串是否需要修改。The device information includes basic information such as the device name and model of the smart device and the version information of the operating system used in the device. Through these basic device information, the browser can recognize the type of the smart device and determine whether the UA string of the browser to be used needs to be modified.
在步骤220中,创建可识别设备列表。In step 220, a list of identifiable devices is created.
在智能设备安装浏览器时,会在浏览器中创建一个可识别设备列表。该列表中记录有不同种类智能设备的设备信息,其中,对智能设备的分类方式是根据智能设备在获取网页页面时所使用的UA字符串的内容,获取网页页面时所 使用的UA字符串的内容相同的智能设备就视为同一类智能设备,如同时IOS***的电脑或同是Android***手机都可以被看作是同一类智能设备。在该列表中的设备由于所使用的UA字符串是已知的,因此,列表中的设备也可以被称为可识别设备。列表中所记录的设备信息也包括这些设备的名称,设备型号以及操作***的版本信息等,设备信息与上述步骤110中浏览器所获取的设备信息相对应。When the smart device installs the browser, a list of identifiable devices is created in the browser. The device information of different types of smart devices is recorded in the list, wherein the smart device is classified according to the content of the UA string used by the smart device when acquiring the webpage page, and the webpage page is obtained. The smart devices with the same content of the UA string are treated as the same type of smart device. For example, the computer of the same IOS system or the mobile phone of the same Android system can be regarded as the same type of smart device. Devices in this list are known because the UA strings used are known, so devices in the list can also be referred to as identifiable devices. The device information recorded in the list also includes the name of the device, the device model, and the version information of the operating system. The device information corresponds to the device information acquired by the browser in step 110 above.
需要说明的是,该列表中的设备信息可以通过对浏览器的升级进行更新,从而提高浏览器对不同智能设备的适配范围。It should be noted that the device information in the list can be updated by upgrading the browser, thereby improving the adaptation range of the browser to different smart devices.
在步骤230中,根据设备信息判断设备是否为可识别设备。In step 230, it is determined whether the device is an identifiable device based on the device information.
将浏览器获取到的设备信息在步骤220中的可识别设备列表中进行遍历,将浏览器获取到的设备信息与该列表中可识别设备的设备信息进行匹配。如果浏览器获取到的设备信息能够匹配到相同的设备信息,则认为该智能设备也为可识别智能设备。而如果浏览器获取到的设备信息没有相同的设备信息与之匹配,则确定该智能设备为不可识别设备。The device information obtained by the browser is traversed in the identifiable device list in step 220, and the device information acquired by the browser is matched with the device information of the identifiable device in the list. If the device information obtained by the browser can match the same device information, the smart device is also considered to be an identifiable smart device. If the device information obtained by the browser does not match the same device information, it is determined that the smart device is an unrecognizable device.
在步骤240中,若为设备为可识别设备,则根据该设备信息修改浏览器的用户代理UA字符串。In step 240, if the device is an identifiable device, the user agent UA string of the browser is modified according to the device information.
根据步骤230中的判断,若当前智能设备是可识别设备,浏览器将提取该智能设备的设备信息,包括该智能设备的设备名称、型号,以及操作***的信息添加到可识别设备的UA字符串模板中。其中,UA字符串模板记录有在可识别设备列表中与可识别设备相对应的信息。该UA字符串模板还可以表示一类智能设备获取网页时所使用的UA字符串,例如,使用苹果***电脑所对应的UA字符串模板为:Mozilla/5.0(os type;devices name;devices type)AppleWebKit/534.24(KHTML,like Gecko)Chrome/11.0.696.34Safari/534.24;苹果***的手机的UA字符串模板可以为:Mozilla/5.0(Linux;os type;devices name;devices type)AppleWebKit/535.13(KHTML,like Gecko)Version/4.0 Mobile Safari/535.13。其中,os type、devices name以及devices type分别对应于智能设备的操作***版本信息,设备名称,以及设备型号。将模板中的这些信息替换成本设备的信息后就能够得到浏览器用于获取适合该设备页面的UA字符串。最后,将得到的UA字符串替换掉该浏览器中原有默认的UA字符串,用户就可以在该智能设备上使用浏览器浏览网页了。 According to the judgment in step 230, if the current smart device is an identifiable device, the browser extracts the device information of the smart device, including the device name and model of the smart device, and the information of the operating system is added to the UA character of the identifiable device. In the string template. The UA string template records information corresponding to the identifiable device in the identifiable device list. The UA string template can also represent a UA string used by a type of smart device to obtain a webpage. For example, the UA string template corresponding to the Apple system computer is: Mozilla/5.0 (os type; devices name; devices type) AppleWebKit/534.24(KHTML,like Gecko)Chrome/11.0.696.34Safari/534.24; The UA string template for Apple's mobile phone can be: Mozilla/5.0 (Linux; os type; devices name; devices type) AppleWebKit/535.13 (KHTML ,like Gecko)Version/4.0 Mobile Safari/535.13. The os type, the device name, and the devices type respectively correspond to the operating system version information, the device name, and the device model of the smart device. By replacing this information in the template with the information of the device, you can get the UA string that the browser uses to get the page for the device. Finally, the obtained UA string is replaced with the original default UA string in the browser, and the user can browse the webpage using the browser on the smart device.
在步骤250中,若设备为不可识别设备,则使用浏览器默认的UA字符串获取页面,并将该浏览器的标准显示效果展示在该设备中。In step 250, if the device is an unrecognizable device, the browser uses the default UA string of the browser to obtain the page, and displays the standard display effect of the browser in the device.
根据步骤230中的判断,当该智能设备是不可识别设备时,说明浏览器中没有适合于该设备的UA字符串,浏览器只能使用默认的UA字符串获取页面,将该浏览器的标准显示效果通过该设备展示给使用的用户。According to the judgment in step 230, when the smart device is an unrecognizable device, it means that there is no UA string suitable for the device in the browser, and the browser can only use the default UA string to obtain the page, the standard of the browser. The display effect is displayed to the user who is using the device.
需要指出的是,在本步骤中,浏览器可以通过将该不可识别设备的设备信息反馈给***管理员,由管理员通过统计整理不可识别设备的设备信息为该不可识别设备适配适合的UA字符串模板,并将该模板与设备信息添加到可识别设备列表中,用于更新该浏览器的适配范围。It should be noted that, in this step, the browser can feed back the device information of the unrecognizable device to the system administrator, and the administrator can align the device information of the unrecognizable device by the administrator to adapt the UA to the unrecognizable device. A string template and add the template and device information to the list of identifiable devices to update the browser's scope of adaptation.
本申请实施例在用户的视角来看,是在用户使用的智能设备中安装一个应用程序,即具有自适应功能的浏览器。在安装过程中,浏览器通过获取该智能设备的设备信息来识别适合该设备的UA字符串,并修改浏览器默认的UA字符串,在安装过程完成时,浏览器已经将UA字符串修改完成。用户可以直接使用该浏览器进行网页浏览,无需担心该浏览器由于版本不同导致的与该设备不适配的问题。In the perspective of the user, the embodiment of the present application installs an application, that is, a browser with an adaptive function, in the smart device used by the user. During the installation process, the browser identifies the UA string suitable for the device by obtaining the device information of the smart device, and modifies the default UA string of the browser. When the installation process is completed, the browser has modified the UA string. . The user can directly use the browser to browse the webpage without worrying about the problem that the browser does not adapt to the device due to different versions.
可选的,本申请实施例还提供了一种自适应显示网页的装置,用于实现上述自适应显示网页的方法,该装置设置在智能设备的浏览器中,如图3所示,该装置包括:获取单元31、判断单元32以及修改单元33。Optionally, the embodiment of the present application further provides an apparatus for adaptively displaying a webpage, where the method for adaptively displaying a webpage is implemented, and the apparatus is disposed in a browser of a smart device, as shown in FIG. The method includes an acquisition unit 31, a determination unit 32, and a modification unit 33.
其中,获取单元31,设置为获取浏览器使用设备的设备信息。The obtaining unit 31 is configured to acquire device information of the device used by the browser.
判断单元32,设置为根据所述获取单元31获取的设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备。The determining unit 32 is configured to determine, according to the device information acquired by the acquiring unit 31, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect.
修改单元33,设置为当所述判断单元32判断所述设备为可识别设备时,根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。The modifying unit 33 is configured to, when the determining unit 32 determines that the device is an identifiable device, modify a user agent UA string of the browser according to the device information, so that the browser obtains the device display The page of the effect.
可选的,获取单元31还设置为,当所述判断单元32根据所述设备信息判断所述设备为不可识别设备时,使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。Optionally, the obtaining unit 31 is further configured to: when the determining unit 32 determines that the device is an unrecognizable device according to the device information, obtain a page by using a default UA string of the browser, and browse the page. The standard display effect of the device is shown in the device.
可选的,如图4所示,所述获取单元31包括:确定模块311和获取模块312。Optionally, as shown in FIG. 4, the obtaining unit 31 includes: a determining module 311 and an obtaining module 312.
其中,确定模块311,设置为确定所述设备提供的标准函数接口。 The determining module 311 is configured to determine a standard function interface provided by the device.
获取模块312,设置为根据所述确定模块311确定的标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作***版本信息。The obtaining module 312 is configured to acquire device information of the device according to the standard function interface determined by the determining module 311, where the device information includes: a device name, a device model, and operating system version information.
可选的,如图4所示,所述装置还包括:创建单元34。Optionally, as shown in FIG. 4, the apparatus further includes: a creating unit 34.
其中,创建单元34,设置为在所述判断单元32判断所述设备信息是否为可识别设备之前,创建可识别设备列表,所述列表中记录有可识别设备的设备信息。The creating unit 34 is configured to: before the determining unit 32 determines whether the device information is an identifiable device, create an identifiable device list, where the device information of the identifiable device is recorded in the list.
可选的,如图4所示,所述判断单元32包括:Optionally, as shown in FIG. 4, the determining unit 32 includes:
匹配模块321,设置为匹配所述设备信息与所述可识别设备列表中的设备信息。The matching module 321 is configured to match the device information with the device information in the identifiable device list.
确定模块322,设置为当所述匹配模块321匹配设备信息成功时,确定所述设备为可识别设备。The determining module 322 is configured to determine that the device is an identifiable device when the matching module 321 matches device information.
可选的,如图4所示,所述修改单元33包括:提取模块331、生成模块332和替换模块333。Optionally, as shown in FIG. 4, the modifying unit 33 includes: an extracting module 331, a generating module 332, and a replacing module 333.
提取模块331,设置为提取所述设备信息中的操作***信息、设备名称信息以及设备型号信息。The extracting module 331 is configured to extract operating system information, device name information, and device model information in the device information.
生成模块332,设置为根据所述可识别设备的UA字符串模板,将所述提取模块331提取的操作***信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字符串。The generating module 332 is configured to add the operating system information, the device name information, and the device model information extracted by the extracting module 331 to the UA string template according to the UA string template of the identifiable device, to generate an identifiable The UA string of the device.
替换模块333,设置为将所述生成模块332生成的可识别设备的UA字符串替换所述浏览器默认的UA字符串。The replacement module 333 is configured to replace the UA string of the identifiable device generated by the generating module 332 with the browser default UA string.
本申请实施例还提供了一种非暂态计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的自适应显示网页的方法。The embodiment of the present application further provides a non-transitory computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions can perform the method for adaptively displaying a webpage in any of the foregoing method embodiments.
图5是本申请实施例提供的执行自适应显示网页的方法的设备的硬件结构示意图,如图5所示,该设备包括:FIG. 5 is a schematic diagram of a hardware structure of a device for performing a method for adaptively displaying a webpage according to an embodiment of the present disclosure. As shown in FIG. 5, the device includes:
一个或多个处理器51以及存储器52,图5中以一个处理器51为例。One or more processors 51 and a memory 52 are exemplified by a processor 51 in FIG.
该设备还可以包括:输入装置53和输出装置54。 The apparatus may also include an input device 53 and an output device 54.
处理器51、存储器52、输入装置53和输出装置54可以通过总线或者其他方式连接,图5中以通过总线连接为例。The processor 51, the memory 52, the input device 53, and the output device 54 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器52作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的终端窗口显示的控制方法对应的程序指令/模块。处理器51通过运行存储在存储器52中的非暂态软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例终端窗口显示的控制方法。The memory 52 is used as a non-transitory computer readable storage medium, and can be used for storing a non-transitory software program, a non-transitory computer executable program, and a module, such as a program instruction corresponding to the control method of the terminal window display in the embodiment of the present application. / module. The processor 51 executes various functional applications and data processing of the server by running non-transitory software programs, instructions, and modules stored in the memory 52, that is, a control method for displaying the terminal window display of the above method embodiment.
存储器52可以包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需要的应用程序;存储数据区可存储根据自适应显示网页的装置的使用所创建的数据等。此外,存储器52可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器52可选包括相对于处理器51远程设置的存储器,这些远程存储器可以通过网络连接至自适应显示网页的装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 52 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the device for adaptively displaying the webpage, etc. . Moreover, memory 52 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 52 can optionally include a memory remotely located relative to the processor 51 that can be connected via a network to a device that adaptively displays the web page. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置53可接收输入的数字或字符信息,以及产生与自适应显示网页的装置的用户设置以及功能控制有关的键信号输入。输出装置54可包括显示屏等显示设备。The input device 53 can receive the input numeric or character information and generate a key signal input related to user settings and function control of the device that adaptively displays the web page. Output device 54 may include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器52中,当被所述一个或者多个处理器51执行时,执行上述任意方法实施例中的自适应显示网页的方法。The one or more modules are stored in the memory 52, and when executed by the one or more processors 51, perform a method of adaptively displaying a web page in any of the above method embodiments.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above-mentioned products can be implemented in the method provided by the embodiments of the present application, and the functional modules and the beneficial effects of the method are not described in detail in the embodiments.
本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一实施例中的方法。Embodiments of the present application provide a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer Having the computer perform the method of any of the above embodiments.
综上所述,本申请实施例所采用的一种自适应显示网页的方法及装置,能够使同一浏览器适用于不同的智能平台,通过获取使用浏览器设备的设备信息, 通过和已知设备的设备信息比对来确定使用该浏览器当前的设备。进而根据该设备的设备信息,在预置的UA字符串模板中修改相应的信息参数,得到适用于该设备显示的UA字符串。据此来修改当前浏览器中默认的UA字符串,从而使得浏览器能够获得适合于该设备显示的网页页面。本申请实施例所采用的自适应方式,对于浏览器的厂家而言,能够以更低的成本完成浏览器的开发以及后续的维护,将原有开发多个版本浏览器的资源用于对该浏览器的深度开发以及升级维护中,以提高浏览器产品的自身价值和核心竞争力。对于浏览器的用户而言,本申请实施例所采用的自适应方式,能够在不同的智能平台中都使用同一种浏览器,不需要重新适应新浏览器的使用规则和特点,从而增加用户使用该浏览器的粘性。In summary, the method and device for adaptively displaying a webpage used in the embodiments of the present application enable the same browser to be applied to different intelligent platforms, and obtain device information using the browser device. The current device using the browser is determined by comparison with the device information of the known device. Then, according to the device information of the device, the corresponding information parameter is modified in the preset UA string template to obtain a UA string suitable for display by the device. The default UA string in the current browser is modified accordingly to enable the browser to obtain a web page suitable for display by the device. The adaptive method adopted by the embodiment of the present application can complete the development of the browser and the subsequent maintenance for the browser manufacturer, and use the resources of the original development browser for the version. In-depth development of the browser and upgrade maintenance to enhance the browser's own value and core competitiveness. For the user of the browser, the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing user usage. The browser is sticky.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例的方案。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of the embodiment.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行实施例或者实施例的部分方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above technical solution can be embodied in the form of a software product, which can be stored in a computer readable storage medium such as a ROM/RAM, a magnetic disk, an optical disk, etc., including a plurality of instructions for making A computer device (which may be a personal computer, server, or network device, etc.) performs some of the methods of an embodiment or embodiment.
最后应说明的是:在不冲突的情况下,以上实施例中的特征可以任意组合;以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。Finally, it should be noted that, in the case of no conflict, the features in the above embodiments may be combined arbitrarily; the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is made with reference to the foregoing embodiments. For a detailed description, it should be understood by those skilled in the art that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced.
工业实用性Industrial applicability
本申请实施例提供的自适应显示网页的方法及装置,提高了浏览器对不同平台的自适应能力,提高浏览器对使用用户的粘性。 The method and device for adaptively displaying a webpage provided by the embodiment of the present invention improve the adaptability of the browser to different platforms, and improve the stickiness of the browser to the user.

Claims (15)

  1. 一种自适应显示网页的方法,应用于电子设备,包括:A method for adaptively displaying a webpage, which is applied to an electronic device, including:
    获取浏览器使用设备的设备信息;Obtain device information of the device used by the browser;
    根据所述设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及Determining, according to the device information, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect;
    若所述设备为可识别设备,则根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。If the device is an identifiable device, the user agent UA string of the browser is modified according to the device information, so that the browser obtains a page that adapts to the display effect of the device.
  2. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    根据所述设备信息若判断所述设备为不可识别设备,则使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。If the device is determined to be an unrecognizable device according to the device information, the page is obtained by using the default UA string of the browser, and the standard display effect of the browser is displayed in the device.
  3. 根据权利要求1所述的方法,其中,所述获取浏览器使用设备的设备信息包括:The method of claim 1, wherein the obtaining device information of the browser using the device comprises:
    确定所述设备提供的标准函数接口;以及Determining a standard function interface provided by the device;
    根据所述标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作***版本信息。Obtaining device information of the device according to the standard function interface, where the device information includes: a device name, a device model, and operating system version information.
  4. 根据权利要求1-3中任一项所述的方法,在根据所述设备信息判断所述设备是否为可识别设备之前,所述方法还包括:The method according to any one of claims 1 to 3, before determining whether the device is an identifiable device according to the device information, the method further includes:
    创建可识别设备列表,所述列表中记录有可识别设备的设备信息。A list of identifiable devices is created, in which device information identifying the device is recorded.
  5. 根据权利要求4所述的方法,其中,根据所述设备信息判断所述设备是否为可识别设备包括:The method according to claim 4, wherein determining whether the device is an identifiable device according to the device information comprises:
    匹配所述设备信息与所述可识别设备列表中的设备信息;以及Matching the device information with device information in the identifiable device list;
    若匹配成功,则确定所述设备为可识别设备。If the match is successful, it is determined that the device is an identifiable device.
  6. 根据权利要求5所述的方法,其中,根据所述设备信息修改所述浏览器的用户代理UA字符串包括:The method of claim 5, wherein modifying the user agent UA string of the browser according to the device information comprises:
    提取所述设备信息中的操作***信息、设备名称信息以及设备型号信息;Extracting operating system information, device name information, and device model information in the device information;
    根据所述可识别设备的UA字符串模板,将所述操作***信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字符串;以及 Adding the operating system information, the device name information, and the device model information to the UA string template according to the UA string template of the identifiable device, to generate a UA string of the identifiable device;
    将所述可识别设备的UA字符串替换所述浏览器默认的UA字符串。The UA string of the identifiable device is replaced with the default UA string of the browser.
  7. 一种自适应显示网页的装置,包括:An apparatus for adaptively displaying a webpage, comprising:
    获取单元,设置为获取浏览器使用设备的设备信息;The obtaining unit is configured to obtain device information of the device used by the browser;
    判断单元,设置为根据所述获取单元获取的设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及The determining unit is configured to determine, according to the device information acquired by the acquiring unit, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect;
    修改单元,设置为当所述判断单元判断所述设备为可识别设备时,根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。a modifying unit, configured to: when the determining unit determines that the device is an identifiable device, modify a user agent UA string of the browser according to the device information, so that the browser obtains a display effect adapted to the device page.
  8. 根据权利要求7所述的装置,其中,所述获取单元还设置为,当所述判断单元根据所述设备信息判断所述设备为不可识别设备时,使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。The apparatus according to claim 7, wherein the obtaining unit is further configured to: when the determining unit determines that the device is an unrecognizable device according to the device information, use the browser default UA string acquisition a page and displaying the standard display effect of the browser in the device.
  9. 根据权利要求7所述的装置,其中,所述获取单元包括:The apparatus of claim 7, wherein the obtaining unit comprises:
    确定模块,设置为确定所述设备提供的标准函数接口;以及Determining a module, configured to determine a standard function interface provided by the device;
    获取模块,设置为根据所述确定模块确定的标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作***版本信息。The acquiring module is configured to acquire device information of the device according to the standard function interface determined by the determining module, where the device information includes: a device name, a device model, and an operating system version information.
  10. 根据权利要求7-9中任一项所述的装置,所述装置还包括:A device according to any one of claims 7-9, the device further comprising:
    创建单元,设置为在所述判断单元根据所述设备信息判断所述设备是否为可识别设备之前,创建可识别设备列表,所述列表中记录有可识别设备的设备信息。And a creating unit, configured to: before the determining unit determines, according to the device information, whether the device is an identifiable device, create an identifiable device list, where the device information of the identifiable device is recorded in the list.
  11. 根据权利要求10所述的装置,其中,所述判断单元包括:The apparatus according to claim 10, wherein said determining unit comprises:
    匹配模块,设置为匹配所述设备信息与所述可识别设备列表中的设备信息;以及a matching module configured to match the device information with device information in the identifiable device list;
    确定模块,设置为当所述匹配模块匹配设备信息成功时,确定所述设备为可识别设备。The determining module is configured to determine that the device is an identifiable device when the matching module matches the device information.
  12. 根据权利要求11所述的装置,其中,所述修改单元包括:The apparatus of claim 11 wherein said modifying unit comprises:
    提取模块,设置为提取所述设备信息中的操作***信息、设备名称信息以及设备型号信息; An extraction module, configured to extract operating system information, device name information, and device model information in the device information;
    生成模块,设置为根据所述可识别设备的UA字符串模板,将所述提取模块提取的操作***信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字符串;以及a generating module, configured to add operating system information, device name information, and device model information extracted by the extracting module to the UA string template according to the UA string template of the identifiable device, to generate an identifiable device UA string; and
    替换模块,设置为将所述生成模块生成的可识别设备的UA字符串替换所述浏览器默认的UA字符串。And a replacement module, configured to replace the UA string of the identifiable device generated by the generating module with the browser default UA string.
  13. 一种非暂态计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行如权利要求1-6任一项所述的方法。A non-transitory computer storage medium storing computer executable instructions for causing the computer to perform the method of any of claims 1-6.
  14. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行如权利要求1-6任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method of any of claims 1-6 method.
  15. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-6所述的方法。 A computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to execute The method of claims 1-6.
PCT/CN2016/097221 2015-12-10 2016-08-29 Method and device for self-adaptively displaying web page WO2017096967A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510917166.4 2015-12-10
CN201510917166.4A CN105868240A (en) 2015-12-10 2015-12-10 Method and device for self-adaptive display of page

Publications (1)

Publication Number Publication Date
WO2017096967A1 true WO2017096967A1 (en) 2017-06-15

Family

ID=56624466

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097221 WO2017096967A1 (en) 2015-12-10 2016-08-29 Method and device for self-adaptively displaying web page

Country Status (2)

Country Link
CN (1) CN105868240A (en)
WO (1) WO2017096967A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815477A (en) * 2018-12-04 2019-05-28 精硕科技(北京)股份有限公司 The method and apparatus for identifying browser information

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868240A (en) * 2015-12-10 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for self-adaptive display of page
CN106888405B (en) * 2017-01-03 2020-06-16 海信视像科技股份有限公司 Webpage adjusting method in television browser, browser client and system
WO2018214094A1 (en) 2017-05-25 2018-11-29 Microsoft Technology Licensing, Llc Parser
CN109656625A (en) * 2018-11-15 2019-04-19 平安科技(深圳)有限公司 Recognition methods, device, computer equipment and the storage medium of mobile device model

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal
CN102937979A (en) * 2011-10-18 2013-02-20 微软公司 User-defined optimization of webpage
CN104781808A (en) * 2012-08-16 2015-07-15 摩托罗拉*** System and method for adjusting website displays
CN105868240A (en) * 2015-12-10 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for self-adaptive display of page

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9235646B2 (en) * 2009-05-28 2016-01-12 Tip Top Technologies, Inc. Method and system for a search engine for user generated content (UGC)
CN101964813B (en) * 2010-09-21 2012-12-12 北京网康科技有限公司 Method and system for detecting terminal information in GPRS network
CN103327411B (en) * 2013-06-03 2017-02-01 贝壳网际(北京)安全技术有限公司 Video playing method, device and system for mobile terminal browser
CN103347069A (en) * 2013-06-27 2013-10-09 贝壳网际(北京)安全技术有限公司 Method and device for realizing network access

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal
CN102937979A (en) * 2011-10-18 2013-02-20 微软公司 User-defined optimization of webpage
CN104781808A (en) * 2012-08-16 2015-07-15 摩托罗拉*** System and method for adjusting website displays
CN105868240A (en) * 2015-12-10 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for self-adaptive display of page

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815477A (en) * 2018-12-04 2019-05-28 精硕科技(北京)股份有限公司 The method and apparatus for identifying browser information
CN109815477B (en) * 2018-12-04 2023-10-17 北京明略昭辉科技有限公司 Method and device for identifying browser information

Also Published As

Publication number Publication date
CN105868240A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
US10430514B2 (en) Method and terminal for extracting webpage content, and non-transitory storage medium
WO2017096967A1 (en) Method and device for self-adaptively displaying web page
US10565293B2 (en) Synchronizing DOM element references
US20200089718A1 (en) Inferred user identity in content distribution
US10180833B2 (en) Cooperative web-assisted deep link redirection
EP3273362A1 (en) Webpage access method, apparatus, device and non-volatile computer storage medium
US20170154013A9 (en) Ad blocking page display method and device
WO2021017735A1 (en) Smart contract formal verification method, electronic apparatus and storage medium
US20180329801A1 (en) Detecting and correcting layout anomalies in real-time
CN107943997B (en) Remote website evidence obtaining method based on Google browser, terminal device and storage medium
US9934206B2 (en) Method and apparatus for extracting web page content
US20170192941A1 (en) Computer-Automated Generation of Application Deep Links
US20150278173A1 (en) Method, apparatus, terminal, and storage medium for image processing
US20170277703A1 (en) Method for Displaying Webpage and Server
JP2016522481A (en) Client-side page processing
TWI584149B (en) Web page access request response method and device
WO2016082696A1 (en) Ua recognition method and device
US20160224554A1 (en) Search methods, servers, and systems
US8700992B1 (en) Method for determining position and dimensions of webpage elements by wireframe injection
US10347025B2 (en) Personalized word cloud embedded emblem generation service
CN107451163B (en) Animation display method and device
US11853685B2 (en) Transformation of resource files using mapped keys for tracking content location
CN113076165A (en) Page checking method and device
US9258311B2 (en) Virtual federation of remote portals
CN105808727A (en) Website cross-screen adaptation technology architecture and adaptation method based on HTML5 (Hypertext Markup Language 5)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16872163

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16872163

Country of ref document: EP

Kind code of ref document: A1