Movatterモバイル変換


[0]ホーム

URL:


CN107330087B - Page file generation method and device - Google Patents

Page file generation method and device
Download PDF

Info

Publication number
CN107330087B
CN107330087BCN201710536594.1ACN201710536594ACN107330087BCN 107330087 BCN107330087 BCN 107330087BCN 201710536594 ACN201710536594 ACN 201710536594ACN 107330087 BCN107330087 BCN 107330087B
Authority
CN
China
Prior art keywords
page
version number
target
file
page file
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710536594.1A
Other languages
Chinese (zh)
Other versions
CN107330087A (en
Inventor
庄健
李平
王汉清
王宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co LtdfiledCriticalBeijing Jingdong Century Trading Co Ltd
Priority to CN201710536594.1ApriorityCriticalpatent/CN107330087B/en
Publication of CN107330087ApublicationCriticalpatent/CN107330087A/en
Application grantedgrantedCritical
Publication of CN107330087BpublicationCriticalpatent/CN107330087B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The application discloses a method and a device for generating a page file. One embodiment of the method comprises: receiving a page file acquisition request sent by a client, wherein the page file acquisition request comprises an identifier of a page corresponding to a page file, the type of the client and the version number of an installed page display application of the client; according to the identification and the type, determining a target page file and a target lowest version number from prestored page files and lowest version numbers, wherein the lowest version number is the number of the lowest version of a page display application for displaying a primary page corresponding to the page file, and the lowest version numbers of the page display applications installed on different types of clients are different; and generating a page file which is matched with the comparison result and corresponds to the target page file based on the comparison between the version number of the installed page display application and the target lowest version number. The embodiment avoids the problem of incapability of display caused by version incompatibility.

Description

Page file generation method and device
Technical Field
The application relates to the technical field of computers, in particular to the technical field of internet, and particularly relates to a method and a device for generating a page file.
Background
With the rapid growth of internet technology, various applications are coming out endlessly, for example, an application may be an application capable of showing a page. To introduce more new functionality, the version of the application needs to be constantly updated. However, updating the versions also causes a problem that the page is not compatible with multiple versions of the application. If the old version of the application cannot support the new functionality of the page, the page cannot be displayed without compatibility processing. And may also cause application crashes that severely affect the user's use of the application.
Disclosure of Invention
The present application aims to provide an improved method and apparatus for generating a page file, so as to solve the technical problems mentioned in the above background section.
In a first aspect, an embodiment of the present application provides a method for generating a page file, where the method includes: receiving a page file acquisition request sent by a client, wherein the page file acquisition request comprises an identifier of a page corresponding to the page file, the type of the client and the version number of an installed page display application of the client; determining a target page file and a target lowest version number from prestored page files and lowest version numbers according to the identification and the type, wherein the lowest version number is the number of the lowest version of a page display application for displaying a primary page corresponding to the page file, and the lowest version numbers of the page display applications installed on different types of clients are different; and generating a page file which is matched with the comparison result and corresponds to the target page file based on the comparison of the version number of the installed page display application and the target lowest version number.
In some embodiments, generating the pagefile matching the comparison result and corresponding to the target pagefile based on the comparison of the version number of the installed page showing application and the target lowest version number comprises: in response to determining that the version number of the installed page display application is greater than or equal to the target lowest version number, generating a native page file corresponding to the target page file; or in response to determining that the version number of the installed page showing application is smaller than the target lowest version number, generating a hypertext markup language file corresponding to the target page file.
In some embodiments, the pre-stored page file and version number are pre-stored in the cache region; and before determining the target page file and the target lowest version number from the pre-stored page file and the lowest version number according to the identification and the type, the method further comprises the following steps: and in response to determining that the target page file and the target version number do not exist in the cache region, storing the target page file and the lowest version numbers of the various types of page display applications displaying the target page file into the cache region.
In some embodiments, the method further comprises: and in response to receiving the page modification information, updating the page file in the cache region, and updating the lowest version number of the page display application displaying the native page corresponding to the updated page file.
In some embodiments, the pagefile comprises a file of at least one page region of a page to which the pagefile corresponds; and before determining the target page file and the target lowest version number from the pre-stored page file and the lowest version number according to the identification and the type, the method further comprises the following steps: for each page area, determining the version number of the lowest version of the page display application displaying the page area according to the file of the page area to obtain at least one version number; and selecting the largest version number in the at least one version number, and determining the largest version number as the lowest version number.
In some embodiments, determining the target pagefile and the target lowest version number from the pre-stored pagefile and lowest version number according to the identification and the type includes: searching the page file indicated by the identifier from a plurality of prestored page files, and determining the searched page file as a target page file; and determining the lowest version number of the page display application installed on the type of the client included in the page file acquisition request as the target lowest version number from the lowest version numbers of the page display applications installed on the types of the clients and displaying the primary page corresponding to the target page file.
In a second aspect, the present application provides a device for generating a pagefile, including: the system comprises a receiving unit, a processing unit and a display unit, wherein the receiving unit is configured to receive a page file acquisition request sent by a client, and the page file acquisition request comprises an identifier of a page corresponding to a page file, a type of the client and a version number of an installed page display application of the client; the determining unit is configured to determine a target page file and a target lowest version number from pre-stored page files and lowest version numbers according to the identification and the type, wherein the lowest version number is the number of the lowest version of a page display application for displaying a native page corresponding to the page file, and the lowest version numbers of the page display applications installed on different types of clients are different; and the generating unit is configured to generate a page file which is matched with the comparison result and corresponds to the target page file based on the comparison between the version number of the installed page display application and the target lowest version number.
In some embodiments, the generating unit comprises: the first generation module generates a primary page file corresponding to the target page file in response to determining that the version number of the installed page display application is greater than or equal to the target lowest version number; or the second generation module generates the hypertext markup language file corresponding to the target page file in response to determining that the version number of the installed page display application is smaller than the target lowest version number.
In some embodiments, the pre-stored page file and version number are pre-stored in the cache region; and the apparatus further comprises: and the storage unit is configured to store the target page file and the lowest version number of each type of page display application for displaying the target page file into the cache region in response to determining that the target page file and the target version number do not exist in the cache region.
In some embodiments, the apparatus further comprises: and the updating unit is configured to respond to the received page modification information, update the page file in the cache region, and update the lowest version number of the page display application displaying the native page corresponding to the updated page file.
In some embodiments, the pagefile comprises a file of at least one page region of a page to which the pagefile corresponds; and the apparatus further comprises: a version determining unit configured to determine, for each page area, a version number of a lowest version of a page presentation application presenting the page area according to a file of the page area, to obtain at least one version number; and the selecting unit is configured to select the largest version number in the at least one version number and determine the largest version number as the lowest version number.
According to the method and the device for generating the page file, the page file obtaining request sent by the client is received, and the page file obtaining request comprises the identification of the page corresponding to the page file, the type of the client and the version number of the installed page display application of the client. Then according to the identification and the type, determining a target page file and a target lowest version number from pre-stored page files and lowest version numbers, wherein the lowest version number is the number of the lowest version of a page display application for displaying a primary page corresponding to the page file, and the lowest version numbers of the page display applications installed on different types of clients are different; and finally, based on the comparison between the version number of the installed page display application and the target lowest version number, generating a page file which is matched with the comparison result and corresponds to the target page file, thereby avoiding the problem that the page corresponding to the page file is incompatible with the version of the page display application to cause the display failure.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for pagefile generation according to the present application;
FIG. 3 is a schematic diagram of an application scenario of a method of generating a pagefile according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for pagefile generation according to the present application;
FIG. 5 is a schematic block diagram of one embodiment of a pagefile generation apparatus according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates anexemplary system architecture 100 to which embodiments of the pagefile generation method or pagefile generation apparatus of the present application may be applied.
As shown in fig. 1, thesystem architecture 100 may includeterminal devices 101, 102, 103, anetwork 104, and aserver 105. Thenetwork 104 serves as a medium for providing communication links between theterminal devices 101, 102, 103 and theserver 105.Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use theterminal devices 101, 102, 103 to interact with theserver 105 via thenetwork 104 to receive or send messages or the like. Theterminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a web browser application, a file editing application, a shopping-like application, a search-like application, an instant messaging tool, a mailbox client, social platform software, and the like.
Theterminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting page browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
Theserver 105 may be a server providing various services, such as a background web server providing support for web pages displayed on theterminal devices 101, 102, 103. The background web server may analyze and perform other processing on the received data such as the page file acquisition request, and feed back a processing result (e.g., the page file) to the terminal device.
It should be noted that the method for generating a pagefile provided by the embodiment of the present application is generally executed by theserver 105, and accordingly, the pagefile generating apparatus is generally disposed in theserver 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, aflow 200 of one embodiment of a pagefile generation method according to the present application is shown. The method for generating the page file comprises the following steps:
step 201, receiving a page file obtaining request sent by a client.
In this embodiment, an electronic device (for example, a server shown in fig. 1) on which the method for generating a pagefile operates may receive a pagefile acquisition request from a client (terminal device) with which a user performs page browsing in a wired connection manner or a wireless connection manner. The page file obtaining request comprises an identification of a page corresponding to the page file, a type of the client and a version number of an installed page display application of the client. The version number may be used to reflect the high and low of the version of the application.
A pagefile is a file that includes data to build a page. The data for constructing the page, that is, the data for configuring the page, may include data indicating a color of the page, data indicating a search template adopted by the page, data indicating a navigation bar in the page, and the like. The page file acquisition request is a request sent by the client to the electronic device to acquire the page file. The identification of the page corresponding to the page file is used for distinguishing and identifying the page, and different pages have different page identifications. When the page is represented in different forms, the adopted identifiers are consistent, namely, the same page can be represented in different forms (such as a native page and a hypertext markup language page), but the different forms of the page share the same page identifier. In addition, the page and the pagefile may share the same identifier. Here, the identification of the page may be an ID of the page. The type of the client is a type divided according to the operating environment of the client. For example, the client of the ios system for the tablet computer, the client of the ios system for the mobile phone, and the client of the Android system are provided. The client for the android system can be further subdivided into a client for the android system of the tablet computer, a client for the android system of the mobile phone, and the like. The page display application is an application capable of page display.
It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future. The page may include html format, xhtml format, asp format, php format, jsp format, shtml format, nsp format, xml format, or other future-developed format (as long as the page file in such format can be opened by the browser and the contents of pictures, animations, text, etc. contained therein can be viewed).
Step 202, according to the identification and the type, determining a target page file and a target lowest version number from the pre-stored page file and the lowest version number.
In this embodiment, the electronic device determines, according to the received identifier and type, a target pagefile and a target lowest version number corresponding to the identifier and type from pre-stored pagefiles and lowest version numbers. In particular, the pre-stored pagefile and lowest version number may be stored in a database or cache of the electronic device or other electronic devices with which it is communicatively coupled. The target page file refers to the determined page file corresponding to the identifier and the type. The lowest version number is the number of the lowest version of the page display application for displaying the native page corresponding to the page file, and the lowest version numbers of the page display applications installed on different types of clients are different. The target lowest version number is the lowest version number determined to correspond to the above-described identifier and type. A native page generally refers to a page that can be directly displayed.
Specifically, the pagefile with the identifier identical to the identifier in the pagefile acquisition request may be determined from the pre-stored pagefile and the lowest version number. And determining the lowest version number of the page display application which is the same as the identifier and is suitable for the type of the client.
In practice, a user may view a page presented by a page presentation application at a client. The native page is used for displaying, the display efficiency is high, and the page image quality is good. Therefore, the lowest version number of the application capable of showing the native page is stored on the electronic equipment for later use.
Step 203, based on the comparison between the version number of the installed page display application and the target lowest version number, generating a page file which is matched with the comparison result and corresponds to the target page file.
In this embodiment, the electronic device obtains a comparison result based on a comparison between the version number of the installed page display application and the target lowest version number. And then generating a page file which is matched with the comparison result and corresponds to the target page file. The comparison of the version numbers here obtains the height between the versions, that is, the comparison result is the height between the version of the page display application in the client and the version corresponding to the target lowest version number. And generating a page file corresponding to the target page file according to the obtained comparison result. The generated page file is a page file to be sent to a client for rendering. It may be a native page file, a hypertext markup language file (such as an HTML5 file), a mixed native and hypertext markup language file, and so on.
In practice, a match refers to a pagefile that corresponds to having a version that is higher (or lower) regardless of which of the two versions that results from the comparison is higher (or lower).
Comparing the high and low between the versions may be done in various ways. For example, the size of the version numbers may be compared. The comparison can also be performed according to a preset naming rule of the version number, that is, according to a preset corresponding relationship between the version number and the version height. For example, it may be preset that the smaller the version number, the higher the version. Characters other than numbers, such as letters, etc., may be added to make the numbering setting.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for generating a page file according to the present embodiment. In the application scenario of fig. 3, a user first initiates a pagefile acquisition request 302 of a web page through aclient 301, where the page file acquisition request includes a client whose type is that an ios system for a mobile phone is located, an identifier wp12 of a page corresponding to a page file, and a version number 2.0 of an installed page display application at the client; thereafter,web server 305 may, based on the identity wp12 and the type of client: determining 1.9303 a target page file and a target lowest version number from prestored page files and lowest version numbers by a client side where an ios system for the mobile phone is located; then, based on the comparison between the version number 2.0 and the target lowest version number 1.9, theweb server 305 generates anative pagefile 304 corresponding to the target pagefile as shown in fig. 3, and sends the native pagefile to theclient 301.
The method provided by the embodiment of the application is based on the comparison between the version number of the installed page display application and the target lowest version number, and the target page file is used for generating a new page file, so that the problem that the page corresponding to the page file is incompatible with the version of the page display application and cannot be displayed is solved. In addition, the embodiment can also avoid the problems of poor page quality and low page display efficiency caused by frequent use of hypertext markup language pages by the client.
With further reference to FIG. 4, aflow 400 of yet another embodiment of a pagefile generation method is shown. Theprocess 400 of the method for generating a pagefile includes the following steps:
step 401, for each page area, determining a version number of the lowest version of the page display application displaying the page area according to the file of the page area, and obtaining at least one version number.
In this embodiment, the page file includes a file of at least one page area of a page corresponding to the page file. The server determines the lowest version number of some pagefiles. These pagefiles may be artificially defined or obtained from a collection of pagefiles. For each page area of the page corresponding to each of the page files, the server determines the version number of the lowest version of the page display application displaying the page area according to the file of the page area, and obtains one or more version numbers.
When creating a page, the technician will divide the page into a plurality of regions (and possibly the entire page is one region). The page area is an area in the page set by a person. Each page area has different functions and can display different contents. For example, a navigation bar area, a title area, etc. may be included in the page. Each page area has a file that includes its configuration data. The version number of the lowest version of the page showing application showing the page area can be determined by using the file. The resulting version numbers of the lowest versions of the respective page areas may be identical, and then a version number is finally obtained. If the obtained version numbers are not consistent, a plurality of version numbers can be obtained.
Step 402, selecting the largest version number of the at least one version number, and determining the largest version number as the lowest version number.
In this embodiment, the server selects the largest version number from the at least one obtained version number, and then determines the largest version number as the lowest version number. The lowest version number is a version number of a page presentation application that presents a page in which the page area is located, and the page in which the page area is located is also a page corresponding to the page file, that is, a page that can be constructed by the page file.
Because each page area in the page needs to be displayed when the page is displayed, if the maximum version number in the version numbers corresponding to each page area is not selected, the situation that the page area which can be loaded only by the page display application with the maximum version cannot be displayed occurs. Therefore, the largest version number needs to be selected. For example, if a page has four page areas, and the obtained version numbers are 1.0, 2.0, 3.0, and 2.0, respectively, 3.0 is selected as the lowest version number of the page display application displaying the page.
Step 403, receiving a page file acquisition request sent by the client.
In this embodiment, the server may receive a request for acquiring a page file from a client (terminal device) with which a user browses a page through a wired connection manner or a wireless connection manner. The page file obtaining request comprises an identification of a page corresponding to the page file, a type of the client and a version number of an installed page display application of the client. The version number may be used to reflect the high and low of the application version.
In response to determining that the target page file and the target version number do not exist in the cache region, step 404 stores the target page file and the lowest version numbers of the page display applications of the types displaying the target page file into the cache region.
In this embodiment, the pre-stored page file and version number are pre-stored in the cache. So that the server can quickly find the target page file. The server may perform an operation of determining a target pagefile and a target lowest version number in the cache. If the execution is unsuccessful, it may be determined that the target pagefile and the target version number are not present in the cache. The server then responds: and storing the target page file and the lowest version number of each type of page display application for displaying the original page corresponding to the target page file into a cache region.
Step 405, searching the pagefile indicated by the identifier from a plurality of prestored pagefiles, and determining the searched pagefile as a target pagefile.
In this embodiment, the server searches for a pagefile whose identifier is an identifier in the pagefile acquiring request from a plurality of pagefiles prestored in the cache region. And determining the searched page file as a target page file.
Step 406, determining the lowest version number of the page display application installed on the type of the client included in the page file acquisition request as the target lowest version number from the lowest version numbers of the page display applications installed on the types of the clients that display the native page corresponding to the target page file.
In this embodiment, a plurality of lowest version numbers corresponding to the target page file are stored in the cache region. Each lowest version number of the plurality of lowest version numbers is: and displaying the lowest version number of the page display application installed on each type of client of the original page corresponding to the target page file. And determining the lowest version number corresponding to the type of the received client as the target lowest version number. I.e., the lowest version number of the page showing application installed at the client of the type included in the pagefile acquiring request is determined as the target lowest version number.
Step 407, in response to determining that the version number of the installed page display application is greater than or equal to the target lowest version number, generating a native page file corresponding to the target page file.
In this embodiment, when determining that the version number of the installed page showing application is greater than or equal to the target lowest version number, the server responds: and generating a native page file corresponding to the target page file. Generally, the larger the version number is, the higher the representative version is, and the version number can be used to determine the version height. The version number of the client-installed page presentation application indicates that the version is capable of displaying the native page if it is greater than or equal to the target lowest version number. Therefore, the server generates a native page file corresponding to the target page file.
Step 408, in response to determining that the version number of the installed page presentation application is less than the target lowest version number, generating a hypertext markup language file corresponding to the target page file.
In this embodiment, if the version number of the page presentation application installed by the client is less than the target lowest version number, it indicates that the version cannot display the native page. The server generates a hypertext markup language file (e.g., HTML5 file) corresponding to the target page file. The generated hypertext markup language document can then be sent to the client to cause it to display a hypertext markup language page.
It should be noted thatstep 406 and step 407 may alternatively be performed.
Step 409, in response to receiving the page modification information, updating the page file in the cache region, and updating the lowest version number of the page display application that displays the native page corresponding to the updated page file.
In this embodiment, the server receives the page modification information, and responds: and updating the page file in the cache region according to the page modification information. And meanwhile, updating the lowest version number of the page display application for displaying the native page corresponding to the updated page file. The page modification information is information indicating modification of a page file corresponding to a page. And modifying the page file to change the page corresponding to the page file. Before, simultaneously with or after updating the page file, the server updates the lowest version number of the page presentation application which presents the page corresponding to the page file. The pagefile herein is a pagefile in which the page modification information indicates modification.
According to the embodiment, the page file and the lowest version number are determined from the cache region, so that the determination time can be effectively saved. And the content in the cache region can be updated, so that the accuracy of generating the page file corresponding to the target page file is ensured.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of a device for generating a page file, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the device may be specifically applied to various electronic devices.
As shown in fig. 5, thepagefile generating apparatus 500 of the present embodiment includes: a receivingunit 501, a determiningunit 502 and agenerating unit 503. The receivingunit 501 is configured to receive a page file acquisition request sent by a client, where the page file acquisition request includes an identifier of a page corresponding to a page file, a type of the client, and a version number of an installed page display application of the client; a determiningunit 502 configured to determine, according to the identifier and the type, a target page file and a target lowest version number from pre-stored page files and lowest version numbers, where the lowest version number is a number of a lowest version of a page display application that displays a native page corresponding to the page file, and the lowest version numbers of page display applications installed on different types of clients are different; agenerating unit 503 configured to generate a pagefile matching the comparison result and corresponding to the target pagefile based on the comparison between the version number of the installed page showing application and the target lowest version number.
In this embodiment, the receivingunit 501 of thepagefile generating apparatus 500 may receive a pagefile acquisition request from a client (terminal device) with which a user performs page browsing by a wired connection manner or a wireless connection manner. The page file obtaining request comprises an identification of a page corresponding to the page file, a type of the client and a version number of an installed page display application of the client. The version number may be used to reflect the high and low of the version of the application.
In this embodiment, the determiningunit 502 determines the target pagefile and the target lowest version number corresponding to the received identifier and type from the pre-stored pagefile and lowest version number according to the received identifier and type. The target page file refers to the determined page file corresponding to the identifier and the type. The lowest version number is the number of the lowest version of the page display application for displaying the native page corresponding to the page file, and the lowest version numbers of the page display applications installed on different types of clients are different. The target lowest version number is the lowest version number determined to correspond to the above-described identifier and type. A native page generally refers to a page that can be directly displayed.
In this embodiment, thegeneration unit 503 obtains the comparison result based on the comparison between the version number of the installed page showing application and the target lowest version number. And then generating a page file which is matched with the comparison result and corresponds to the target page file. The comparison of the version numbers here obtains the height between the versions, that is, the comparison result is the height between the version of the page display application in the client and the version corresponding to the target lowest version number. And generating a page file corresponding to the target page file according to the obtained comparison result. The generated page file is a page file to be sent to a client for rendering. It may be a native page file, a hypertext markup language file (such as an HTML5 file), a mixed native and hypertext markup language file, and so on.
In some optional implementations of this embodiment, the generating unit includes: a first generation module (not shown) for generating a native pagefile corresponding to the target pagefile in response to determining that the version number of the installed page showing application is greater than or equal to the target lowest version number; or a second generation module (not shown) for generating the hypertext markup language file corresponding to the target page file in response to determining that the version number of the installed page presentation application is less than the target lowest version number.
In some optional implementation manners of this embodiment, the pre-stored page file and version number are pre-stored in the cache region; and the apparatus further comprises: and a storage unit (not shown) configured to store the target page file and the lowest version numbers of the respective types of page presentation applications presenting the target page file in the cache area in response to determining that the target page file and the target version numbers do not exist in the cache area.
In some optional implementations of this embodiment, the apparatus further includes: and an updating unit (not shown) configured to update the page file in the cache area in response to receiving the page modification information, and update the lowest version number of the page presentation application that presents the native page corresponding to the updated page file.
In some optional implementations of this embodiment, the pagefile includes a file of at least one page area of a page corresponding to the pagefile; and the apparatus further comprises: a version determining unit (not shown) configured to determine, for each page area, a version number of a lowest version of the page display application that displays the page area according to the file of the page area, to obtain at least one version number; and a selecting unit (not shown) configured to select a largest version number of the at least one version number and determine the largest version number as a lowest version number.
In some optional implementations of this embodiment, the determining unit includes: a searching module (not shown) configured to search the pagefile indicated by the identifier from a plurality of prestored pagefiles, and determine the searched pagefile as a target pagefile; and a determining module (not shown) configured to determine, from the lowest version numbers of the page showing applications installed in the clients of the respective types and showing the native pages corresponding to the target pagefile, the lowest version number of the page showing application installed in the client of the type included in the pagefile acquiring request as the target lowest version number.
Referring now to FIG. 6, shown is a block diagram of acomputer system 600 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
FIG. 6 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application. As shown in fig. 6, thecomputer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from astorage section 608 into a Random Access Memory (RAM) 603. In theRAM 603, various programs and data necessary for the operation of thesystem 600 are also stored. The CPU601,ROM 602, andRAM 603 are connected to each other via abus 604. An input/output (I/O)interface 605 is also connected tobus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; anoutput portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; astorage section 608 including a hard disk and the like; and acommunication section 609 including a network interface card such as a LAN card, a modem, or the like. Thecommunication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. Aremovable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in thestorage section 608 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through thecommunication section 609, and/or installed from theremovable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable medium of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a server includes a receiving unit, a determining unit, and a generating unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, the receiving unit may also be described as a "unit that receives a pagefile acquisition request sent by a client".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: receiving a page file acquisition request sent by a client, wherein the page file acquisition request comprises an identifier of a page corresponding to the page file, the type of the client and the version number of an installed page display application of the client; determining a target page file and a target lowest version number from prestored page files and lowest version numbers according to the identification and the type, wherein the lowest version number is the number of the lowest version of a page display application for displaying a primary page corresponding to the page file, and the lowest version numbers of the page display applications installed on different types of clients are different; and generating a page file which is matched with the comparison result and corresponds to the target page file based on the comparison of the version number of the installed page display application and the target lowest version number.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (11)

CN201710536594.1A2017-07-042017-07-04Page file generation method and deviceActiveCN107330087B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710536594.1ACN107330087B (en)2017-07-042017-07-04Page file generation method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710536594.1ACN107330087B (en)2017-07-042017-07-04Page file generation method and device

Publications (2)

Publication NumberPublication Date
CN107330087A CN107330087A (en)2017-11-07
CN107330087Btrue CN107330087B (en)2020-11-03

Family

ID=60198762

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710536594.1AActiveCN107330087B (en)2017-07-042017-07-04Page file generation method and device

Country Status (1)

CountryLink
CN (1)CN107330087B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109491740B (en)*2018-10-302021-09-10北京云测信息技术有限公司Automatic multi-version funnel page optimization method based on context background information
CN112528193B (en)*2019-08-272025-08-22阿里巴巴新加坡控股有限公司 Page copy processing method, page copy management method, device, terminal equipment, computer equipment and server
CN113761438B (en)*2021-02-252025-02-21北京沃东天骏信息技术有限公司 A method and system for generating display styles
CN113157311A (en)*2021-04-082021-07-23上海高顿教育培训有限公司H5-based application program version number control method
CN113467827A (en)*2021-07-192021-10-01上海哔哩哔哩科技有限公司Version control method and device for advertisement page
CN115563942A (en)*2022-11-032023-01-03中国建设银行股份有限公司Contract generation method and device, electronic equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105867890A (en)*2015-09-112016-08-17乐视致新电子科技(天津)有限公司Page display method and device
CN105988846A (en)*2015-03-032016-10-05腾讯科技(深圳)有限公司Page loading method and page loading device
CN106372214A (en)*2016-09-052017-02-01青岛海信宽带多媒体技术有限公司Webpage page display control method and intelligent terminal
CN106445583A (en)*2016-08-312017-02-22广州品唯软件有限公司Page display method, equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105988846A (en)*2015-03-032016-10-05腾讯科技(深圳)有限公司Page loading method and page loading device
CN105867890A (en)*2015-09-112016-08-17乐视致新电子科技(天津)有限公司Page display method and device
CN106445583A (en)*2016-08-312017-02-22广州品唯软件有限公司Page display method, equipment and system
CN106372214A (en)*2016-09-052017-02-01青岛海信宽带多媒体技术有限公司Webpage page display control method and intelligent terminal

Also Published As

Publication numberPublication date
CN107330087A (en)2017-11-07

Similar Documents

PublicationPublication DateTitle
CN107330087B (en)Page file generation method and device
US11758088B2 (en)Method and apparatus for aligning paragraph and video
US20210333984A1 (en)Method and apparatus for generating customized visualization component
CN107302597B (en)Message file pushing method and device
CN109409419B (en)Method and apparatus for processing data
CN109446442B (en)Method and apparatus for processing information
CN110968314B (en)Page generation method and device
US11244153B2 (en)Method and apparatus for processing information
US20140095579A1 (en)System and method for increasing web site serving performance
CN104731869B (en)The page shows method and device
CN111294395A (en)Terminal page transmission method, device, medium and electronic equipment
CN116757157A (en)Acquiring font parts using a compression mechanism
CN112486482A (en)Page display method and device
CN108600329B (en)Method and equipment for pushing information and displaying information
CN113220381A (en)Click data display method and device
CN110647327A (en)Method and device for dynamic control of user interface based on card
CN112328940A (en) Method, device, computer equipment and storage medium for embedding transition page in webpage
CN105260459A (en)Search method and apparatus
CN111222067B (en)Information generation method and device
CN113282852A (en)Method and device for editing webpage
CN113553123B (en)Data processing method, device, electronic equipment and storage medium
CN114239501A (en)Contract generation method, apparatus, device and medium
CN109408647B (en)Method and apparatus for processing information
CN108834202B (en) Information display method and equipment
CN113656506B (en)Electronic specification acquisition method and device and readable medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp