[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107085580B - Method for displaying page by client and client - Google Patents

Method for displaying page by client and client Download PDF

Info

Publication number
CN107085580B
CN107085580B CN201610087508.9A CN201610087508A CN107085580B CN 107085580 B CN107085580 B CN 107085580B CN 201610087508 A CN201610087508 A CN 201610087508A CN 107085580 B CN107085580 B CN 107085580B
Authority
CN
China
Prior art keywords
page
preset
address
service data
client
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
CN201610087508.9A
Other languages
Chinese (zh)
Other versions
CN107085580A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610087508.9A priority Critical patent/CN107085580B/en
Publication of CN107085580A publication Critical patent/CN107085580A/en
Application granted granted Critical
Publication of CN107085580B publication Critical patent/CN107085580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

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

Abstract

The embodiment of the application discloses a method for displaying a page by a client and the client. The method comprises the following steps: receiving a preset page access instruction; the preset page is provided with a first address; acquiring first service data corresponding to the preset page from a preset server according to the first address; according to the first service data and a preset degradation rule configured locally at the client, when degradation is judged to be needed, a second address is obtained; acquiring second service data from the second address; and displaying the second service data on a page. The page display method and the client can reduce development cost and workload when the page display deals with abnormity in the page loading process or when the page newly added function is ensured to normally run.

Description

Method for displaying page by client and client
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method for displaying a page by a client and a client.
Background
The rapid growth of the internet, such as the mobile internet, has made data rich and numerous. Data in the internet is mainly displayed in a page mode, and the data displayed in the page can come from a server. When the client needs to access a certain page, the client can request the server to acquire data according to the corresponding link address. The server can return corresponding data according to the request, so that the data can be displayed in the form of pages on the client.
In some cases, when data is abnormal in the page loading process, or other functions are added to a page that a client needs to access, a page demotion mode may be generally adopted in order not to affect the operation of the main service function or the added function. Specifically, whether degradation is required may be determined by the server. If demotion is required, a particular field identification may be included in the data fed back by the server, which may be, for example, "degraded: https:// detail. After the client acquires the data comprising the specific field identifier, the client can read the specific field identifier, so that the Webview control or the Browser control can be started to display the page after the demotion. For example, the function of accessing the home page of the mobile phone panning before the mobile phone panning is added with the function of obtaining the red envelope, and the corresponding version of the mobile phone panning client with the function added is not released yet, or even if the version of the mobile phone panning client with the function added is released, the user cannot update the new version in time, so that the mobile phone panning cannot display the page with the added function when the mobile phone panning is running. The home page may be downgraded at this point so that the user may use the added functionality.
At present, most of software adopting a client-server interaction mode carries out a large amount of data processing on a server side. The server stores the service data corresponding to most pages in the client, so that when a page access request of the client is received, the server can feed back the relevant service data to the client in time. Thus, the server has a lot of service data corresponding to the unused pages respectively. Especially for some super APP, a plurality of service systems are integrated in one software, and each service system also comprises a plurality of pages.
In such a scenario, setting the downgrade rules on the server brings a huge workload. The setting of the downgrade rule in the server mostly needs to set a set of downgrade judgment logic for each page individually, or at least needs to set an interface of a downgrade program for each page. Therefore, under the condition of multiple pages, a large amount of code programming work is brought, and time and labor are wasted.
Disclosure of Invention
The embodiment of the application aims to provide a method for displaying a page by a client and the client, so as to reduce development cost and workload when page degradation is abnormal in the process of responding to page loading or when a newly added function of a page is normally operated.
In order to achieve the above object, an embodiment of the present application provides a method for displaying a page by a client, including: receiving a preset page access instruction; the preset page is provided with a first address; acquiring first service data corresponding to the preset page from a preset server according to the first address; according to the first service data and a preset degradation rule configured locally at the client, when degradation is judged to be needed, a second address is obtained; acquiring second service data from the second address; and displaying the second service data on a page.
In order to achieve the above object, an embodiment of the present application further provides a client, including: the receiving module is used for receiving a preset page access instruction; the preset page is provided with a first address; the first obtaining module is used for obtaining first service data corresponding to the preset page from a preset server according to the first address; the judging module is used for acquiring a second address when judging that degradation is needed according to the first service data and a preset degradation rule configured locally at the client; a second obtaining module, configured to obtain second service data from the second address; and the page display module is used for displaying the second service data in a page.
By means of the technical scheme, whether page degradation needs to be carried out or not is judged through the preset degradation rule configured on the client side, a plurality of server side modules corresponding to the service modules are independently arranged without guaranteeing the normal operation of the page adding function, and data and codes required by specific jump pages are stored without the server side modules responding to the abnormity in the page loading process, so that the unified configuration of the degradation scheme on the client side is realized, and the development cost of responding to the abnormity in the page loading process or guaranteeing the normal operation of the page adding function in the page display process is reduced. Moreover, the preset degradation rule can be integrated in the client, so that the uniform degradation rule can be adopted for judging different pages, and the workload of code maintenance is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a method for displaying a page at a client according to an embodiment of the present application;
fig. 2 is a block diagram of a client according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present application shall fall within the scope of protection of the present application.
Please refer to fig. 1. The method for displaying the page by the client side of one embodiment of the application can comprise the following steps.
Step S11: receiving a preset page access instruction; the preset page has a first address.
In this embodiment, the client may receive a preset page access instruction, so that the server may request to acquire corresponding service data according to the preset page access instruction. After the client acquires the service data sent by the server, the client can display the service data on a page.
In this embodiment, the client may perform network data transmission based on a network protocol and a network communication module. Network protocols include, but are not limited to, HTTP, TCP/IP, or FTP, among others. The client can access the internet based on a network protocol and a network communication module, and can transmit network data with a server or other clients through the internet. In a particular embodiment, the client may be a terminal device accessing the communication network based on a network protocol. Specifically, for example, the client may be a mobile smart phone, a computer (including a laptop computer and a desktop computer), a tablet electronic device, a Personal Digital Assistant (PDA), or a smart wearable device. Of course, the client may be software that can run on any of the above listed devices. Specifically, the client may be application software installed on a mobile smart phone or a tablet electronic device, and may be, for example, a pai-bao, a tianmao mall, and the like.
In this embodiment, the client receives a preset page access instruction, which may indicate that corresponding service data needs to be acquired, so as to perform page display on the acquired service data for a user to refer to. The preset page access command itself may be an electrical signal input. Specifically, for example, the client may be software running on a terminal device configured with a touch display, such as a mobile smart phone, a tablet electronic device, and the like, and when the software is run, the touch display of the terminal device is triggered to generate the electrical signal. Alternatively, the client may be a software running on a terminal device equipped with a non-touch display, for example, a desktop computer, and another input hardware device for operating the terminal device when running the software may generate the electrical signal for clicking a mouse, for example.
In this embodiment, the preset page may be a web page including service data. The preset page can be displayed for the user to refer to, so that the user can obtain corresponding information or resources, and an information interaction function can be provided between the user and the terminal equipment. Specifically, for example, the preset page may be a page during the mobile phone treasure removal operation, or may be a corresponding page displayed after icon buttons of a skatecat, a money-gathering, a public praise takeout, and the like are triggered, for example, related buttons provided on the page during the mobile phone treasure removal operation.
In this embodiment, the first address may be a network address capable of linking the preset page, and the relevant data corresponding to the preset page may be obtained by accessing the first address, so that the preset page may be displayed on the client.
Step S13: and acquiring first service data corresponding to the preset page from a preset server according to the first address.
In this embodiment, the predetermined server may include any hardware device capable of responding to the service data request and feeding back the service data to the client, and software necessary for driving the hardware device to operate. The provisioning server may be provided with a predetermined port through which traffic data may be transmitted to the client. Specifically, for example, the preset server may transmit data to the client based on the HTTP protocol.
In this embodiment, the preset page may include a frame, the service data corresponding to the preset page may be obtained by accessing the first address, and the obtained first service data is filled into the frame, so that the preset page may be formed, and the preset page may be displayed at the client.
In this embodiment, the first service data may be stored in a database of the preset server, which may be a concrete representation form and a carrier of the information. Specifically, the first service data may include, but is not limited to, symbols, letters, numbers, voice, images, video, and the like. The first service data may be fed back by the preset server according to the corresponding first address after the client starts the corresponding service function.
Step S15: and acquiring a second address when degradation is needed according to the first service data and a preset degradation rule configured locally at the client.
In this embodiment, the degrading may include: and when the client displays the preset page, changing the address of the service data of the preset page. Specifically, the first address may be changed to a storage path of the locally stored service data, or the first address may be changed so that the changed service data is obtained from the server. Specifically, for example, the downgrading may be that a relevant page accessed by the client is abnormal and cannot be normally displayed in a loading process, or the relevant page is added with another function, the updated content of the relevant page cannot be displayed, and in order to not affect the use of the added function, the relevant page added with the other function is switched to a simple version so that the relevant page can be displayed on a specified control (for example, a Webview control or a Browser control) of the client. Specifically, examples are: the E-commerce platform is additionally provided with a function of accessing a home page of the E-commerce platform to obtain the red envelope, and a corresponding client version with the function is not released, or even if the client version with the function is released, a user cannot update to the new version in time, so that the client of the current version of the user cannot display the page with the new function when the client runs. Then the home page with the added function can be switched to the version which can be displayed on the mobile phone of the user, so that the user can use the added function.
In this embodiment, the preset downgrading rule may be configured locally at the client in advance. Specifically, the client may be locally preconfigured with a preset downgrading rule storage module, and the preset downgrading rule storage module may be configured to store the preset downgrading rule. The preset downgrading rule can be used for judging whether the preset page needs to be subjected to downgrading treatment. The preset downgrading rule configured locally according to the first service data and the client may include: the client receives the first service data fed back by the service server and is accompanied by a preset degradation instruction, or the first service data received by the client is not matched with the data required by the preset page, and the like. In this embodiment, the manner of configuring the preset degradation rule in the client may include that the preset degradation rule is implemented by a program code and stored in the client, or the preset degradation rule is implemented by a logic circuit and integrated in a circuit of the client. In this embodiment, when demotion is required, the second address is acquired. The second address may be a network address capable of linking the preset page, and the related data corresponding to the preset page may be obtained by accessing the second address, so that the preset page may be displayed on the client. The second address may be pre-stored in the client, or may be obtained by performing an operation on the first address by using a preset algorithm.
In this embodiment, the preset downgrading rule configured in the client may be a part of a bottom layer code or an internal circuit architecture of the client, so that the preset downgrading rule in the client may be configured uniformly for a plurality of pages without individually configuring each page, thereby saving time and labor. Of course, other modifications can be made by those skilled in the art, for example, those skilled in the art implement a preset destaging rule at the client, which configures destaged code for each page. Other modifications are possible by those skilled in the art in light of the above teachings, but are intended to be included within the scope of the present disclosure as long as they achieve the same or similar functions and results as those achieved by the present disclosure.
Step S17: and acquiring second service data from the second address.
In this embodiment, the second service data may be stored in a database of the preset server, or may be stored locally at the client. The second service data may be a concrete representation and carrier of information. Specifically, the second service data may include, but is not limited to, symbols, letters, numbers, voice, images, video, and the like. Of course, the second service data may also include complete web page data. The second service data may be fed back by the preset server or the client according to the corresponding second address after the client starts the corresponding service function.
Step S19: and displaying the second service data on a page.
In this embodiment, the second service data is obtained and may be filled into a corresponding page frame. Or directly displaying the whole webpage data included in the second service data. The client may provide environmental support for the page presentation. Such as data interfaces, further program interaction, etc.
According to the method for displaying the page by the client, whether page degradation needs to be carried out or not is judged through the preset degradation rule configured on the client side, a plurality of server side modules corresponding to the service modules are independently arranged without guaranteeing a normally-operated page adding function, or data and codes required by a specific jump page are stored without the server side modules responding to abnormity in a page loading process, so that unified configuration of a degradation scheme on the client side is realized, and development cost for responding to abnormity in the page loading process or guaranteeing the normally-operated page adding function in the page displaying process is reduced. Moreover, the preset degradation rule can be integrated in the client, so that the uniform degradation rule can be adopted for judging different pages, and the workload of code maintenance is reduced.
In a specific application scenario, a user can access a home page of a mobile phone Taobao client running on a mobile intelligent phone, and a function of accessing the home page to obtain a red envelope is added before the Taobao platform is added. But the version of the mobile phone Taobao client is not upgraded, so that the function cannot be used by a user in time. When a user opens the mobile phone treasure panning, the mobile phone treasure panning acquires the service data corresponding to the home page of the server. The mobile phone treasure-panning client judges that the function is added to the home page according to the configured preset degradation rule, namely that the data structure of the service data is not matched with the home page and cannot be displayed, and the situation that the page needs to be degraded is shown. At this time, a second address pointing to the server can be obtained according to the address of the home page, so that second service data can be obtained from the server side according to the second address, a Webview control of the mobile intelligent telephone can be started to perform page display on the obtained second service data, and the functions can be realized according to the page displayed by the second service data.
In one embodiment, the preset downgrading rule may include: and when the first service data is accompanied by a preset degradation instruction, degrading the currently accessed page.
In this embodiment, the preset demotion command may be generated by a preset server, which may be a character string having a predetermined length, for example, "degraded: https:// detail. When the client receives the first service data fed back by the preset server, the preset degradation instruction attached to the first service data can be identified, so that the current accessed page can be judged to be degraded. The method for appending the preset downgrading instruction to the first service data may include: presetting a degradation instruction as a part of the content of the first service data; and presetting a degradation instruction as an attachment of the first service data.
The application scenario of the embodiment may include a situation of performing page degradation to ensure normal operation of the page addition function. Specifically, for example, the client accesses a page corresponding to a certain service module and adds other functions, and the client that adds the functions has not updated the version, that is, the Native code of the service module of the client is not updated. The preset server-side module corresponding to the service module may direct an H5 page capable of showing and implementing the newly added function, and may use the address of the H5 page as a part of a preset downgrade instruction, where the address of the H5 page may be the second address. Specifically, the server may add the second address to the service data corresponding to the first address. Or, the server may also feed back the service data corresponding to the second address replacing the first address to the client. After the preset downgrading instruction is attached to the first service data and sent to the client, the client identifies the address of the H5 page in the preset downgrading instruction and can access the H5 page, and therefore page downgrading is achieved.
Of course, the second address may not be included in the predetermined downgrade instruction, but only a single string, such as "grade", so that the client can separately obtain the second address.
In the embodiment, when the service needs to perform degradation processing on a certain page in the running process of the software system, only a part of data, namely the preset degradation instruction, can be added to the service data of the corresponding page in the server. The client can access the degraded page after judging that the instruction exists.
In one embodiment, the preset downgrading rule may further include: and when the data structure of the first service data is not matched with the preset page, degrading the currently accessed page.
In this embodiment, the step of unmatching the data structure of the first service data with the preset page may include: the preset server adds other functions to the corresponding service module, so that the first service data fed back to the client by the preset service server changes. And the version of the client is not updated correspondingly, so that the frame of the preset page corresponding to the service module on the client is not matched with the first service data any more. Specifically, for example, a function of accessing the home page to obtain a red envelope is added before twenty-one to a server corresponding to the home page of the mobile phone panning, and the mobile phone panning client is not updated in time, so that a frame of the home page of the mobile phone panning cannot be matched with service data corresponding to the home page fed back by the server. Therefore, in order to normally display the page with the added function, the current page needs to be degraded.
In one embodiment, the preset downgrading rules include: and when the preset page loading process is abnormal, degrading the currently accessed page.
In this embodiment, the occurrence of an exception in the preset page loading process may include: the Native code of the preset page is abnormal in the running process, or the first service data is abnormal in the loading or running process. When both of the above occur, it may be indicated that the currently accessed page needs to be destaged.
In one embodiment, the step of obtaining the second address includes: and reading the storage address of the local service data.
In this embodiment, the service data corresponding to the second address may be stored locally. Therefore, when degradation is judged to be required according to the preset degradation rule, the service data stored locally can be obtained according to the second address, and the local service data can be the second service data. The local service data may have one or more local service data, and the one or more local service data may respectively correspond to a storage address, so that the corresponding local service data may be obtained according to the storage address. And when the degradation is judged to be required according to a preset degradation rule, the storage address of the read local service data can be the second address.
In one embodiment, the step of performing page display includes: and analyzing the locally stored service data by adopting the specified control.
In this embodiment, the designated control may parse the service data, so as to display the service data in the form of a page. The designated controls may include, but are not limited to, Webview controls, Browser controls.
In this embodiment, after the storage address of the local service data is read, the corresponding service data may be obtained according to the storage address. And the business data obtained by analyzing the control is appointed, so that the business data can be displayed in a page form.
In one embodiment, the step of obtaining the second address includes: and obtaining the second address according to the first address and a preset algorithm. The second address points to the preset server.
In this embodiment, the preset server may store the second address in advance, so that when it is determined that degradation is required, the second address may be directly accessed to obtain the second service data. Of course, the preset server may not store the second address, but only has a preset algorithm module, and the preset algorithm module may obtain the second address according to the first address and the preset algorithm, so as to reduce a storage space occupied by the second address in the preset server.
In this embodiment, the second address may point to a predetermined server. When it is determined that degradation is required, the client may send a second service data request to the preset server, where the second service data request may be accompanied by the first address. The preset server may obtain the first address attached thereto after receiving the second service data request, may obtain a second address according to a preset algorithm, and may obtain the second service data stored in the preset server according to the obtained second address.
In this embodiment, the second address calculated by the preset algorithm from the first address may be unique. Therefore, a preset algorithm can be uniformly set at the client, and when a certain page needs to be degraded, a second address is obtained according to the preset algorithm. And the downgraded service data can be obtained from the second address. Therefore, the downgrade rule does not need to be configured separately for each page, and the time and the workload of code maintenance are reduced. Moreover, each first address corresponds to a unique second address, so that when a certain page is degraded, the service data can be uploaded to the server and can be bound with the second address. Therefore, the page of the client is degraded to display the changed service data.
In one embodiment, the first address includes a page identifier, and the page identifier can identify the preset page. The page identification is also included in the second address.
In this embodiment, the page identifier may have predetermined content, which can uniquely identify one preset page. Specifically, the page identifier may be a numeric and/or alphabetic string having a predetermined length, and may be, for example, A1B2C3D4E5F6G 7. The first address includes a page identifier, which may be a part of the content of the first address, for example, the page identifier may be a number and/or letter string A1B2C3D4E5F6G7 with a predetermined length, and the page identifier may be placed at any position at the end or in the middle of the first address.
In this embodiment, the second address also includes a page identifier, so that the degraded page displayed according to the second service data acquired by the second address corresponds to the preset page direction.
In this embodiment, when the second address is obtained according to the first address and the preset algorithm, the page identifier may not participate in the operation. After the second address is thus obtained, the page identification may be added into the second address. Of course, the page identification may also participate in the operation. After the second address is obtained, the page identifier is added into the second address.
Please refer to fig. 2. The embodiment of the present application further provides a client 100, which may include: the system comprises a receiving module 11, a first obtaining module 13, a judging module 15, a second obtaining module 17 and a page display module 19.
The receiving module 11 may be configured to receive a preset page access instruction; the preset page has a first address.
In this embodiment, the client may receive a preset page access instruction, so that the server may request to acquire corresponding service data according to the preset page access instruction. After the client acquires the service data sent by the server, the client can display the service data on a page.
In this embodiment, the client may perform network data transmission based on a network protocol and a network communication module. Network protocols include, but are not limited to, HTTP, TCP/IP, or FTP, among others. The client can access the internet based on a network protocol and a network communication module, and can transmit network data with a server or other clients through the internet. In a particular embodiment, the client may be a terminal device accessing the communication network based on a network protocol. Specifically, for example, the client may be a mobile smart phone, a computer (including a laptop computer and a desktop computer), a tablet electronic device, a Personal Digital Assistant (PDA), or a smart wearable device. Of course, the client may be software that can run on any of the above listed devices. Specifically, the client may be application software installed on a mobile smart phone or a tablet electronic device, and may be, for example, a pai-bao, a tianmao mall, and the like.
In this embodiment, the client receives a preset page access instruction, which may indicate that corresponding service data needs to be acquired, so as to perform page display on the acquired service data for a user to refer to. The preset page access command itself may be an electrical signal input. Specifically, for example, the client may be software running on a terminal device configured with a touch display, such as a mobile smart phone, a tablet electronic device, and the like, and when the software is run, the touch display of the terminal device is triggered to generate the electrical signal. Alternatively, the client may be a software running on a terminal device equipped with a non-touch display, for example, a desktop computer, and another input hardware device for operating the terminal device when running the software may generate the electrical signal for clicking a mouse, for example.
In this embodiment, the preset page may be a web page including service data. The preset page can be displayed for the user to refer to, so that the user can obtain corresponding information or resources, and an information interaction function can be provided between the user and the terminal equipment. Specifically, for example, the preset page may be an interface of the mobile phone when panning, or may be a corresponding page displayed after icon buttons of a skatecat, a money book, a public praise takeout, and the like are triggered, for example, related buttons provided on the interface of the mobile phone when panning.
In this embodiment, the first address may be a network address capable of linking the preset page, and the relevant data corresponding to the preset page may be obtained by accessing the first address, so that the preset page may be displayed on the client.
The first obtaining module 13 may be configured to obtain, from a preset server according to the first address, first service data corresponding to the preset page.
In this embodiment, the predetermined server may include any hardware device capable of responding to the service data request and feeding back the service data to the client, and software necessary for driving the hardware device to operate. The provisioning server may be provided with a predetermined port through which traffic data may be transmitted to the client. Specifically, for example, the preset server may transmit data to the client based on the HTTP protocol.
In this embodiment, the preset page may include a frame, the service data corresponding to the preset page may be obtained by accessing the first address, and the obtained first service data is filled into the frame, so that the preset page may be formed, and the preset page may be displayed at the client.
In this embodiment, the first service data may be stored in a database of the preset server, which may be a concrete representation form and a carrier of the information. Specifically, the first service data may include, but is not limited to, symbols, letters, numbers, voice, images, video, and the like. The first service data may be fed back by the preset server according to the corresponding first address after the client starts the corresponding service function.
The determining module 15 may be configured to obtain the second address when determining that degradation is required according to the first service data and a preset degradation rule configured locally at the client.
In this embodiment, the degrading may include: and when the client displays the preset page, changing the address of the service data of the preset page. Specifically, the first address may be changed to a storage path of the locally stored service data, or the first address may be changed so that the changed service data is obtained from the server. Specifically, for example, the downgrading may be that a relevant page accessed by the client is abnormal and cannot be normally displayed in a loading process, or the relevant page is added with another function, the updated content of the relevant page cannot be displayed, and in order to not affect the use of the added function, the relevant page added with the other function is switched to a simple version so that the relevant page can be displayed on a specified control (for example, a Webview control or a Browser control) of the client. Specifically, examples are: the E-commerce platform is additionally provided with a function of accessing a home page of the E-commerce platform to obtain the red envelope, and a corresponding client version with the function is not released, or even if the client version with the function is released, a user cannot update to the new version in time, so that the client of the current version of the user cannot display the page with the new function when the client runs. Then the home page with the added function can be switched to the version which can be displayed on the mobile phone of the user, so that the user can use the added function.
In this embodiment, the preset downgrading rule may be configured locally at the client in advance. Specifically, the client may be locally preconfigured with a preset downgrading rule storage module, and the preset downgrading rule storage module may be configured to store the preset downgrading rule. The preset downgrading rule can be used for judging whether the preset page needs to be subjected to downgrading treatment. The preset downgrading rule configured locally according to the first service data and the client may include: the client receives the first service data fed back by the service server and is accompanied by a preset degradation instruction, or the first service data received by the client is not matched with the data required by the preset page, and the like. In this embodiment, the manner of configuring the preset degradation rule in the client may include that the preset degradation rule is implemented by a program code and stored in the client, or the preset degradation rule is implemented by a logic circuit and integrated in a circuit of the client. In this embodiment, when demotion is required, the second address is acquired. The second address may be a network address capable of linking the preset page, and the related data corresponding to the preset page may be obtained by accessing the second address, so that the preset page may be displayed on the client. The second address may be pre-stored in the client, or may be obtained by performing an operation on the first address by using a preset algorithm.
In this embodiment, the preset downgrading rule configured in the client may be a part of a bottom layer code or an internal circuit architecture of the client, so that the preset downgrading rule in the client may be configured uniformly for a plurality of pages without individually configuring each page, thereby saving time and labor. Of course, other modifications can be made by those skilled in the art, for example, those skilled in the art implement a preset destaging rule at the client, which configures destaged code for each page. Other modifications are possible by those skilled in the art in light of the above teachings, but are intended to be included within the scope of the present disclosure as long as they achieve the same or similar functions and results as those achieved by the present disclosure. The second obtaining module 17 may be configured to obtain the second service data from the second address.
In this embodiment, the second service data may be stored in a database of the preset server, or may be stored locally at the client. The second service data may be a concrete representation and carrier of information. Specifically, the second service data may include, but is not limited to, symbols, letters, numbers, voice, images, video, and the like. Of course, the second service data may also include complete web page data. The second service data may be fed back by the preset server or the client according to the corresponding second address after the client starts the corresponding service function.
The page display module 19 may be configured to perform page display on the second service data.
In this embodiment, the second service data is obtained and may be filled into a corresponding page frame. Or directly displaying the whole webpage data included in the second service data. The client may provide environmental support for the page presentation. Such as data interfaces, further program interaction, etc.
According to the client side, whether page degradation needs to be carried out is judged through the preset degradation rule configured on the client side, a plurality of server side modules corresponding to the service modules are independently arranged without guaranteeing the function of normally operating the page newly-added function, or data and codes required by a specific jump page are stored without the server side modules responding to the abnormity in the page loading process, so that the unified configuration of a degradation scheme on the client side is realized, and the development cost of responding to the abnormity in the page loading process or guaranteeing the function of normally operating the page newly-added function in the page display process is reduced. Moreover, the preset degradation rule can be integrated in the client, so that the uniform degradation rule can be adopted for judging different pages, and the workload of code maintenance is reduced.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardbyscript Description Language (vhr Description Language), and the like, which are currently used by Hardware compiler-software (Hardware Description Language-software). It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present application.
Embodiments of the present application also provide a client, which includes a display, a network communication module, a memory, and a processor. The display may be an LCD display, an LCD touch display, or the like. The network communication module may communicate data based on a network communication protocol. Such as HTTP, TCP/IP protocols, etc. The memory may be a magnetic disk memory or a solid state memory, etc. The processor can be a large-scale integrated circuit and has an operation processing function. The processor receives a preset page access instruction through input equipment of a client; wherein the preset page has a first address. The input device may include a physical keyboard, or a device with touch-sensing. In one embodiment, the input device is integrated with the display as a touch display. The processor acquires first service data corresponding to the preset page from a preset server through the network communication module according to the first address; according to the configured preset degradation rule, when degradation is judged to be needed, a second address is obtained; acquiring second service data from the second address; and controlling the display to display the second service data on a page.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the client-side implementation, since the operation performed by the processor is substantially similar to the method implementation, the description is simple, and reference may be made to part of the description of the method implementation for relevant points.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Although the present application has been described in terms of embodiments, those of ordinary skill in the art will recognize that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (9)

1. A method for a client to display a page, comprising:
receiving a preset page access instruction; the preset page is provided with a first address; the first address is a network address for linking the preset page;
acquiring first service data corresponding to the preset page from a preset server according to the first address;
according to the first service data and a preset degradation rule configured locally at the client, when judging that the page degradation is needed, acquiring a second address; wherein the degrading comprises: when the client displays the preset page, changing an address for acquiring the service data of the preset page, wherein the second address is used for acquiring degraded service data corresponding to the preset page, and the second address is a unique address obtained according to the first address according to a preset algorithm;
acquiring second service data from the second address;
and displaying the second service data on a page.
2. The method of claim 1, wherein the preset destaging rules comprise: and when the first service data is accompanied by a preset degradation instruction, degrading the currently accessed page.
3. The method of claim 1, wherein the preset destaging rules comprise: and when the data structure of the first service data is not matched with the preset page, degrading the currently accessed page.
4. The method of claim 1, wherein the preset destaging rules further comprise: and when the preset page loading process is abnormal, degrading the currently accessed page.
5. The method of claim 1, wherein the step of obtaining the second address comprises: and reading the storage address of the local service data.
6. The method of claim 5, wherein the step of performing page exposure comprises: and analyzing the locally stored service data by adopting the specified control.
7. The method of claim 1, wherein the step of obtaining the second address comprises: obtaining the second address according to the first address and a preset algorithm; the second address points to the preset server.
8. The method of claim 7, wherein the first address comprises a page identifier, and the page identifier is capable of identifying the preset page; the page identification is also included in the second address.
9. A client, comprising:
the receiving module is used for receiving a preset page access instruction; the preset page is provided with a first address; the first address is a network address for linking the preset page;
the first obtaining module is used for obtaining first service data corresponding to the preset page from a preset server according to the first address;
the judging module is used for acquiring a second address when judging that the page degradation is needed according to the first service data and a preset degradation rule configured locally at the client; wherein the degrading comprises: when the client displays the preset page, changing an address for acquiring the service data of the preset page, wherein the second address is used for acquiring degraded service data corresponding to the preset page, and the second address is a unique address obtained according to the first address according to a preset algorithm;
a second obtaining module, configured to obtain second service data from the second address;
and the page display module is used for displaying the second service data in a page.
CN201610087508.9A 2016-02-16 2016-02-16 Method for displaying page by client and client Active CN107085580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610087508.9A CN107085580B (en) 2016-02-16 2016-02-16 Method for displaying page by client and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610087508.9A CN107085580B (en) 2016-02-16 2016-02-16 Method for displaying page by client and client

Publications (2)

Publication Number Publication Date
CN107085580A CN107085580A (en) 2017-08-22
CN107085580B true CN107085580B (en) 2021-11-09

Family

ID=59614103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610087508.9A Active CN107085580B (en) 2016-02-16 2016-02-16 Method for displaying page by client and client

Country Status (1)

Country Link
CN (1) CN107085580B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442406B (en) * 2018-05-02 2022-08-12 北京京东乾石科技有限公司 Paging control data processing method, paging control and electronic equipment
CN110851192B (en) * 2018-07-27 2024-08-16 北京京东尚科信息技术有限公司 Method and device for responding to degraded switch configuration
CN111753224A (en) * 2019-03-27 2020-10-09 北京京东尚科信息技术有限公司 Page processing method, device and equipment
CN112114988B (en) * 2019-06-21 2023-03-31 顺丰科技有限公司 Client starting method, device, terminal and storage medium
CN110427237B (en) * 2019-07-29 2023-10-20 创新先进技术有限公司 Method and device for cross-application access to target page and electronic equipment
CN111427703A (en) * 2020-03-12 2020-07-17 上海昊沧系统控制技术有限责任公司 Industrial data real-time display method and system
CN113761430A (en) * 2020-07-17 2021-12-07 北京京东尚科信息技术有限公司 Service access method, device, equipment and computer readable storage medium
CN113778743A (en) * 2020-09-16 2021-12-10 北京沃东天骏信息技术有限公司 Method and apparatus for application degradation, electronic device, and medium
CN112437148B (en) * 2020-11-20 2023-03-07 北京奇艺世纪科技有限公司 Service request processing method and device, service server and system
CN112732757B (en) * 2020-12-30 2023-07-25 北京奇艺世纪科技有限公司 Method, system, device, equipment and storage medium for processing degraded data
CN112765511B (en) * 2021-01-28 2024-04-23 北京达佳互联信息技术有限公司 Business object display method, device, equipment, storage medium and program product
CN113220394A (en) * 2021-05-07 2021-08-06 苏州摩多多信息科技有限公司 Method, system and medium for mobile terminal page disaster tolerance

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904947B (en) * 2012-09-29 2019-07-23 北京百度网讯科技有限公司 Applications client shows the method and system of pattern update and/or expansion of content
CN103984686B (en) * 2013-02-07 2018-10-12 阿里巴巴集团控股有限公司 page switching method and device
CN104111944B (en) * 2013-04-19 2018-09-18 阿里巴巴集团控股有限公司 Page processing method and device and page generation method and device
CN104239432A (en) * 2014-08-27 2014-12-24 百度在线网络技术(北京)有限公司 Method and device for identifying responsive pages

Also Published As

Publication number Publication date
CN107085580A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
CN107085580B (en) Method for displaying page by client and client
US11269696B2 (en) Application processing method and apparatus
EP3876116B1 (en) Method and apparatus for running mini program, electronic device, and storage medium
US20240095043A1 (en) Execution of sub-application processes within application program
CN106569900B (en) Applied program processing method and device
CN100421375C (en) Data sharing system, method and software tool
CN107679113B (en) Light application acquisition method and device and electronic device
CN112114913B (en) Application program interface updating method and device, computer equipment and storage medium
CN109522500B (en) Webpage display method, device, terminal and storage medium
CN111770161B (en) https sniffing jump method and device
CN112783783A (en) Webpage point burying method, device and equipment and readable storage medium
CN111610972A (en) Page generation method, device, equipment and storage medium
CN109086342B (en) Method, medium and terminal for mass production and operation and maintenance of website templates
CN112579048A (en) Applet integration method, device, electronic equipment and storage medium
CN110489679B (en) Browser kernel processing method and device and storage medium
CN113157374A (en) Page mode switching method, device, equipment and storage medium
CN112905225A (en) Method and device for creating continuous integration tool construction task
CN113326079A (en) Service version switching method, switching device, electronic equipment and storage medium
US20130151945A1 (en) Processing Published and Subscribed Events
CN112287261A (en) Resource loading method and electronic equipment
CN112764746A (en) Data processing method and device, electronic equipment and storage medium
CN111538553B (en) Dual-core Web desktop application access processing method and device and storage medium
JP2021140781A (en) Method, device, equipment, program and computer memory medium for source channel determination
WO2012160561A1 (en) Computerized system and method for remote accessto a computer program
CN114217791A (en) Method, device and storage medium for customizing function view on application interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant