WO2017161994A1 - 一种显示页面的方法及装置、计算机存储介质 - Google Patents
一种显示页面的方法及装置、计算机存储介质 Download PDFInfo
- Publication number
- WO2017161994A1 WO2017161994A1 PCT/CN2017/074465 CN2017074465W WO2017161994A1 WO 2017161994 A1 WO2017161994 A1 WO 2017161994A1 CN 2017074465 W CN2017074465 W CN 2017074465W WO 2017161994 A1 WO2017161994 A1 WO 2017161994A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- page
- displayed
- display mode
- information
- parameter information
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/306—User profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/535—Tracking the activity of the user
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Definitions
- the present invention relates to the field of Internet communications, and in particular, to a method and apparatus for displaying a page, and a computer storage medium.
- the display mode of the mobile terminal includes two modes of horizontal screen display and vertical screen display.
- the mobile terminal can adjust the display mode to display the page, so as to facilitate User browsing.
- a mobile terminal to display a page.
- the first is that the mobile terminal automatically sets a display mode to display a page.
- the mobile terminal displays the page in a landscape display when it is detected to be placed sideways; when it is vertically placed, it displays the page in a portrait screen.
- the second way is that the user manually sets the mobile terminal to display the page in a horizontal screen or a vertical screen.
- the embodiment of the invention provides a method and device for displaying a page, and a computer storage medium.
- the technical solution is as follows:
- a method of displaying a page comprising:
- page parameter information of the page to be displayed includes at least a uniform resource locator (URL, Uniform Resource Locator), a type of page content, and a page domain name of the page to be displayed.
- URL Uniform Resource Locator
- the page to be displayed is displayed according to the determined display mode.
- an apparatus for displaying a page comprising:
- An extraction module configured to extract page parameter information of the page to be displayed from the page to be displayed, where the page parameter information includes at least one of a uniform resource locator URL of the page to be displayed, a type of the page content, and a page domain name. item;
- a determining module configured to determine a display mode for displaying the page to be displayed according to the page parameter information of the page to be displayed;
- a display module configured to display the page to be displayed according to the determined display mode.
- the extraction module, the determining module, and the display module may use a central processing unit (CPU), a digital signal processor (DSP, Digital Singnal Processor), or a programmable logic array (FPGA) when performing processing. , Field-Programmable Gate Array) implementation.
- CPU central processing unit
- DSP digital signal processor
- FPGA programmable logic array
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the foregoing method for displaying a page.
- the display mode can be automatically set, the time for the user to operate and the display mode is reduced, and the page to be displayed is also displayed.
- the page parameter information is improved to determine the accuracy of the display mode, and the number of times the misoperation occurs is reduced.
- FIG. 1 is a network architecture diagram provided by an embodiment of the present invention.
- FIG. 2 is a flowchart of a method for displaying a page according to an embodiment of the present invention
- FIG. 3 is a flowchart of another method for displaying a page according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of an apparatus for displaying a page according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
- the embodiment of the present invention provides a method for displaying a page, where the method may be that when the user browses the to-be-displayed page by using the mobile terminal, the mobile terminal sets to display the to-be-displayed page in a horizontal screen or to display the to-be-displayed page in a vertical screen.
- This method can be run in a browser or in a browser-enabled application.
- the method can be applied to other scenarios or scenarios in addition to the scenario, and is not enumerated here.
- the mobile terminal when displaying a page to be displayed, may determine a display mode for displaying a page to be displayed according to a page parameter of the page to be displayed, and then display the page to be displayed according to the determined display mode.
- the detailed operation of the mobile terminal determining the display mode for displaying the page to be displayed may be: the mobile terminal may acquire the information set, where the information set includes the page parameter of the page displayed in the first display mode.
- the information of the page parameter information of the page to be displayed is matched with the page parameter information of the page to be displayed.
- the display mode for displaying the page to be displayed is determined as a first display mode; if the information set does not include the page parameter information of the page to be displayed, determining that the display mode for displaying the page to be displayed is the second display mode; wherein the first display mode may be a horizontal display
- the second display mode may be a vertical screen display; or the first display mode may be a vertical screen display, and the second display mode may be a horizontal screen display.
- the information set may specifically be a configuration file.
- the database, the configuration file or the database may be stored in the mobile terminal in advance, or the configuration file may be downloaded and stored locally by the mobile terminal from the cloud server located in the network, or the configuration file may be displayed on the page to be displayed.
- the mobile terminal temporarily downloads from the cloud server.
- the embodiment of the present invention can be applied to the network architecture shown in FIG. 1 , where the network architecture includes a cloud server and a mobile terminal; and the cloud server includes a configuration file for each mobile terminal to download and use.
- the configuration file in the cloud server is obtained by the cloud server collecting the history information of each user in advance, and analyzing the history information, where the history information includes a page that each user opens on the respective mobile terminal and displays the page. Display mode.
- an embodiment of the present invention provides a method for displaying a page, including:
- Step 201 Extract page parameter information of a page to be displayed from a page to be displayed, where the page parameter information includes at least one of a URL of a page to be displayed, a type of page content, and a page domain name.
- Step 202 Determine a display mode for displaying a page to be displayed according to page parameter information of the page to be displayed.
- Step 203 Display a page to be displayed according to the determined display mode.
- the display mode accuracy is improved according to the page parameter information of the page to be displayed. Reduce the number of misoperations that occur.
- an embodiment of the present invention provides a method for displaying a page, including:
- Step 301 The mobile terminal acquires a page to be displayed.
- the mobile terminal obtains the URL of the page to be displayed input by the user, and determines whether the mobile terminal locally caches the page to be displayed according to the URL of the page to be displayed. If the page to be displayed is cached, the page to be displayed locally cached by the mobile terminal is obtained, if not When the page to be displayed is cached, the page to be displayed is downloaded from the network according to the URL of the page to be displayed.
- the page to be displayed is the page that the user needs to open and display.
- the user can input the URL of the page to be displayed to the mobile terminal in the following situations, including:
- the first type to be displayed is a page that the user needs to open in the browser.
- the user can start the browser in the mobile terminal, input the URL of the page to be displayed in the address bar displayed by the browser, and then submit the command to the mobile terminal. , triggering the mobile terminal to read the URL of the page to be displayed from the address bar of the browser.
- the second type of the currently displayed page of the mobile terminal includes a hyperlink of the page to be displayed, where the hyperlink includes a URL of the page to be displayed, and the user may click a hyperlink of the page to be displayed in the page currently displayed by the mobile terminal;
- the URL of the page to be displayed is extracted from the hyperlink of the page to be displayed when a click operation of the hyperlink to the displayed page is detected.
- the currently displayed page of the mobile terminal may be a navigation page opened by the mobile terminal through a browser or a page such as a homepage of the website.
- the navigation page includes hyperlinks of pages of different types of websites, and the homepage of the website includes hyperlinks of different pages in the website.
- the page currently displayed by the mobile terminal can also be the homepage of the application, such as a news application. When the news application is launched, the news application displays the home page, which includes hyperlinks of different news pages.
- the third page to be displayed is a page opened by the user history, and the history file in the mobile terminal includes a URL of the page to be displayed; the user can open the history file in the mobile terminal, and find the to-be-displayed in the history file.
- the URL of the page and clicking the URL of the page to be displayed; the mobile terminal obtains the URL of the page to be displayed that the user clicks from the history.
- the user may also input the URL of the page to be displayed to the mobile terminal in another one or more cases, where I will not list them one by one.
- Step 302 Extract page parameter information of the page to be displayed from the page to be displayed, where the page parameter information includes a URL of the page to be displayed, a page domain name, and a type of the page content.
- the mobile terminal may extract page parameter information of the page to be displayed in the following manners, including:
- the mobile terminal extracts the URL of the page to be displayed from the page to be displayed.
- the address bar of the page to be displayed includes the URL of the page to be displayed.
- the mobile terminal can locate the address bar of the page to be displayed in the page to be displayed, and then extract the URL of the page to be displayed from the address column of the page to be displayed.
- the mobile terminal extracts the page domain name of the page to be displayed from the URL of the page to be displayed.
- the URL of the page is usually composed of multiple parts, including the protocol header, the page domain name of the page, and the storage path of the page in the corresponding website of the page domain name.
- the protocol header is located before the page domain name
- the page domain name is Located before the storage path of the page and the page domain name and the storage path of the page are separated by "/".
- the URL includes the protocol header "http://” and the domain name "news.sohu.com”, the domain name "news”
- the corresponding website of .sohu.com” is “Sohu News”
- the URL also includes the storage path "s2016/quanguolianghui” of the page in the "Sohu News” website.
- the detailed process of the mobile terminal extracting the page domain name of the page to be displayed may be:
- the mobile terminal removes the protocol header from the URL of the page to be displayed to obtain the first URL, and analyzes the characters included in the first URL one by one from the first character included in the first URL, when the character “/” is first analyzed.
- the string preceding the character "/" is extracted from the first URL, and the extracted string is the page domain name of the page to be displayed.
- the mobile terminal extracts a preset keyword from the URL of the page to be displayed, and determines the type of the page content of the page to be displayed according to the preset keyword.
- the URL of some pages includes a preset keyword, and the preset keyword can reflect the type of page content of the page.
- the URL of some pages includes a preset keyword of “JPG” or “PDF”, and the preset keyword “JPG” or “PDF” can reflect that the type of the page content of the page is a picture type.
- the URL of some pages includes a preset keyword of “TXT”, and the preset keyword “TXT” can reflect that the type of the page content of the page is a text type.
- the mobile terminal includes a keyword set, the keyword set includes at least one preset keyword, and the type of the page content reflected by the preset keyword in the keyword set is a type of the page content of the page displayed in the first display mode.
- the keyword included in the keyword set in the mobile terminal may be set by the user in advance, or may be downloaded by the mobile terminal from the cloud server in advance.
- the operation of the mobile terminal to extract the preset keyword may be: the mobile terminal checks whether the URL of the page to be displayed includes a preset keyword in the keyword set, and if so, extracts the preset keyword.
- the page content of the picture type for example, like a comic, the page content of the page of the picture type is usually displayed in a horizontal screen, so that the details of the page content of the picture type can be more clearly displayed, so if the first The display mode is a horizontal screen display, and keywords such as "JPG" and "PDF" included in the keyword set are used to allow the mobile terminal to display the page content of the picture type in a horizontal screen in a subsequent step.
- Step 303 Match page parameter information of the page to be displayed with page information in the information set, where the information set includes page parameter information for displaying the page in the first display mode.
- the page parameter information is compared with each page parameter information in the information set, and if the page parameter information and a certain page parameter in the information set are compared If the information is the same, the page parameter information including the page to be displayed in the information set is matched; if each page parameter information of the page to be displayed is compared with each page parameter information in the information set, the information may be considered as the information.
- the page parameter information of the page to be displayed is not included in the collection.
- the information set may be stored in the mobile terminal in advance, or the mobile terminal temporarily downloads from the cloud server before performing the step.
- the information set stored in advance in the mobile terminal may be previously set by the user, or the mobile terminal may be downloaded from the cloud server in advance and stored locally in the mobile terminal.
- the mobile terminal When the user displays the page using the mobile terminal, if the mobile terminal is required to display the page in the first display mode, the user can manually set the current display mode of the mobile terminal to the first display mode.
- the mobile terminal displays the page according to the first display mode, and extracts page parameter information from the page, and stores the extracted page parameter information in the information set.
- the detailed process of extracting the page parameter information from the page is the same as the detailed process of extracting the page parameter information of the page to be displayed from the page to be displayed. For details, refer to the related content in step 302, and details are not described herein again. .
- the information set stores the page parameter information of the page in the first display mode in the form of a configuration file in the cloud server.
- the configuration file may be obtained by the cloud server based on the large number analysis.
- the cloud server may collect history information of each user, where the history information includes a page opened by each user and a display mode for displaying the page, and then the The history information is analyzed by large numbers to obtain the configuration file.
- the mobile terminal can report the page to the cloud server and display the display mode of the page; the cloud server receives the page and displays the display mode of the page, and then The page and the display mode for displaying the page are stored in the user's history file to collect the history information of the user.
- the detailed process of the cloud server performing big data analysis on the history information of each user may be:
- the cloud server extracts the pages opened by each user from the history information of each user and plays The display mode of each page is opened; for each page that is opened, the cloud server counts the total number of users who open the page and the number of first users who display the page in the first display mode, and calculates the number of first users and the total number of users. If the ratio exceeds the preset ratio, the cloud server extracts page parameter information of the page from the page, and stores the extracted page parameter information in the information set.
- the detailed process of extracting the page parameter information from the page by the cloud server is the same as the detailed process of extracting the page parameter information of the page to be displayed by the mobile terminal from the page to be displayed. For details, refer to the related content in step 302, and no longer Detailed description.
- Step 304 If the page parameter information including the page to be displayed in the information set is matched, determining that the display mode for displaying the page to be displayed is the first display mode.
- Step 305 If the page parameter information of the page to be displayed is not included in the information set, determine that the display mode for displaying the page to be displayed is the second display mode.
- the display mode of the mobile terminal includes the first display mode and the second display mode
- the first display mode is a horizontal display
- the second display mode is a vertical display
- the first display mode is a vertical display
- the second display mode is a horizontal screen display. Therefore, in this step, matching the page parameter information that does not include the page to be displayed in the information set indicates that the page to be displayed is not displayed in the first display mode, and thus the display mode for displaying the page to be displayed may be determined to be the first Two display modes.
- Step 306 Display the page to be displayed according to the determined display mode.
- the mobile terminal sets its own display mode to the determined display mode, and then displays the page to be displayed in the determined display mode.
- the page parameter information is extracted from the page to be displayed, and the page parameter information is matched with the page parameter information in the information set, and if the information set includes Displaying page parameter information of the page, determining that the display mode for displaying the page to be displayed is the first display mode, if the information set is matched
- the page parameter information of the page to be displayed is not included, and the display mode for displaying the page to be displayed is determined to be the second display mode, so that not only the automatic setting display mode is implemented, but also the display mode accuracy is improved according to the page parameter information of the page to be displayed. , reducing the number of misoperations.
- an embodiment of the present invention provides an apparatus for displaying a page, where the apparatus includes:
- the extraction module 401 is configured to extract page parameter information of the page to be displayed from the page to be displayed, where the page parameter information includes at least a uniform resource locator URL of the page to be displayed, a type of the page content, and a page domain name.
- the page parameter information includes at least a uniform resource locator URL of the page to be displayed, a type of the page content, and a page domain name.
- the determining module 402 is configured to determine, according to the page parameter information of the page to be displayed, a display mode for displaying the page to be displayed;
- the display module 403 is configured to display the page to be displayed according to the determined display mode.
- the extracting module 401 includes:
- a first extracting unit configured to extract a URL of the page to be displayed from the to-be-displayed page
- a second extracting unit configured to extract a page domain name of the page to be displayed from a URL of the page to be displayed;
- the third extracting unit is configured to extract a preset keyword from the URL of the page to be displayed, and determine a type of the page content of the page to be displayed according to the preset keyword.
- the determining module 402 includes:
- a matching unit configured to match page parameter information of the page to be displayed with page parameter information included in the information set, where the information set includes page parameter information of the page displayed in the first display mode;
- a first determining unit configured to determine, if the page parameter information of the page to be displayed is included in the information set, a display mode for displaying the page to be displayed as a first display mode
- the second determining unit is configured to determine, if the information set does not include the page parameter information of the page to be displayed, the display mode for displaying the page to be displayed is the second display mode.
- the apparatus further includes:
- the obtaining module is configured to acquire the information set before matching the page parameter information and the information set of the page to be displayed.
- the acquiring module includes:
- An obtaining unit configured to acquire a page configured by the user in the first display mode, extract page parameter information from the acquired page, and form an information set;
- a downloading unit configured to download the information set from the cloud server, where the information set is obtained by the cloud server collecting historical record information of each user and analyzing the historical record information, where the historical record information includes A page opened by each user and a display mode in which the page is displayed.
- the information set is a configuration file or a database.
- the first display mode is a horizontal screen display, and the second display mode is a vertical screen display; or the first display mode is a vertical screen display, and the second display mode is a horizontal screen display.
- the page parameter information is extracted from the page to be displayed, and the page parameter information is matched with the page parameter information in the information set, and if the information set includes Displaying the page parameter information of the page, determining that the display mode for displaying the page to be displayed is the first display mode, and if the page parameter information of the page to be displayed is not included in the information set, determining to display the page to be displayed
- the display mode is the second display mode, so that not only the automatic setting display mode is realized, but also the accuracy of the display mode is improved according to the page parameter information of the page to be displayed, and the number of occurrences of the erroneous operation is reduced.
- an embodiment of the present invention provides a mobile terminal 500, and a node of the mobile terminal 500.
- the configuration may be a terminal structure as shown in FIG. 5.
- the mobile terminal 500 may be a mobile phone or a tablet computer or a vehicle-mounted terminal, etc., and includes at least a transceiver 501, a processor 502 including one or more processing cores, and a A memory 503 of one or more computer readable storage media.
- the processor 502 can be used to perform the method of displaying a page provided by any of the above embodiments. It should be noted that the mobile terminal 500 may include other components in addition to the above three components, and the processor 502, the memory 503, and the transceiver 501 may have other functions in addition to the functions described above.
- the mobile terminal 500 may further include an input unit 504, a display unit 505, a sensor 506, an audio circuit 507, and a wireless fidelity (WiFi) module 508.
- WiFi wireless fidelity
- the transceiver 501 can also be used for receiving and transmitting signals during the transmission and reception of information or during a call, in particular, after receiving the downlink information of the base station, and processing it by one or more processors 502; The data is sent to the base station.
- the transceiver 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc.
- SIM Subscriber Identity Module
- the transceiver 501 can also communicate with the network and other devices via wireless communication.
- the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (CDMA). , Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
- GSM Global System of Mobile communication
- GPRS General Packet Radio Service
- CDMA Code Division Multiple Access
- WCDMA Wideband Code Division Multiple Access
- LTE Long Term Evolution
- SMS Short Messaging Service
- the memory 503 can also be used to store software programs and modules, and the processor 502 can execute various functional applications and data processing by running software programs and modules stored in the memory 503.
- the memory 503 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the mobile terminal 500 (such as audio data, phone book, etc.) and the like.
- the memory 503 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 503 can also include a memory controller to provide access to memory 503 by processor 502 and input unit 504.
- the input unit 504 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
- input unit 504 can include touch-sensitive surface 541 as well as other input devices 542.
- a touch-sensitive surface 541, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any suitable object or accessory on the touch-sensitive surface 541 or The operation near the touch-sensitive surface 541) and driving the corresponding connecting device according to a preset program.
- the touch-sensitive surface 541 may include two parts of a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 502 is provided and can receive commands from the processor 502 and execute them.
- the touch sensitive surface 541 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 504 can also include other input devices 542.
- other input devices 542 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 505 can be used to display information input by the user or information provided to the user and Various graphical user interfaces of the mobile terminal 500, these graphical user interfaces may be comprised of graphics, text, icons, video, and any combination thereof.
- the display unit 505 can include a display panel 551.
- the display panel 551 can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. .
- touch-sensitive surface 541 can cover the display panel 551, and when the touch-sensitive surface 541 detects a touch operation thereon or nearby, it is transmitted to the processor 502 to determine the type of the touch event, and then the processor 502 according to the touch event The type provides a corresponding visual output on display panel 551.
- touch-sensitive surface 541 and display panel 551 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 541 can be integrated with display panel 551 for input. And output function.
- Mobile terminal 500 includes at least one type of sensor 506, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 551 according to the brightness of the ambient light, and the proximity sensor may close the display panel 551 when the mobile terminal 500 moves to the ear. And / or backlight.
- the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- the mobile terminal 500 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
- the audio circuit 507 includes a speaker 571 and a microphone 572 that provides an audio interface between the user and the mobile terminal 500.
- the audio circuit 507 can transmit the converted electrical data of the received audio data to the speaker 571, and convert it into a sound signal output by the speaker 571; on the other hand, the microphone 572 converts the collected sound signal into an electrical signal, and the audio circuit 507 After receiving, it is converted into audio data, and then processed by the audio data output processor 502, sent to the terminal, for example, via the transceiver 501, or output audio data to the memory 503 for further processing.
- the audio circuit 507 may also include an earbud jack to provide communication of the peripheral earphones with the mobile terminal 500.
- WiFi is a short-range wireless transmission technology
- the mobile terminal 500 can help users to send and receive emails, browse pages, and access streaming media through the WiFi module 508, which provides wireless broadband Internet access for users.
- FIG. 5 shows the WiFi module 508, it can be understood that it does not belong to the essential configuration of the mobile terminal 500, and may be omitted as needed within the scope of not changing the essence of the invention.
- Processor 502 is the control center of mobile terminal 500, which connects various portions of the entire terminal using various interfaces and lines, by running or executing software programs and/or modules stored in memory 503, and recalling data stored in memory 503.
- the various functions and processing data of the mobile terminal 500 are performed to perform overall monitoring of the mobile terminal 500.
- the processor 502 can integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like, and the modem processor mainly processes the wireless. Communication. It can be understood that the above modem processor may not be integrated into the processor 502.
- the mobile terminal 500 further includes a power source 509 (such as a battery) for supplying power to various components.
- a power source 509 (such as a battery) for supplying power to various components.
- the power source 509 can be logically connected to the processor 502 through a power management system to manage charging, discharging, and power management through the power management system.
- the power supply 509 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
- the mobile terminal 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
- the processor 502 of the mobile terminal 500 may also have the following functions:
- the processor 502 is configured to extract page parameter information of the page to be displayed from the page to be displayed, where the page parameter information includes a uniform resource locator URL of the page to be displayed, a type of the page content, and a page domain name. Determining, according to the page parameter information of the page to be displayed, a display mode for displaying the page to be displayed; The page to be displayed is displayed.
- the process 502 may extract page parameter information of the page to be displayed from the page to be displayed, as follows:
- the processor 502 may determine, according to the page parameter information of the page to be displayed, a display mode for displaying the page to be displayed, including:
- the page parameter information of the page to be displayed is included in the information set, determining that the display mode for displaying the page to be displayed is the first display mode;
- the display mode for displaying the page to be displayed is the second display mode.
- the processor 502 is further configured to acquire the information set before matching the page parameter information and the information set of the page to be displayed.
- the processor 502 may obtain the information set as follows, including:
- the information set is a configuration file or a database.
- the first display mode is a horizontal screen display, and the second display mode is a vertical screen display; or the first display mode is a vertical screen display, and the second display mode is a horizontal screen display.
- the page parameter information is extracted from the page to be displayed, and the page parameter information is matched with the page parameter information in the information set, and if the information set includes Displaying the page parameter information of the page, determining that the display mode for displaying the page to be displayed is the first display mode, and if the page parameter information of the page to be displayed is not included in the information set, determining to display the page to be displayed
- the display mode is the second display mode, so that not only the automatic setting display mode is realized, but also the accuracy of the display mode is improved according to the page parameter information of the page to be displayed, and the number of occurrences of the erroneous operation is reduced.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the foregoing method for displaying a page.
- a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
- the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
- the display mode can be automatically set, the time for the user to operate and the display mode is reduced, and the page to be displayed is also displayed.
- Page parameter information is raised to determine the display mode Accuracy, reducing the number of misoperations.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种显示页面的方法及装置、计算机存储介质,属于互联网通信领域。所述方法包括:从待显示页面中提取所述待显示页面的页面参数信息,所述页面参数信息包括所述待显示页面的统一资源定位符URL、页面内容的类型和页面域名中的至少一项;根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式;根据所述确定的显示模式显示所述待显示页面。所述装置包括:提取模块、确定模块和显示模块。
Description
本发明涉及互联网通信领域,特别涉及一种显示页面的方法及装置、计算机存储介质。
移动终端的显示模式包括横屏显示和竖屏显示两种模式,在用户使用移动终端浏览不同页面或用户在不同姿势下使用移动终端浏览页面时,移动终端可以调整显示模式来显示页面,以方便用户浏览。
目前移动终端显示页面的方式有两种,第一种是移动终端自动设置显示模式来显示页面。在使用第一种方式时,移动终端当检测到其横着摆放时,就以横屏显示来显示页面;当检测到其竖着摆放时,就以竖屏显示来显示页面。第二种方式是用户手动设置移动终端以横屏显示或竖屏显示来显示页面。
对于上述第一种自动设置方式,很容易产生误操作;对于上述第二种手动设置方式,每次手动设置显示方式都比较耗时,且增加用户操作。
发明内容
为了实现自动设置显示方式且减少误操作,本发明实施例提供了显示页面的方法及装置、计算机存储介质。所述技术方案如下:
一方面,提供了一种显示页面的方法,所述方法包括:
从待显示页面中提取所述待显示页面的页面参数信息,所述页面参数信息包括所述待显示页面的统一资源定位符(URL,Uniform Resource Locator)、页面内容的类型和页面域名中的至少一项;
根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式;
根据所述确定的显示模式显示所述待显示页面。
另一方面,提供了一种显示页面的装置,所述装置包括:
提取模块,配置为从待显示页面中提取所述待显示页面的页面参数信息,所述页面参数信息包括所述待显示页面的统一资源定位符URL、页面内容的类型和页面域名中的至少一项;
确定模块,配置为根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式;
显示模块,配置为根据所述确定的显示模式显示所述待显示页面。
所述提取模块、所述确定模块、所述显示模块在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述的显示页面的方法。
在本发明实施例中,通过将待显示页面的页面参数信息确定用于显示待显示页面的显示模式,可以实现自动设置显示模式,减少了用户操作和设置显示模式的时间,还根据待显示页面的页面参数信息提高确定显示模式准确性,减少了误操作发生的次数。
图1是本发明实施例提供的一种网络架构图;
图2是本发明实施例提供的一种显示页面的方法流程图;
图3是本发明实施例提供的另一种显示页面的方法流程图;
图4是本发明实施例提供的一种显示页面的装置结构示意图;
图5是本发明实施例提供的一种移动终端结构示意图。
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
本发明实施例提供了一种显示页面的方法,该方法应用的场景可以为在用户使用移动终端浏览待显示页面时,移动终端设置以横屏显示待显示页面或以竖屏显示待显示页面,该方法可以运行于浏览器或具有浏览器功能的应用中。当然,该方法除了应用于该场景外,还可以应用于其他一种或多种场景,在此就不一一列举。
在本发明实施例一实施方式中,移动终端在显示待显示页面时,可以根据待显示页面的页面参数确定用于显示待显示页面的显示模式,然后以确定的显示模式来显示待显示页面。
在本发明实施例一实施方式中,移动终端确定用于显示待显示页面的显示模式的详细操作可以为:移动终端可以获取信息集合,该信息集合包括以第一显示模式显示的页面的页面参数信息;将待显示页面的页面参数信息与该信息集合中的页面参数信息进行匹配,如果匹配出该信息集合中包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第一显示模式;如果匹配出该信息集合不包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第二显示模式;其中,第一显示模式可以为横屏显示,第二显示模式可以为竖屏显示;或者,第一显示模式可以为竖屏显示,第二显示模式可以为横屏显示。
在本发明实施例一实施方式中,该信息集合具体可以为一个配置文件
或数据库,该配置文件或数据库可以事先存储在移动终端中,或者,该配置文件可以由移动终端事先从位于网络的云端服务器中下载并存储在本地,或者,该配置文件可以在显示待显示页面时由移动终端临时从云端服务器中下载。
相应的,本发明实施例可以应用于如图1所示的网络架构,该网络架构包括云端服务器和移动终端;云端服务器中包括配置文件,供各移动终端下载并使用。云端服务器中的配置文件是云端服务器事先收集各用户的历史记录信息,并对该历史记录信息进行分析得到的,该历史记录信息包括各用户在各自的移动终端上打开显示的页面及显示该页面的显示模式。
上述只是简略描述了移动终端显示页面的方法,该方法的详细过程将在如下任一实施例中进行详细描述。
实施例
参见图2,本发明实施例提供了一种显示页面的方法,包括:
步骤201:从待显示页面中提取待显示页面的页面参数信息,该页面参数信息包括待显示页面的URL、页面内容的类型和页面域名中的至少一项。
步骤202:根据待显示页面的页面参数信息,确定用于显示待显示页面的显示模式。
步骤203:根据确定的显示模式显示待显示页面。
在本发明实施例中,通过将待显示页面的页面参数信息确定用于显示待显示页面的显示模式,不仅实现自动设置显示模式,还根据待显示页面的页面参数信息提高确定显示模式准确性,减少了误操作发生的次数。
实施例
参见图3,本发明实施例提供了一种显示页面的方法,包括:
步骤301:移动终端获取待显示页面。
具体地,移动终端获取用户输入的待显示页面的URL,根据待显示页面的URL判断移动终端本地是否缓存有待显示页面,如果缓存有待显示页面,则获取移动终端本地缓存的待显示页面,如果未缓存有待显示页面,则根据待显示页面的URL从网络中下载待显示页面。
待显示页面是用户需要打开并显示的页面。用户可以在以下几种情况下向移动终端输入待显示页面的URL,包括:
第一种、待显示页面是用户需要在浏览器中打开的页面,用户可以在移动终端中启动浏览器,在该浏览器显示的地址栏中输入待显示页面的URL,然后向移动终端提交命令,触发移动终端从该浏览器的地址栏中读取待显示页面的URL。
第二种、移动终端当前显示的页面中包括待显示页面的超链接,该超链接中包括待显示页面的URL,用户可以在移动终端当前显示的页面中点击待显示页面的超链接;移动终端当检测到对待显示页面的超链接的点击操作时从待显示页面的超链接中提取待显示页面的URL。
移动终端当前显示的页面可以为移动终端通过浏览器打开的导航页面或网站的首页等页面,导航页面中包括不同类型网站的页面的超链接,网站的首页中包括网站中的不同页面的超链接。移动终端当前显示的页面还可以为应用的首页,例如新闻类应用,当新闻类应用启动后新闻类应用会显示首页,该首面中包括不同新闻页面的超链接。
第三种、待显示页面是用户历史打开的页面且移动终端中的历史记录文件中包括待显示页面的URL;用户可以在移动终端中打开该历史记录文件,在该历史记录文件中找到待显示页面的URL,并点击该待显示页面的URL;移动终端从该历史记录中获取用户点击的待显示页面的URL。
用户除了在上述三种情况下向移动终端输入待显示页面的URL外,还可能在其他一种或多种情况下也向移动终端输入待显示页面的URL,在此
就不再一一列举。
步骤302:从待显示页面中提取待显示页面的页面参数信息,该页面参数信息包括待显示页面的URL、页面域名和页面内容的类型。
在本发明实施例一实施方式中,移动终端可以通过如下几种方式提取待显示页面的页面参数信息,包括:
移动终端从待显示页面中提取待显示页面的URL。
待显示页面的地址栏中包括待显示页面的URL。相应的,移动终端可以在待显示页面中定位出待显示页面的地址栏,然后从待显示页面的地址栏中提取待显示页面的URL。
第二、移动终端从待显示页面的URL中提取待显示页面的页面域名。
其中,页面的URL通常由多部分组成,其中就包括协议头、该页面的页面域名和该页面在该页面域名对应网站中的存储路径,在页面的URL中协议头位于页面域名之前,页面域名位于页面的存储路径之前且页面域名和页面的存储路径之间用“/”隔开。例如,假设存在一个页面的URL为“http://news.sohu.com/s2016/quanguolianghui/”,该URL包括协议头“http://”和域名“news.sohu.com”,域名“news.sohu.com”对应的网站为“搜狐新闻”,该URL还包括该页面在“搜狐新闻”网站中的存储路径“s2016/quanguolianghui”。
相应的,移动终端提取待显示页面的页面域名的详细过程,可以为:
移动终端从待显示页页的URL中去除协议头得到第一URL,从第一URL包括的第一个字符开始对第一URL包括的字符进行逐个逐个分析,当首次分析出字符“/”时,从第一URL中提取位于字符“/”之前的字符串,提取的字符串即为待显示页面的页面域名。
第三、移动终端从待显示页面的URL中提取预设关键词,根据预设关键词确定待显示页面的页面内容的类型。
其中,某些页面的URL中包括预设关键词,该预设关键词可以反应该页面的页面内容的类型。例如,某些页面的URL中包括预设关键词为“JPG”或“PDF”等,预设关键词“JPG”或“PDF”可以反应出该页面的页面内容的类型为图片类型。再如,某些页面的URL中包括预设关键词为“TXT”等,预设关键词“TXT”可以反应出该页面的页面内容的类型为文本类型。
移动终端中包括关键词集合,该关键词集合包括至少一个预设关键词,关键词集合中的预设关键词所反应的页面内容的类型都是以第一显示模式显示页面的页面内容的类型。移动终端中的关键词集合包括的关键词可以是用户事先设置的,也可以是移动终端事先从云端服务器下载的。
相应的,移动终端提取预设关键词的操作可以为:移动终端检查待显示页面的URL中是否包括关键词集合中的预设关键词,如果包括,则提取该预设关键词。
其中,需要说明的是:对于图片类型的页面内容,例如像漫画,通常使用横屏显示图片类型的页面的页面内容,这样能够更清楚地显示出图片类型的页面内容的细节,所以如果第一显示模式为横屏显示,该关键词集合中包括的“JPG”和“PDF”等关键词,以让移动终端在后续步骤中以横屏显示图片类型的页面内容。
步骤303:将待显示页面的页面参数信息与信息集合中的页面信息匹配,该信息集合包括以第一显示模式显示页面的页面参数信息。
具体地,对于待显示页面的每个页面参数信息,将该页面参数信息分别与信息集合中的每个页面参数信息进行比较,如果比较出该页面参数信息与该信息集合中的某个页面参数信息相同,则匹配出该信息集合中包括待显示页面的页面参数信息;如果比较出待显示页面的每个页面参数信息都与该信息集合中的每个页面参数信息不同,则可以认为该信息集合中不包括待显示页面的页面参数信息。
其中,该信息集合可以事先存储在移动终端中,或者,是移动终端在执行本步骤之前临时从云端服务器下载。
在本发明实施例一实施方式中,移动终端中事先存储的该信息集合可以是用户事先设置的,或是移动终端事先从云端服务器中下载的并存储在移动终端本地。
其中,用户事先设置该信息集合的详细过程可以为:
用户在使用移动终端显示页面时,如果需要移动终端以第一显示模式显示该页面时,用户可以手动将移动终端当前的显示模式设置为第一显示模式。在用户设置完成时移动终端根据第一显示模式显示该页面,并且从该页面中提取页面参数信息,将该提取的页面参数信息存储在信息集合中。
其中,移动终端从该页面中提取页面参数信息的详细过程与从待显示页面中提取待显示页面的页面参数信息的详细过程相同,详细描述参见步骤302中的相关内容,在此不再详细说明。
在本发明实施例一实施方式中,在云端服务器中该信息集合以配置文件的形式存储以第一显示模式显示页面的页面参数信息。该配置文件可以是云端服务器基于大数分析得到的,具体实现时,云端服务器可以收集各用户的历史记录信息,该历史记录信息包括各用户打开的页面和显示该页面的显示模式,然后对该历史记录信息进行大数分析得到该配置文件。
其中,对任一用户,当该用户使用移动终端打开页面时,移动终端可以向云端服务器上报该页面和显示该页面的显示模式;云端服务器接收该页面和显示该页面的显示模式,然后将该页面和显示该页面的显示模式存储在该用户的历史记录文件中,以实现收集用户的历史记录信息。
在本发明实施例一实施方式中,云端服务器在对各用户的历史记录信息进行大数据分析的详细过程可以为:
云端服务器从各用户的历史记录信息中提取各用户打开的页面以及打
开各页面的显示模式;对于打开的每个页面,云端服务器统计出打开该页面的总用户数目和以第一显示模式显示该页面的第一用户数目,计算第一用户数目与该总用户数目之间的比值;如果该比值超过预设比值,则云端服务器从页面中提取该页面的页面参数信息,将提取的页面参数信息存储在信息集合中。
其中,云端服务器从该页面中提取页面参数信息的详细过程与移动终端从待显示页面中提取待显示页面的页面参数信息的详细过程相同,详细描述参见步骤302中的相关内容,在此不再详细说明。
步骤304:如果匹配出该信息集合中包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第一显示模式。
步骤305:如果匹配出该信息集合中不包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第二显示模式。
由于移动终端的显示模式包括第一显示模式和第二显示模式两种,当第一显示模式为横屏显示时,第二显示模式为竖屏显示;当第一显示模式为竖屏显示时,第二显示模式为横屏显示。所以在本步骤中,匹配出该信息集合中不包括待显示页面的页面参数信息,则表示不以第一显示模式来显示待显示页面,因而可以确定用于显示待显示页面的显示模式为第二显示模式。
步骤306:根据确定的显示模式显示待显示页面。
具体地,移动终端将自身的显示模式设置为确定的显示模式,然后以确定的显示模式显示待显示页面。
在本发明实施例中,移动终端获取到待显示页面时从待显示页面中提取页面参数信息,将该页面参数信息与信息集合中的页面参数信息进行匹配,如果匹配出该信息集合中包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第一显示模式,如果匹配出该信息集合中
不包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第二显示模式,这样不仅实现自动设置显示模式,还根据待显示页面的页面参数信息提高确定显示模式准确性,减少了误操作发生的次数。
实施例
参见图4,本发明实施例提供了一种显示页面的装置,所述装置包括:
提取模块401,配置为从待显示页面中提取所述待显示页面的页面参数信息,所述页面参数信息包括所述待显示页面的统一资源定位符URL、页面内容的类型和页面域名中的至少一项;
确定模块402,配置为根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式;
显示模块403,配置为根据所述确定的显示模式显示所述待显示页面。
在本发明实施例一实施方式中,所述提取模块401包括:
第一提取单元,配置为从所述待显示页面中提取所述待显示页面的URL;和/或,
第二提取单元,配置为从所述待显示页面的URL中提取所述待显示页面的页面域名;和/或,
第三提取单元,配置为从所述待显示页面的URL中提取预设关键词,根据所述预设关键词确定所述待显示页面的页面内容的类型。
在本发明实施例一实施方式中,所述确定模块402包括:
匹配单元,配置为将所述待显示页面的页面参数信息与信息集合中包括的页面参数信息进行匹配,所述信息集合包括以第一显示模式显示的页面的页面参数信息;
第一确定单元,配置为如果匹配出所述信息集合中包括所述待显示页面的页面参数信息,则确定用于显示所述待显示页面的显示模式为第一显示模式;
第二确定单元,配置为如果匹配出所述信息集合不包括所述待显示页面的页面参数信息,则确定用于显示所述待显示页面的显示模式为第二显示模式。
在本发明实施例一实施方式中,所述装置还包括:
获取模块,配置为在匹配所述待显示页面的页面参数信息与信息集合之前获取所述信息集合。
在本发明实施例一实施方式中,所述获取模块包括:
获取单元,配置为获取用户配置的以所述第一显示模式显示的页面,从所述获取的页面中提取页面参数信息并组成信息集合;或者,
下载单元,配置为从云端服务器中下载所述信息集合,所述信息集合是所述云端服务器收集各用户的历史记录信息并对所述历史记录信息进行分析得到的,所述历史记录信息包括所述各用户打开的页面以及显示所述页面的显示模式。
其中,所述信息集合为配置文件或数据库。
其中,所述第一显示模式为横屏显示,所述第二显示模式为竖屏显示;或者,所述第一显示模式为竖屏显示,所述第二显示模式为横屏显示。
在本发明实施例中,移动终端获取到待显示页面时从待显示页面中提取页面参数信息,将该页面参数信息与信息集合中的页面参数信息进行匹配,如果匹配出该信息集合中包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第一显示模式,如果匹配出该信息集合中不包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第二显示模式,这样不仅实现自动设置显示模式,还根据待显示页面的页面参数信息提高确定显示模式准确性,减少了误操作发生的次数。
实施例
参见图5,本发明实施例提供了一种移动终端500,该移动终端500的结
构可以为如图5所示的终端结构,该移动终端500可以为手机或平板电脑或车载终端等,至少包括收发器501、包括有一个或者一个以上处理核心的处理器502和包括有一个或一个以上计算机可读存储介质的存储器503。
处理器502可以用于执行上述任一实施例提供的显示页面的方法。需要说明的是:移动终端500除了包括上述三个部件外,还可以包括其他部件,以及处理器502、存储器503和收发器501具有上述所描述的功能外,还可以包括其他功能。
例如,移动终端500还可以包括输入单元504、显示单元505、传感器506、音频电路507和无线保真(WiFi,wireless fidelity)模块508等部件。需要强调说明的是:本领域技术人员可以理解,图5中示出的终端结构并不构成对移动终端500的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
以及,收发器501还可用于在收发信息或通话过程中进行信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器502处理;另外,将涉及上行的数据发送给基站。通常,收发器501包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、客户识别模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,收发器501还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GSM,Global System of Mobile communication)、通用分组无线服务(GPRS,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。
存储器503还可用于存储软件程序以及模块,处理器502可以通过运行存储在存储器503的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器503可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端500的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器503可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器503还可以包括存储器控制器,以提供处理器502和输入单元504对存储器503的访问。
输入单元504可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元504可包括触敏表面541以及其他输入设备542。触敏表面541,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面541上或在触敏表面541附近的操作),并根据预先设定的程式驱动相应的连接装置。在本发明实施例一实施方式中,触敏表面541可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器502,并能接收处理器502发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面541。除了触敏表面541,输入单元504还可以包括其他输入设备542。具体地,其他输入设备542可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元505可用于显示由用户输入的信息或提供给用户的信息以及
移动终端500的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元505可包括显示面板551,在本发明实施例一实施方式中,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板551。进一步的,触敏表面541可覆盖显示面板551,当触敏表面541检测到在其上或附近的触摸操作后,传送给处理器502以确定触摸事件的类型,随后处理器502根据触摸事件的类型在显示面板551上提供相应的视觉输出。虽然在图5中,触敏表面541与显示面板551是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面541与显示面板551集成而实现输入和输出功能。
移动终端500包括至少一种传感器506,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板551的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板551和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端500还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路507包括扬声器571和传声器572,扬声器571和传声器572可提供用户与移动终端500之间的音频接口。音频电路507可将接收到的音频数据转换后的电信号,传输到扬声器571,由扬声器571转换为声音信号输出;另一方面,传声器572将收集的声音信号转换为电信号,由音频电路507接收后转换为音频数据,再将音频数据输出处理器502处理后,经收发器501以发送给比如另一终端,或者将音频数据输出至存储器503以便进一步处
理。音频电路507还可能包括耳塞插孔,以提供外设耳机与移动终端500的通信。
WiFi属于短距离无线传输技术,移动终端500通过WiFi模块508可以帮助用户收发电子邮件、浏览页面和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块508,但是可以理解的是,其并不属于移动终端500的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器502是移动终端500的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器503内的软件程序和/或模块,以及调用存储在存储器503内的数据,执行移动终端500的各种功能和处理数据,从而对移动终端500进行整体监控。在本发明实施例一实施方式中,处理器502可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器502中。
移动终端500还包括给各个部件供电的电源509(比如电池),优选的,电源509可以通过电源管理系统与处理器502逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源509还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,移动终端500还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端500的处理器502还可以具有如下功能:
所述处理器502,用于从待显示页面中提取所述待显示页面的页面参数信息,所述页面参数信息包括所述待显示页面的统一资源定位符URL、页面内容的类型和页面域名中的至少一项;根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式;根据所述确定的显示模
式显示所述待显示页面。
在本发明实施例一实施方式中,所述处理502可以按如下方式从待显示页面中提取所述待显示页面的页面参数信息,包括:
从所述待显示页面中提取所述待显示页面的URL;和/或,
从所述待显示页面的URL中提取所述待显示页面的页面域名;和/或,
从所述待显示页面的URL中提取预设关键词,根据所述预设关键词确定所述待显示页面的页面内容的类型。
在本发明实施例一实施方式中,所述处理器502可以按如下方式根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式,包括:
将所述待显示页面的页面参数信息与信息集合中包括的页面参数信息进行匹配,所述信息集合包括以第一显示模式显示的页面的页面参数信息;
如果匹配出所述信息集合中包括所述待显示页面的页面参数信息,则确定用于显示所述待显示页面的显示模式为第一显示模式;
如果匹配出所述信息集合不包括所述待显示页面的页面参数信息,则确定用于显示所述待显示页面的显示模式为第二显示模式。
在本发明实施例一实施方式中,所述处理器502,还用于在匹配所述待显示页面的页面参数信息与信息集合之前获取所述信息集合。
在本发明实施例一实施方式中,所述处理器502可以按如下方式获取所述信息集合,包括:
获取用户配置的以所述第一显示模式显示的页面,从所述获取的页面中提取页面参数信息并组成信息集合;或者,
从云端服务器中下载所述信息集合,所述信息集合是所述云端服务器收集各用户的历史记录信息并对所述历史记录信息进行分析得到的,所述历史记录信息包括所述各用户打开的页面以及显示所述页面的显示模式。
其中,所述信息集合为配置文件或数据库。
其中,所述第一显示模式为横屏显示,所述第二显示模式为竖屏显示;或者,所述第一显示模式为竖屏显示,所述第二显示模式为横屏显示。
在本发明实施例中,移动终端获取到待显示页面时从待显示页面中提取页面参数信息,将该页面参数信息与信息集合中的页面参数信息进行匹配,如果匹配出该信息集合中包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第一显示模式,如果匹配出该信息集合中不包括待显示页面的页面参数信息,则确定用于显示待显示页面的显示模式为第二显示模式,这样不仅实现自动设置显示模式,还根据待显示页面的页面参数信息提高确定显示模式准确性,减少了误操作发生的次数。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述的显示页面的方法。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
在本发明实施例中,通过将待显示页面的页面参数信息确定用于显示待显示页面的显示模式,可以实现自动设置显示模式,减少了用户操作和设置显示模式的时间,还根据待显示页面的页面参数信息提高确定显示模
式准确性,减少了误操作发生的次数。
Claims (15)
- 一种显示页面的方法,所述方法包括:从待显示页面中提取所述待显示页面的页面参数信息,所述页面参数信息包括所述待显示页面的统一资源定位符URL、页面内容的类型和页面域名中的至少一项;根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式;根据所述确定的显示模式显示所述待显示页面。
- 如权利要求1所述的方法,其中,所述从待显示页面中提取所述待显示页面的页面参数信息,包括:从所述待显示页面中提取所述待显示页面的URL;和/或,从所述待显示页面的URL中提取所述待显示页面的页面域名;和/或,从所述待显示页面的URL中提取预设关键词,根据所述预设关键词确定所述待显示页面的页面内容的类型。
- 如权利要求1所述的方法,其中,所述根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式,包括:将所述待显示页面的页面参数信息与信息集合中包括的页面参数信息进行匹配,所述信息集合包括以第一显示模式显示的页面的页面参数信息;如果匹配出所述信息集合中包括所述待显示页面的页面参数信息,则确定用于显示所述待显示页面的显示模式为第一显示模式;如果匹配出所述信息集合不包括所述待显示页面的页面参数信息,则确定用于显示所述待显示页面的显示模式为第二显示模式。
- 如权利要求3所述的方法,其中,所述方法还包括:在匹配所述待显示页面的页面参数信息与信息集合之前获取所述信息集合。
- 如权利要求4所述的方法,其中,所述获取所述信息集合,包括:获取用户配置的以所述第一显示模式显示的页面,从所述获取的页面中提取页面参数信息并组成信息集合;或者,从云端服务器中下载所述信息集合,所述信息集合是所述云端服务器收集各用户的历史记录信息并对所述历史记录信息进行分析得到的,所述历史记录信息包括所述各用户打开的页面以及显示所述页面的显示模式。
- 如权利要求3至5任一项权利要求所述的方法,其中,所述信息集合为配置文件或数据库。
- 如权利要求3至5任一项权利要求所述的方法,其中,所述第一显示模式为横屏显示,所述第二显示模式为竖屏显示;或者,所述第一显示模式为竖屏显示,所述第二显示模式为横屏显示。
- 一种显示页面的装置,所述装置包括:提取模块,用于从待显示页面中提取所述待显示页面的页面参数信息,所述页面参数信息包括所述待显示页面的统一资源定位符URL、页面内容的类型和页面域名中的至少一项;确定模块,用于根据所述待显示页面的页面参数信息,确定用于显示所述待显示页面的显示模式;显示模块,用于根据所述确定的显示模式显示所述待显示页面。
- 如权利要求8所述的装置,其中,所述提取模块包括:第一提取单元,用于从所述待显示页面中提取所述待显示页面的URL;和/或,第二提取单元,用于从所述待显示页面的URL中提取所述待显示页面的页面域名;和/或,第三提取单元,用于从所述待显示页面的URL中提取预设关键词,根据所述预设关键词确定所述待显示页面的页面内容的类型。
- 如权利要求8所述的装置,其中,所述确定模块包括:匹配单元,用于将所述待显示页面的页面参数信息与信息集合中包括的页面参数信息进行匹配,所述信息集合包括以第一显示模式显示的页面的页面参数信息;第一确定单元,用于如果匹配出所述信息集合中包括所述待显示页面的页面参数信息,则确定用于显示所述待显示页面的显示模式为第一显示模式;第二确定单元,用于如果匹配出所述信息集合不包括所述待显示页面的页面参数信息,则确定用于显示所述待显示页面的显示模式为第二显示模式。
- 如权利要求10所述的装置,其中,所述装置还包括:获取模块,用于在匹配所述待显示页面的页面参数信息与信息集合之前获取所述信息集合。
- 如权利要求11所述的装置,其中,所述获取模块包括:获取单元,用于获取用户配置的以所述第一显示模式显示的页面,从所述获取的页面中提取页面参数信息并组成信息集合;或者,下载单元,用于从云端服务器中下载所述信息集合,所述信息集合是所述云端服务器收集各用户的历史记录信息并对所述历史记录信息进行分析得到的,所述历史记录信息包括所述各用户打开的页面以及显示所述页面的显示模式。
- 如权利要求10至12任一项权利要求所述的装置,其中,所述信息集合为配置文件或数据库。
- 如权利要求10至12任一项权利要求所述的装置,其中,所述第一显示模式为横屏显示,所述第二显示模式为竖屏显示;或者,所述第一显示模式为竖屏显示,所述第二显示模式为横屏显示。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述权利要求1的显示页面的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/038,393 US10956653B2 (en) | 2016-03-23 | 2018-07-18 | Method and apparatus for displaying page and a computer storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610169387.2 | 2016-03-23 | ||
CN201610169387.2A CN107229618B (zh) | 2016-03-23 | 2016-03-23 | 一种显示页面的方法及装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/038,393 Continuation US10956653B2 (en) | 2016-03-23 | 2018-07-18 | Method and apparatus for displaying page and a computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017161994A1 true WO2017161994A1 (zh) | 2017-09-28 |
Family
ID=59899313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/074465 WO2017161994A1 (zh) | 2016-03-23 | 2017-02-22 | 一种显示页面的方法及装置、计算机存储介质 |
Country Status (3)
Country | Link |
---|---|
US (1) | US10956653B2 (zh) |
CN (1) | CN107229618B (zh) |
WO (1) | WO2017161994A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113254016A (zh) * | 2021-05-21 | 2021-08-13 | 四川金熊猫新媒体有限公司 | 界面生成方法、界面信息处理方法、设备及存储介质 |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107734316A (zh) * | 2017-10-26 | 2018-02-23 | 上海青橙实业有限公司 | 竖屏投影方法及终端设备 |
CN109213462B (zh) * | 2018-08-07 | 2021-07-23 | 武汉斗鱼网络科技有限公司 | Android横竖屏数据同步方法、装置、终端及可读介质 |
CN110262844B (zh) * | 2019-04-17 | 2022-10-14 | 创新先进技术有限公司 | 对话框组件调用方法、装置、服务器及存储介质 |
CN111310088B (zh) * | 2020-02-12 | 2023-07-04 | 北京字节跳动网络技术有限公司 | 一种页面渲染方法及装置 |
CN114640871A (zh) * | 2020-12-16 | 2022-06-17 | 深圳Tcl新技术有限公司 | 一种显示模式推荐方法、装置及智能电视 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471990A (zh) * | 2007-12-24 | 2009-07-01 | 英华达(南京)科技有限公司 | 移动通讯装置及其切换网页浏览显示的方法 |
CN103412647A (zh) * | 2013-08-13 | 2013-11-27 | 广东欧珀移动通信有限公司 | 一种人脸识别的页面显示控制方法及移动终端 |
CN103455601A (zh) * | 2013-09-03 | 2013-12-18 | 小米科技有限责任公司 | 一种网页处理方法、装置及终端设备 |
CN103577466A (zh) * | 2012-08-03 | 2014-02-12 | 腾讯科技(深圳)有限公司 | 一种在浏览器中显示网页内容的方法和装置 |
CN106095297A (zh) * | 2016-06-16 | 2016-11-09 | 深圳市金立通信设备有限公司 | 一种页面显示控制方法及终端 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6636648B2 (en) * | 1999-07-02 | 2003-10-21 | Eastman Kodak Company | Albuming method with automatic page layout |
JP4177036B2 (ja) * | 2002-06-19 | 2008-11-05 | 富士通株式会社 | サーバおよびサーバプログラム |
US20090249194A1 (en) * | 2008-03-28 | 2009-10-01 | Michael Day | Method for Converting Electronic Documents |
US9953011B1 (en) * | 2013-09-26 | 2018-04-24 | Amazon Technologies, Inc. | Dynamically paginated user interface |
US9703887B2 (en) * | 2015-08-04 | 2017-07-11 | International Business Machines Corporation | Automatically grouping browser tabs based on a pattern of usage |
-
2016
- 2016-03-23 CN CN201610169387.2A patent/CN107229618B/zh active Active
-
2017
- 2017-02-22 WO PCT/CN2017/074465 patent/WO2017161994A1/zh active Application Filing
-
2018
- 2018-07-18 US US16/038,393 patent/US10956653B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471990A (zh) * | 2007-12-24 | 2009-07-01 | 英华达(南京)科技有限公司 | 移动通讯装置及其切换网页浏览显示的方法 |
CN103577466A (zh) * | 2012-08-03 | 2014-02-12 | 腾讯科技(深圳)有限公司 | 一种在浏览器中显示网页内容的方法和装置 |
CN103412647A (zh) * | 2013-08-13 | 2013-11-27 | 广东欧珀移动通信有限公司 | 一种人脸识别的页面显示控制方法及移动终端 |
CN103455601A (zh) * | 2013-09-03 | 2013-12-18 | 小米科技有限责任公司 | 一种网页处理方法、装置及终端设备 |
CN106095297A (zh) * | 2016-06-16 | 2016-11-09 | 深圳市金立通信设备有限公司 | 一种页面显示控制方法及终端 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113254016A (zh) * | 2021-05-21 | 2021-08-13 | 四川金熊猫新媒体有限公司 | 界面生成方法、界面信息处理方法、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
US20180322101A1 (en) | 2018-11-08 |
CN107229618A (zh) | 2017-10-03 |
CN107229618B (zh) | 2020-04-21 |
US10956653B2 (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10182101B2 (en) | Method, apparatus and system for sharing webpage | |
WO2017206916A1 (zh) | 处理器中内核运行配置的确定方法以及相关产品 | |
WO2017161994A1 (zh) | 一种显示页面的方法及装置、计算机存储介质 | |
WO2015058616A1 (zh) | 恶意网站的识别方法和装置 | |
WO2018196588A1 (zh) | 一种信息分享方法、装置和系统 | |
CN108156508B (zh) | 弹幕信息处理的方法、装置、移动终端、服务器及系统 | |
CN104123276B (zh) | 一种浏览器中弹窗的拦截方法、装置和系统 | |
CN109948090B (zh) | 网页加载方法及装置 | |
CN111316618B (zh) | 一种网络页面保存方法及终端 | |
CN110020293B (zh) | 多媒体数据展示方法、装置及存储介质 | |
CN104281394A (zh) | 智能选词的方法和装置 | |
CN108491148B (zh) | 一种应用分享方法及终端 | |
WO2015000430A1 (zh) | 智能选词的方法和装置 | |
WO2018040104A1 (zh) | 用于发送搜索请求的方法和装置 | |
WO2015067142A1 (zh) | 网页显示方法及装置 | |
CN110688497A (zh) | 资源信息搜索方法、装置、终端设备及存储介质 | |
CN104750730B (zh) | 一种浏览器显示方法,及装置 | |
WO2015055125A1 (zh) | 网页信息的处理方法及装置 | |
CN107992615B (zh) | 一种网址推荐方法、服务器及终端 | |
JP6915074B2 (ja) | メッセージ通知方法及び端末 | |
WO2018137528A1 (zh) | 资源访问方法及装置 | |
CN106020945B (zh) | 快捷项添加方法及装置 | |
WO2017005080A1 (zh) | 网页显示方法、终端设备及存储介质 | |
WO2015070698A1 (zh) | 一种内容收藏的方法,服务器以及终端 | |
CN106230919B (zh) | 一种文件上传的方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17769271 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17769271 Country of ref document: EP Kind code of ref document: A1 |