[go: up one dir, main page]

CN107168999A - A kind of method for updating pages and device - Google Patents

A kind of method for updating pages and device Download PDF

Info

Publication number
CN107168999A
CN107168999A CN201710203593.5A CN201710203593A CN107168999A CN 107168999 A CN107168999 A CN 107168999A CN 201710203593 A CN201710203593 A CN 201710203593A CN 107168999 A CN107168999 A CN 107168999A
Authority
CN
China
Prior art keywords
page
page data
data
updated
server
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.)
Pending
Application number
CN201710203593.5A
Other languages
Chinese (zh)
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.)
MIGU Digital Media Co Ltd
Original Assignee
MIGU Digital Media 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 MIGU Digital Media Co Ltd filed Critical MIGU Digital Media Co Ltd
Priority to CN201710203593.5A priority Critical patent/CN107168999A/en
Publication of CN107168999A publication Critical patent/CN107168999A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

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 invention discloses a kind of method for updating pages, including:The full dose page data being locally stored is obtained in advance;Methods described also includes:The inquiry request updated the data is sent using (APP) user end to server, identification information is carried in the inquiry request, the identification information is used to judge whether the page data of the APP clients current request updates for server, and the page data that determination updates when judging to have renewal;The APP clients are according to the page data updated and the full dose page data being locally stored, the display page after generation renewal.The present invention further simultaneously discloses a kind of renewal of the page device.

Description

一种页面更新方法及装置A page updating method and device

技术领域technical field

本发明涉及计算机领域中页面数据处理技术,尤其涉及一种页面更新方法及装置。The invention relates to page data processing technology in the field of computers, in particular to a page update method and device.

背景技术Background technique

随着互联网信息技术的不断发展,越来越多的智能终端,如智能手机、笔记本电脑、平板电脑、智能手表等被开发出来,并广泛地应用在生活的方方面面;相应的,安装在这些智能终端上的应用(APP,Application)可以分为原生应用、Web应用、以及混合应用。With the continuous development of Internet information technology, more and more smart terminals, such as smart phones, laptops, tablets, smart watches, etc., have been developed and widely used in all aspects of life; Applications (APP, Application) on a terminal can be classified into native applications, web applications, and hybrid applications.

其中,原生应用,是指专门针对某一类智能终端而开发的应用,例如,针对IOS操作系统开发的应用或者针对Android操作系统开发的应用,都可以称之为原生应用,且这类应用可以直接在对应的智能终端的操作系统上运行;Web应用,简单来说是指一种基于浏览器而设计开发的应用,Web应用可以利用智能终端上的浏览器,比如windows系统中的IE浏览器、iPhone中的Safari浏览器来运行,且这类应用是在各种不同的操作系统上运行的;而混合应用,顾名思义就是指原生应用与Web应用的结合体,可见,混合应用兼具了原生应用和Web应用的特点,通常是在应用中内嵌一个或多个网页视图(Web View),通过Web View来加载网页数据。Among them, the native application refers to an application developed specifically for a certain type of smart terminal. For example, an application developed for the IOS operating system or an application developed for the Android operating system can be called a native application, and such applications can be Run directly on the operating system of the corresponding smart terminal; Web application, in simple terms, refers to an application designed and developed based on a browser, and the Web application can use the browser on the smart terminal, such as the IE browser in the windows system , Safari browser in the iPhone to run, and such applications run on various operating systems; and hybrid applications, as the name implies, refer to the combination of native applications and Web applications. It can be seen that hybrid applications have both native and web applications. Applications and web applications are usually characterized by embedding one or more web view (Web View) in the application, and loading web page data through the Web View.

由于混合应用兼具了原生应用具备的良好用户交互体验的优势,以及Web应用具备的跨平台开发的优势,因此,目前智能终端上的一些主流应用都在朝着混合应用的方向发展。而智能终端上的APP在运行过程中,APP客户端为用户所显示的页面常常会出现各种更新,比如客户端当前显示页面中的图标、图片或者页面中所显示的文字内容发生了更新等,且这种情况在混合应用和Web应用中更为常见。Because hybrid applications have both the advantages of good user interaction experience of native applications and the advantages of cross-platform development of web applications, some mainstream applications on smart terminals are currently developing in the direction of hybrid applications. While the APP on the smart terminal is running, the page displayed by the APP client for the user often undergoes various updates, such as the icon, picture or text content displayed on the page currently displayed by the client is updated, etc. , and this situation is more common in hybrid applications and web applications.

目前,为达到对APP客户端所显示的页面进行更新的目的,往往需要APP客户端向服务器请求更新后的页面的全量数据,并下载更新后的页面的全量数据到APP客户端本地,进而根据下载的页面数据重新生成页面,并为用户加载更新后的页面。以混合应用为例,用户在使用混合应用时,混合应用中的Web应用部分会时刻向服务器发送请求,以检测当前显示的页面是否发生更新,当检测到当前显示的页面发生更新时,APP客户端将向服务器请求更新后的页面的全部数据,并将这些全部数据下载到APP客户端本地,然后根据下载到本地的页面数据重新生成更新后的页面,并展示给用户。At present, in order to achieve the purpose of updating the page displayed by the APP client, it is often necessary for the APP client to request the server for the full amount of data of the updated page, and download the full amount of data of the updated page to the local APP client, and then according to The downloaded page data regenerates the page and loads the updated page for the user. Take the hybrid application as an example. When the user uses the hybrid application, the web application part in the hybrid application will send a request to the server at all times to detect whether the currently displayed page is updated. When it detects that the currently displayed page is updated, the APP client The terminal will request all the data of the updated page from the server, and download all the data to the local APP client, and then regenerate the updated page according to the downloaded page data, and display it to the user.

很显然,上述现有的这种页面更新方法,通常在页面每次发生更新时,均需要下载更新后的页面的全量数据,这样会造成用户流量的浪费;此外,当用户当前所处的网络环境如2G网络较差时,往往需要较长的时间才能够将更新后的页面的全量数据下载到客户端本地,而在全量数据下载过程中,APP客户端可能无法为用户展示更新后的页面,或者仅能为用户展示更新前的页面,从而导致用户体验较差。Obviously, the above-mentioned existing page update method usually needs to download the full amount of data of the updated page every time the page is updated, which will cause a waste of user traffic; in addition, when the user's current network When the environment such as 2G network is poor, it often takes a long time to download the full data of the updated page to the local client, and during the full data download process, the APP client may not be able to display the updated page for the user , or only the page before the update can be displayed to the user, resulting in a poor user experience.

发明内容Contents of the invention

有鉴于此,本发明实施例期望提供一种页面更新方法及装置,能够有效节省网络流量,提高页面响应速度,同时保证即时更新终端上页面的展示内容。In view of this, the embodiments of the present invention expect to provide a page updating method and device, which can effectively save network traffic, improve page response speed, and at the same time ensure that the display content of the page on the terminal is updated immediately.

为达到上述目的,本发明实施例的技术方案是这样实现的:In order to achieve the above object, the technical solution of the embodiment of the present invention is achieved in this way:

本发明实施例提供一种页面更新方法,预先获取本地存储的全量页面数据;所述方法还包括:An embodiment of the present invention provides a method for updating a page, which pre-acquires a full amount of locally stored page data; the method further includes:

APP客户端向服务器发送更新数据的查询请求,所述查询请求中携带有标识信息,所述标识信息用于供服务器判断所述APP客户端当前请求的页面数据是否发生更新,以及在判断出有更新时确定发生更新的页面数据;The APP client sends a query request for updating data to the server, the query request carries identification information, and the identification information is used for the server to determine whether the page data currently requested by the APP client is updated, and when it is determined that there is When updating, determine the updated page data;

所述APP客户端根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面。The APP client generates an updated display page according to the updated page data and the locally stored full amount of page data.

上述方案中,所述页面数据的类型包括:文字类型的页面数据、图片类型的页面数据、样式类型的页面数据;In the above scheme, the types of the page data include: text type page data, image type page data, and style type page data;

在所述获取本地存储的全量页面数据之后,所述方法还包括:根据页面数据的不同类型,将所述全量页面数据划分为至少两个子页面数据,每个子页面数据对应有唯一标识。After the acquisition of the locally stored full amount of page data, the method further includes: dividing the full amount of page data into at least two sub-page data according to different types of page data, and each sub-page data corresponds to a unique identifier.

上述方案中,所述APP客户端向服务器发送更新数据的查询请求,包括:In the above solution, the APP client sends a query request for updating data to the server, including:

将各子页面数据的唯一标识携带于所述查询请求中,所述子页面数据的唯一标识用于供服务器与本地存储的对应类型的子页面数据的唯一标识进行比较,并将发生变化的唯一标识对应的页面数据确定为发生更新的页面数据。The unique identifier of each subpage data is carried in the query request, and the unique identifier of the subpage data is used for the server to compare with the unique identifier of the corresponding type of subpage data stored locally, and the changed unique identifier The page data corresponding to the identification is determined as the updated page data.

上述方案中,所述APP客户端向服务器发送更新数据的查询请求,包括:In the above solution, the APP client sends a query request for updating data to the server, including:

将更新后各显示页面的位置信息携带于所述查询请求中,所述位置信息用于供服务器比较更新前后显示页面中同一位置区域内的页面数据是否相同,并将处于同一位置区域内发生变化的页面数据确定为发生更新的页面数据。The location information of each displayed page after updating is carried in the query request, and the location information is used for the server to compare whether the page data in the same location area of the displayed page before and after the update are the same, and will be changed in the same location area The page data of is determined as the updated page data.

上述方案中,在所述生成更新后的显示页面之后,所述方法还包括:加载所述更新后的显示页面,并展示给用户。In the above solution, after the generation of the updated display page, the method further includes: loading the updated display page and displaying it to the user.

本发明实施例还提供一种页面更新装置,所述装置包括:获取模块、发送模块、生成模块;其中,An embodiment of the present invention also provides a page update device, the device includes: an acquisition module, a sending module, and a generation module; wherein,

所述获取模块,用于预先获取本地存储的全量页面数据;The obtaining module is used to pre-acquire the full amount of page data stored locally;

所述发送模块,用于向服务器发送更新数据的查询请求,所述查询请求中携带有标识信息,所述标识信息用于供服务器判断APP客户端当前请求的页面数据是否发生更新,以及在判断出有更新时确定发生更新的页面数据;The sending module is configured to send a query request for updating data to the server, the query request carries identification information, and the identification information is used for the server to judge whether the page data currently requested by the APP client is updated, and when judging Determine the updated page data when there is an update;

所述生成模块,用于根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面。The generating module is configured to generate an updated display page according to the updated page data and the locally stored full amount of page data.

上述方案中,所述页面数据的类型包括:文字类型的页面数据、图片类型的页面数据、样式类型的页面数据;In the above scheme, the types of the page data include: text type page data, image type page data, and style type page data;

所述装置还包括:划分模块,用于在所述获取模块获取本地存储的全量页面数据之后,根据页面数据的不同类型,将所述全量页面数据划分为至少两个子页面数据,每个子页面数据对应有唯一标识。The device further includes: a dividing module, configured to divide the full amount of page data into at least two sub-page data according to different types of page data after the acquisition module acquires the locally stored full amount of page data, each sub-page data corresponds to a unique identifier.

上述方案中,所述发送模块,具体用于:将各子页面数据的唯一标识携带于所述查询请求中,所述子页面数据的唯一标识用于供服务器与本地存储的对应类型的子页面数据的唯一标识进行比较,并将发生变化的唯一标识对应的页面数据确定为发生更新的页面数据。In the above solution, the sending module is specifically configured to: carry the unique identifier of each subpage data in the query request, and the unique identifier of the subpage data is used for the corresponding type of subpage stored by the server and locally The unique identifier of the data is compared, and the page data corresponding to the changed unique identifier is determined as the updated page data.

上述方案中,所述发送模块,还具体用于:将更新后各显示页面的位置信息携带于所述查询请求中,所述位置信息用于供服务器比较更新前后显示页面中同一位置区域内的页面数据是否相同,并将处于同一位置区域内发生变化的页面数据确定为发生更新的页面数据。In the above solution, the sending module is further specifically configured to: carry the location information of each displayed page after updating in the query request, and the location information is used for the server to compare the location information in the same location area of the displayed page before and after the update. Whether the page data is the same, and determine the changed page data in the same location area as the updated page data.

上述方案中,所述装置还包括:展示模块,用于在所述生成模块生成更新后的显示页面之后,加载所述更新后的显示页面,并展示给用户。In the solution above, the device further includes: a display module, configured to load the updated display page after the generating module generates the updated display page, and display it to the user.

本发明实施例所提供的页面更新方法及装置,预先获取本地存储的全量页面数据;APP客户端向服务器发送更新数据的查询请求,所述查询请求中携带有标识信息,所述标识信息用于供服务器判断所述APP客户端当前请求的页面数据是否发生更新,以及在判断出有更新时确定发生更新的页面数据;所述APP客户端根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面。如此,在对APP客户端的显示页面进行更新时,无需类似于现有技术下载更新后的页面的全量数据,而只需下载本次更新的页面数据,这样,不仅可以节约网络流量和下载资源,还能够提高页面响应速度,同时保证终端上页面展示内容更新的即时性,从而提升用户的使用体验。The page update method and device provided by the embodiments of the present invention obtain the full amount of locally stored page data in advance; the APP client sends a query request for updating data to the server, and the query request carries identification information, and the identification information is used to For the server to judge whether the page data currently requested by the APP client is updated, and determine the updated page data when it is judged that there is an update; the APP client is based on the updated page data and the full amount of pages stored locally data to generate an updated display page. In this way, when updating the display page of the APP client, it is not necessary to download the full amount of data of the updated page similar to the prior art, but only need to download the page data of this update. In this way, not only network traffic and download resources can be saved, It can also improve the response speed of the page, and at the same time ensure the immediacy of updating the content displayed on the page on the terminal, thereby improving the user experience.

附图说明Description of drawings

图1为本发明实施例一提供的页面更新方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation flow of the page update method provided by Embodiment 1 of the present invention;

图2为本发明实施例二提供的页面更新方法的具体实现流程示意图;FIG. 2 is a schematic diagram of a specific implementation flow of the page update method provided by Embodiment 2 of the present invention;

图3为本发明实施例二提供的一种更新前的显示页面的示意图;FIG. 3 is a schematic diagram of a display page before updating provided by Embodiment 2 of the present invention;

图4为本发明实施例二提供的一种更新后的显示页面的示意图;FIG. 4 is a schematic diagram of an updated display page provided by Embodiment 2 of the present invention;

图5为本发明实施例二提供的另一种更新后的显示页面的示意图;FIG. 5 is a schematic diagram of another updated display page provided by Embodiment 2 of the present invention;

图6为本发明实施例三提供的页面更新装置的组成结构示意图。FIG. 6 is a schematic diagram of the composition and structure of the page update device provided by Embodiment 3 of the present invention.

具体实施方式detailed description

为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。In order to understand the characteristics and technical contents of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the present invention.

在本发明实施例中,所述智能终端可以包括但不限于智能手机、平板、掌上电脑等电子设备。In the embodiment of the present invention, the smart terminal may include, but not limited to, smart phones, tablets, palmtop computers and other electronic devices.

实施例一Embodiment one

如图1所示,本发明实施例中页面更新方法的实现流程,包括以下步骤:As shown in Figure 1, the implementation process of the page update method in the embodiment of the present invention includes the following steps:

步骤101:预先获取本地存储的全量页面数据;Step 101: Pre-acquire the full amount of page data stored locally;

这里,可将页面数据划分为几种不同类型的数据,例如:文字类型的页面数据、图片类型的页面数据、样式类型的页面数据等,这样,APP客户端就可以根据页面数据中的样式类型数据,确定显示页面的样式布局,并根据页面数据中的文字类型数据以及图片类型数据,确定显示页面中具体显示的内容,从而根据获取到的页面数据渲染生成全量显示页面。Here, the page data can be divided into several different types of data, for example: text type page data, image type page data, style type page data, etc., so that the APP client can Data, determine the style and layout of the display page, and determine the specific display content on the display page according to the text type data and image type data in the page data, so as to render and generate a full display page according to the obtained page data.

在执行本步骤之后,所述方法还包括:根据页面数据的不同类型,将所述全量页面数据划分为至少两个子页面数据,每个子页面数据对应有唯一标识。After performing this step, the method further includes: dividing the full amount of page data into at least two sub-page data according to different types of page data, and each sub-page data corresponds to a unique identifier.

需要说明的是,这里采用唯一标识可以便于对全量页面数据中划分的各个子页面数据进行区分,即可以为全量页面数据中的各个子页面数据设置唯一标识;所述唯一标识,既可以是子页面数据对应的压缩包的包名,也可以是通过加密算法如MD5对子页面数据进行加密而得到的一段字符串等,因此,只要能够唯一表示该子页面数据的变量,均可以作为该子页面数据的唯一标识。It should be noted that the unique identifier used here can facilitate the distinction of each subpage data divided in the full amount of page data, that is, a unique identifier can be set for each subpage data in the full amount of page data; the unique identifier can be either a subpage The package name of the compressed package corresponding to the page data can also be a string obtained by encrypting the subpage data through an encryption algorithm such as MD5. Therefore, any variable that can uniquely represent the subpage data can be used as the subpage data. Unique identifier for page data.

步骤102:APP客户端向服务器发送更新数据的查询请求,所述查询请求中携带有标识信息,所述标识信息用于供服务器判断所述APP客户端当前请求的页面数据是否发生更新,以及在判断出有更新时确定发生更新的页面数据;Step 102: The APP client sends a query request for updating data to the server, and the query request carries identification information, and the identification information is used for the server to determine whether the page data currently requested by the APP client is updated, and in the Determine the updated page data when it is judged that there is an update;

这里,所述查询请求中携带有已经下载到APP客户端本地的不同类型的子页面数据的唯一标识、以及不同类型的子页面数据在显示页面中所处的位置标识等标识信息。Here, the query request carries identification information such as unique identifiers of different types of subpage data that have been downloaded to the local APP client, and location identifiers of different types of subpage data in the display page.

这里,本步骤具体包括:将各子页面数据的唯一标识携带于所述查询请求中,所述子页面数据的唯一标识用于供服务器与本地存储的对应类型的子页面数据的唯一标识进行比较,并将发生变化的唯一标识对应的页面数据确定为发生更新的页面数据;或者,Here, this step specifically includes: carrying the unique identifier of each subpage data in the query request, and the unique identifier of the subpage data is used for the server to compare with the unique identifier of the corresponding type of subpage data stored locally , and determine the page data corresponding to the changed unique identifier as the updated page data; or,

将更新后各显示页面的位置信息携带于所述查询请求中,所述位置信息用于供服务器比较更新前后显示页面中同一位置区域内的页面数据是否相同,并将处于同一位置区域内发生变化的页面数据确定为发生更新的页面数据。The location information of each displayed page after updating is carried in the query request, and the location information is used for the server to compare whether the page data in the same location area of the displayed page before and after the update are the same, and will be changed in the same location area The page data of is determined as the updated page data.

步骤103:所述APP客户端根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面。Step 103: The APP client generates an updated display page according to the updated page data and the full amount of locally stored page data.

这里,在执行本步骤之后,所述方法还包括:加载所述更新后的显示页面,并展示给用户。Here, after performing this step, the method further includes: loading the updated display page and displaying it to the user.

这里,所述APP客户端可采用各种已有的或新的渲染技术,根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面,这里不做限定。Here, the APP client can use various existing or new rendering technologies to generate an updated display page according to the updated page data and the full amount of locally stored page data, which is not limited here.

采用本发明实施例提供的页面更新方法,在对页面进行更新时,只需下载本次更新的页面数据,相比于现有的页面更新方法中需要下载更新后的页面的全量数据,本发明实施例很明显的为用户节约了网络流量以及下载资源,提高了页面响应速度,大大提升了用户的使用体验。Using the page update method provided by the embodiment of the present invention, when updating the page, only the updated page data needs to be downloaded. Compared with the existing page update method that needs to download the full data of the updated page, the present invention The embodiment obviously saves network traffic and download resources for users, improves page response speed, and greatly improves user experience.

实施例二Embodiment two

下面对本发明实施例页面更新方法的具体实现过程做进一步地详细说明。The specific implementation process of the page update method in the embodiment of the present invention will be further described in detail below.

图2给出了本发明实施例页面更新方法的具体实现流程示意图,如图2所示,包括以下步骤:Fig. 2 provides a schematic diagram of the specific implementation flow of the page update method of the embodiment of the present invention, as shown in Fig. 2, including the following steps:

步骤201:在APP客户端首次启动时,该APP客户端会向服务器发送下载数据的请求,并从服务器下载全量页面数据;Step 201: When the APP client is started for the first time, the APP client will send a request for downloading data to the server, and download the full amount of page data from the server;

通常来说,所述页面数据主要包括:主文档页面(page)、以及与该显示页面的显示相关的数据,例如,层叠样式列表(CSS,Cascading Style Sheet)数据、图片数据、文字数据等,且这些不同的数据在APP生成显示页面时可以起到不同的功能。因此,可将页面数据划分成几种不同类型的数据,如文字类型的页面数据、图片类型的页面数据、以及样式类型的页面数据等。这样,APP客户端就可以根据下载到的页面数据中的样式类型数据,确定显示页面的样式布局,并根据页面数据中的文字类型数据以及图片类型数据,确定显示页面中具体显示的内容,从而根据下载的页面数据渲染生成全量显示页面。Generally speaking, the page data mainly includes: the main document page (page), and data related to the display of the display page, for example, cascading style list (CSS, Cascading Style Sheet) data, image data, text data, etc. And these different data can play different functions when the APP generates a display page. Therefore, the page data can be divided into several different types of data, such as text-type page data, image-type page data, and style-type page data. In this way, the APP client can determine the style layout of the displayed page according to the style type data in the downloaded page data, and determine the specific content displayed on the displayed page according to the text type data and picture type data in the page data, thereby Generate a full display page based on the downloaded page data rendering.

举例来说,APP客户端在根据页面数据中的CSS样式文件完成显示页面的布局后,可以进一步地通过Web View来加载页面数据中的文字类型数据以及图片类型数据,从而达到生成显示页面的目的。For example, after the APP client completes the layout of the display page according to the CSS style file in the page data, it can further load the text type data and picture type data in the page data through Web View, so as to achieve the purpose of generating the display page .

这里,在从服务器下载全量页面数据后,根据页面数据的不同类型,将所述全量页面数据划分为至少两个子页面数据。Here, after the full amount of page data is downloaded from the server, the full amount of page data is divided into at least two sub-page data according to different types of the page data.

需要说明的是,为了便于对全量页面数据中的各个子页面数据进行区分,可以为全量页面数据中的各个子页面数据设置唯一标识;该唯一标识既可以是子页面数据对应的压缩包的包名,也可以是通过加密算法如MD5对子页面数据进行加密而得到的一段字符串等,因此,只要能够唯一表示该子页面数据的变量,均可以作为该子页面数据的唯一标识。另外,APP客户端在从服务器下载全量页面数据时,会对应下载全量页面数据中包含的各个子页面数据的唯一标识,并将全量页面数据和各个子页面数据的唯一标识都保存至APP客户端本地。It should be noted that, in order to facilitate the distinction of each subpage data in the full amount of page data, a unique identifier can be set for each subpage data in the full amount of page data; the unique identifier can be the package of the compressed package corresponding to the subpage data It can also be a string obtained by encrypting the subpage data through an encryption algorithm such as MD5. Therefore, as long as the variable can uniquely represent the subpage data, it can be used as the unique identifier of the subpage data. In addition, when the APP client downloads the full amount of page data from the server, it will correspondingly download the unique identifier of each subpage data included in the full amount of page data, and save the full amount of page data and the unique identifier of each subpage data to the APP client local.

步骤202:再次启动APP时,APP客户端向服务器发送更新数据的查询请求;Step 202: When starting the APP again, the APP client sends a query request for updating data to the server;

这里,所述查询请求中可以携带有已经下载到APP客户端本地的不同类型的子页面数据的唯一标识、以及不同类型的子页面数据在显示页面中所处的位置标识等标识信息。Here, the query request may carry identification information such as unique identifiers of different types of subpage data that have been downloaded locally to the APP client, and location identifiers of different types of subpage data in the display page.

步骤203:根据所述查询请求中携带的标识信息,确定发生更新的页面数据;Step 203: Determine the updated page data according to the identification information carried in the query request;

步骤204:根据所述发生更新的页面数据以及事先下载到本地的全量页面数据,生成更新后的显示页面;Step 204: Generate an updated display page according to the updated page data and the full amount of page data downloaded locally in advance;

具体来说,APP客户端可以在向服务器发送更新数据的查询请求时,在查询请求中携带有已经下载到APP客户端本地的不同类型的子页面数据的唯一标识,这样,服务器在接收到APP客户端发送的更新数据的查询请求后,可以将所述查询请求中携带的子页面数据的唯一标识与本地存储的对应类型的子页面数据的唯一标识进行比较,以判断该APP客户端当前请求的页面数据是否发生更新,当服务器中保存的子页面数据的唯一标识中存在至少一个查询请求中不包含的唯一标识时,则确定所述APP客户端当前请求的页面数据发生了更新,进而服务器将发生更新的页面数据发送至该APP客户端。Specifically, when the APP client sends a query request for updating data to the server, the query request carries the unique identifiers of different types of sub-page data that have been downloaded locally to the APP client. In this way, the server receives the APP After the query request for updating data sent by the client, the unique identifier of the subpage data carried in the query request can be compared with the unique identifier of the corresponding type of subpage data stored locally to determine the current request of the APP client. Whether the page data of the APP client is updated, when there is at least one unique identifier not included in the query request among the unique identifiers of the subpage data saved in the server, it is determined that the page data currently requested by the APP client has been updated, and then the server Send the updated page data to the APP client.

下面以页面数据为图片类型数据为例,来详细说明下确定发生更新的页面数据的过程。Taking the page data as picture type data as an example, the process of determining the updated page data will be described in detail below.

比如,APP客户端在向服务器发送的更新数据的查询请求中携带有图片类型数据的唯一标识为1、2、3、4、5,而服务器中保存的页面数据中图片类型数据的唯一标识为1、2、3,则服务器将更新数据的查询请求中携带的唯一标识与服务器中保存的图片类型数据的唯一标识进行比较,可以判断出该APP客户端当前请求的页面数据发生了更新,也就是说,唯一标识为4、5的页面数据为增加的页面数据,或者称之为增量页面数据,即为发生更新的页面数据,此时,将与唯一标识4、5对应的页面数据发送至该APP客户端。这里,与唯一标识4、5对应的页面数据既可以显示在原有页面数据,即与唯一标识1、2、3对应的页面数据的上、下方,也可以显示在与唯一标识1、2、3对应的页面数据的左、右侧,本发明在此不做具体限定,只需使得更新后的与唯一标识1、2、3、4、5对应的页面数据在终端的显示页面上完整、工整的显示。For example, the APP client sends the query request for updating data to the server to carry the unique identifiers of picture type data as 1, 2, 3, 4, 5, while the unique identifiers of picture type data in the page data saved in the server are 1, 2, and 3, the server compares the unique identifier carried in the query request for updating data with the unique identifier of the picture type data saved in the server, and can determine that the page data currently requested by the APP client has been updated, and also That is to say, the page data uniquely identified as 4 and 5 is the added page data, or incremental page data, which is the updated page data. At this time, the page data corresponding to the unique identification 4 and 5 will be sent to the APP client. Here, the page data corresponding to the unique identifiers 4 and 5 can be displayed on the original page data, that is, above and below the page data corresponding to the unique identifiers 1, 2, and 3, or can be displayed on the page data corresponding to the unique identifiers 1, 2, and 3. The left and right sides of the corresponding page data, the present invention does not specifically limit here, it only needs to make the updated page data corresponding to the unique identifiers 1, 2, 3, 4, 5 complete and neat on the display page of the terminal display.

又如,图3给出了一种更新前的显示页面的示意图,如图3所示,图中APP的显示页面中包括A~G共7张图片,这里,可将A~G作为区分图片的唯一标识。在APP首次启动时,该APP对应的客户端已经从服务器中下载了有关图片A~G的数据,后续在使用该APP时,可根据预先下载的图片A~G的数据生成显示页面中的图片A~G。假设在某次页面更新过程中,将图片A更新为图片1,这里,图片A与图片1所占的区域大小相同,且图片B~G仍保持不变,则更新后当用户再次启动该APP时,该APP客户端首先会向服务器发送更新数据的查询请求,以查询该APP的显示页面是否发生了更新,在服务器确定出APP发生了更新,且确定发生更新的页面数据为图片1后,该APP仅需要从服务器下载用于生成图片1的页面数据即可,后续可以根据新下载的图片1的数据,以及预先下载到本地的图片B~G的数据,渲染生成如图4所示的更新后的显示页面。As another example, Figure 3 shows a schematic diagram of a display page before updating. As shown in Figure 3, the APP display page in the figure includes 7 pictures from A to G. Here, A to G can be used as distinguishing pictures unique identifier of . When the APP is started for the first time, the client corresponding to the APP has downloaded the data about the pictures A~G from the server. When using the APP later, the pictures on the display page can be generated according to the data of the pictures A~G downloaded in advance. A~G. Assuming that during a certain page update process, picture A is updated to picture 1. Here, the area occupied by picture A and picture 1 is the same size, and pictures B~G remain unchanged. After the update, when the user starts the APP again , the APP client will first send an update data query request to the server to check whether the display page of the APP has been updated. After the server determines that the APP has been updated and the updated page data is picture 1, The APP only needs to download the page data used to generate picture 1 from the server, and then based on the newly downloaded data of picture 1 and the data of pictures B~G downloaded to the local area in advance, it can be rendered and generated as shown in Figure 4 The updated display page.

这里,可采用各种已有的或新的渲染技术,根据新下载的图片1的数据,以及预先下载到本地的图片B~G的数据,生成更新后的显示页面,这里不做限定。Here, various existing or new rendering technologies can be used to generate updated display pages according to the newly downloaded data of picture 1 and the data of pictures B-G downloaded locally in advance, which is not limited here.

另外,需要特别指出的是,对于图片A与图片1所占的区域大小不同的情况,在将图片A更新为图片1之后,还需要终端系统自动对更新后的图片1、B~G的位置重新进行页面布局的调整,使得终端的显示页面得到完美、工整的显示。这里,可以采用各种已有的或新的调整方法对更新后的图片1、B~G的位置进行页面布局的调整,这里不做限定。In addition, it needs to be pointed out that, for the case where the area occupied by picture A and picture 1 is different in size, after updating picture A to picture 1, the terminal system needs to automatically calculate the positions of the updated pictures 1, B-G Re-adjust the page layout so that the display page of the terminal can be displayed perfectly and neatly. Here, various existing or new adjustment methods may be used to adjust the page layout of the updated pictures 1, B-G positions, which are not limited here.

需要说明的是,还是以页面数据为图片类型数据为例,除了可以通过对更新数据的查询请求中携带的唯一标识与服务器中保存的对应类型页面数据的唯一标识进行比较,以确定发生更新的页面数据之外,还可以根据图片在显示页面中所处的位置区域,来确定发生更新的页面数据。其中,所述图片在显示页面中所处的位置区域,是指在APP生成的显示页面中,每一张完整的图片在该显示页面中所占的位置区域。It should be noted that the page data is still image type data as an example, except that the unique identifier carried in the query request for updated data can be compared with the unique identifier of the corresponding type of page data saved in the server to determine the updated In addition to the page data, the updated page data can also be determined according to the location area of the picture on the display page. Wherein, the position area where the picture is located on the display page refers to the position area occupied by each complete picture in the display page generated by the APP.

具体来说,当服务器中保存的页面数据发生更新后,服务器可以根据更新后的页面数据,确定更新后的显示页面中各图片所占的位置区域,而APP同样可以根据本地保存的更新前的页面数据来确定更新前的显示页面中各图片所占的位置区域,进而APP客户端在向服务器发送更新数据的查询请求时,可以在该查询请求中携带更新前的显示页面中各图片所占的位置区域的信息,通过比较更新前后显示页面中同一位置区域内的图片数据是否相同,以确定此次发生更新的页面数据。Specifically, when the page data saved in the server is updated, the server can determine the location area occupied by each picture in the updated display page according to the updated page data, and the APP can also determine the location area occupied by each picture in the updated display page according to the locally saved page data before the update. Page data to determine the location area occupied by each picture in the display page before updating, and then when the APP client sends a query request for updating data to the server, it can carry the occupied area of each picture in the display page before updating in the query request By comparing the image data in the same location area on the displayed page before and after the update to determine whether the updated page data is the same.

同样,APP显示页面的样式也可以按照上述方式进行更新,例如,某个APP在更新前的显示页面如图3所示,该显示页面中包括A~G共7张图片,以及“首页”、“订单”、“收藏”、“我的”这4个应用图标。假如在临近圣诞节的时候,负责该APP的研发人员为该APP设计了圣诞风格的显示页面样式,并将更新包上传至APP客户端的后台服务器,则当用户在更新后再次启动该APP时,APP客户端会向服务器发送更新数据的查询请求,以从服务器下载本次需要更新的圣诞风格的显示页面样式,并将更新后下载的增量页面数据以及本地预先保存的显示页面样式数据,渲染生成更新后的显示页面,如图5所示,图5中“首页”、“订单”、“收藏”、“我的”这4个应用图标即更新成了圣诞风格的图标。Similarly, the style of the APP display page can also be updated according to the above method. For example, the display page of an APP before updating is shown in Figure 3. The display page includes 7 pictures from A to G, as well as "Home", There are 4 application icons of "Order", "Favorites" and "My". If when Christmas is approaching, the research and development personnel responsible for the APP designed a Christmas-style display page style for the APP, and uploaded the update package to the background server of the APP client, then when the user starts the APP again after the update, The APP client will send a query request for updating data to the server to download the Christmas-style display page style that needs to be updated this time from the server, and render the incremental page data downloaded after the update and the display page style data pre-saved locally. The updated display page is generated, as shown in Figure 5, in which the four application icons of "Home", "Order", "Favorites" and "My" in Figure 5 are updated to Christmas-style icons.

这里需要强调的是,上述是以在APP的显示页面发生更新后,再次启动该APP为例,对本发明实施例提供的页面更新方法进行的介绍,但可以理解的是,本发明实施例提供的页面更新方法除了可以在APP启动时进行,还可以在已经启动的APP进行页面刷新时实现,例如,APP在使用过程中,假设该APP对应的后台服务器对该APP的显示页面进行了更新,则用户可以通过刷新该页面,以使得APP在进行页面刷新时,通过本发明实施例提供的上述页面更新方法从服务器下载发生更新的页面数据,进而可以根据发生更新的页面数据以及本地保存的页面数据,渲染生成更新后的显示页面,并在页面刷新后显示该更新后的显示页面,这里不再详细说明。What needs to be emphasized here is that the above is an example of restarting the APP after the display page of the APP is updated, and introduces the page update method provided by the embodiment of the present invention, but it can be understood that the method provided by the embodiment of the present invention The page update method can be implemented not only when the APP is started, but also when the page of the already started APP is refreshed. For example, during the use of the APP, assuming that the background server corresponding to the APP updates the display page of the APP, then The user can refresh the page so that the APP downloads the updated page data from the server through the above-mentioned page update method provided by the embodiment of the present invention when refreshing the page, and then can download the updated page data according to the updated page data and the locally saved page data. , rendering and generating an updated display page, and displaying the updated display page after the page is refreshed, which will not be described in detail here.

步骤205:APP客户端刷新、加载更新后的显示页面,并将所述更新后的显示页面展示给用户。Step 205: the APP client refreshes and loads the updated display page, and presents the updated display page to the user.

采用本发明实施例提供的页面更新方法,在对页面进行更新时,只需下载本次更新的页面数据,相比于现有的页面更新方法中需要下载更新后的全量页面数据,本发明实施例很明显的为用户节约了网络流量以及下载资源,提高了页面响应速度,大大提升了用户的使用体验。Using the page update method provided by the embodiment of the present invention, when updating the page, only the updated page data needs to be downloaded. The example obviously saves network traffic and download resources for users, improves page response speed, and greatly improves user experience.

实施例三Embodiment Three

为实现上述方法,本发明实施例还提供了一种页面更新装置,如图6所示,该装置包括获取模块601、发送模块602、生成模块603;其中,In order to implement the above method, an embodiment of the present invention also provides a page update device, as shown in FIG. 6 , the device includes an acquisition module 601, a sending module 602, and a generation module 603; wherein,

所述获取模块601,用于预先获取本地存储的全量页面数据;The obtaining module 601 is used to obtain the full amount of page data stored locally in advance;

所述发送模块602,用于向服务器发送更新数据的查询请求,所述查询请求中携带有标识信息,所述标识信息用于供服务器判断APP客户端当前请求的页面数据是否发生更新,以及在判断出有更新时确定发生更新的页面数据;The sending module 602 is configured to send a query request for updating data to the server, where the query request carries identification information, and the identification information is used for the server to determine whether the page data currently requested by the APP client is updated, and in the Determine the updated page data when it is judged that there is an update;

所述生成模块603,用于根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面。The generating module 603 is configured to generate an updated display page according to the updated page data and all locally stored page data.

这里,所述页面数据的类型包括:文字类型的页面数据、图片类型的页面数据、样式类型的页面数据,这样,就可以根据页面数据中的样式类型数据,确定显示页面的样式布局,并根据页面数据中的文字类型数据以及图片类型数据,确定显示页面中具体显示的内容,从而根据获取到的页面数据渲染生成全量显示页面。Here, the types of the page data include: text type page data, picture type page data, and style type page data, so that the style layout of the displayed page can be determined according to the style type data in the page data, and according to The text-type data and image-type data in the page data determine the specific content displayed on the display page, so as to render and generate a full display page according to the obtained page data.

所述装置还包括:划分模块604,用于在所述获取模块601获取本地存储的全量页面数据之后,根据页面数据的不同类型,将所述全量页面数据划分为至少两个子页面数据,每个子页面数据对应有唯一标识。The device further includes: a dividing module 604, configured to divide the full amount of page data into at least two sub-page data according to different types of page data after the acquisition module 601 acquires the locally stored full amount of page data, each sub-page data Page data corresponds to a unique identifier.

所述唯一标识,既可以是子页面数据对应的压缩包的包名,也可以是通过加密算法如MD5对子页面数据进行加密而得到的一段字符串等,因此,只要能够唯一表示该子页面数据的变量,均可以作为该子页面数据的唯一标识。The unique identifier can be the package name of the compressed package corresponding to the subpage data, or a string obtained by encrypting the subpage data through an encryption algorithm such as MD5. Therefore, as long as the subpage can be uniquely represented The variable of the data can be used as the unique identifier of the subpage data.

这里,所述发送模块602,具体用于:将各子页面数据的唯一标识携带于所述查询请求中,所述子页面数据的唯一标识用于供服务器与本地存储的对应类型的子页面数据的唯一标识进行比较,并将发生变化的唯一标识对应的页面数据确定为发生更新的页面数据。Here, the sending module 602 is specifically configured to: carry the unique identifier of each subpage data in the query request, and the unique identifier of the subpage data is used for the corresponding type of subpage data stored by the server and locally The unique identifiers are compared, and the page data corresponding to the changed unique identifier is determined as the updated page data.

所述发送模块602,还具体用于:将更新后各显示页面的位置信息携带于所述查询请求中,所述位置信息用于供服务器比较更新前后显示页面中同一位置区域内的页面数据是否相同,并将处于同一位置区域内发生变化的页面数据确定为发生更新的页面数据。The sending module 602 is also specifically configured to: carry the location information of each displayed page after updating in the query request, and the location information is used for the server to compare whether the page data in the same location area of the displayed page before and after the update is are the same, and determine the changed page data within the same location area as the updated page data.

这里,所述装置还包括:展示模块605,用于在所述生成模块603生成更新后的显示页面之后,加载所述更新后的显示页面,并展示给用户。Here, the device further includes: a display module 605, configured to load the updated display page after the generating module 603 generates the updated display page, and display it to the user.

在实际应用中,所述获取模块601、发送模块602、生成模块603、划分模块604、展示模块605均可由位于智能终端上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。In practical applications, the acquiring module 601, the sending module 602, the generating module 603, the dividing module 604, and the display module 605 can all be provided by a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), Digital Signal Processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA, Field Programmable Gate Array).

本发明实施例预先获取本地存储的全量页面数据;APP客户端向服务器发送更新数据的查询请求,所述查询请求中携带有标识信息,所述标识信息用于供服务器判断所述APP客户端当前请求的页面数据是否发生更新,以及在判断出有更新时确定发生更新的页面数据;所述APP客户端根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面。如此,在对APP客户端的显示页面进行更新时,无需类似于现有技术下载更新后的页面的全量数据,而只需下载本次更新的页面数据,这样,不仅可以节约网络流量和下载资源,还能够提高页面响应速度,同时保证终端上页面展示内容更新的即时性,从而提升用户的使用体验。The embodiment of the present invention pre-acquires the full amount of page data stored locally; the APP client sends a query request for updating data to the server, and the query request carries identification information, and the identification information is used for the server to judge the current status of the APP client. Whether the requested page data is updated, and determine the updated page data when it is judged that there is an update; the APP client generates an updated display page according to the updated page data and the full amount of locally stored page data. In this way, when updating the display page of the APP client, it is not necessary to download the full amount of data of the updated page similar to the prior art, but only need to download the page data of this update. In this way, not only network traffic and download resources can be saved, It can also improve the response speed of the page, and at the same time ensure the immediacy of updating the content displayed on the page on the terminal, thereby improving the user experience.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the within the protection scope of the present invention.

Claims (10)

1.一种页面更新方法,其特征在于,预先获取本地存储的全量页面数据;所述方法还包括:1. A method for updating a page, characterized in that the full amount of page data stored locally is obtained in advance; the method also includes: 应用APP客户端向服务器发送更新数据的查询请求,所述查询请求中携带有标识信息,所述标识信息用于供服务器判断所述APP客户端当前请求的页面数据是否发生更新,以及在判断出有更新时确定发生更新的页面数据;The application APP client sends a query request for updating data to the server, the query request carries identification information, and the identification information is used for the server to determine whether the page data currently requested by the APP client has been updated, and when it determines When there is an update, determine the updated page data; 所述APP客户端根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面。The APP client generates an updated display page according to the updated page data and the locally stored full amount of page data. 2.根据权利要求1所述的方法,其特征在于,所述页面数据的类型包括:文字类型的页面数据、图片类型的页面数据、样式类型的页面数据;2. The method according to claim 1, wherein the types of the page data include: text type page data, picture type page data, style type page data; 在所述获取本地存储的全量页面数据之后,所述方法还包括:根据页面数据的不同类型,将所述全量页面数据划分为至少两个子页面数据,每个子页面数据对应有唯一标识。After the acquisition of the locally stored full amount of page data, the method further includes: dividing the full amount of page data into at least two sub-page data according to different types of page data, and each sub-page data corresponds to a unique identifier. 3.根据权利要求2所述的方法,其特征在于,所述APP客户端向服务器发送更新数据的查询请求,包括:3. The method according to claim 2, wherein the APP client sends a query request for updating data to the server, including: 将各子页面数据的唯一标识携带于所述查询请求中,所述子页面数据的唯一标识用于供服务器与本地存储的对应类型的子页面数据的唯一标识进行比较,并将发生变化的唯一标识对应的页面数据确定为发生更新的页面数据。The unique identifier of each subpage data is carried in the query request, and the unique identifier of the subpage data is used for the server to compare with the unique identifier of the corresponding type of subpage data stored locally, and the changed unique identifier The page data corresponding to the identification is determined as the updated page data. 4.根据权利要求1所述的方法,其特征在于,所述APP客户端向服务器发送更新数据的查询请求,包括:4. The method according to claim 1, wherein the APP client sends a query request for updating data to the server, comprising: 将更新后各显示页面的位置信息携带于所述查询请求中,所述位置信息用于供服务器比较更新前后显示页面中同一位置区域内的页面数据是否相同,并将处于同一位置区域内发生变化的页面数据确定为发生更新的页面数据。The location information of each displayed page after updating is carried in the query request, and the location information is used for the server to compare whether the page data in the same location area of the displayed page before and after the update are the same, and will be changed in the same location area The page data of is determined as the updated page data. 5.根据权利要求1至4任一项所述的方法,其特征在于,在所述生成更新后的显示页面之后,所述方法还包括:加载所述更新后的显示页面,并展示给用户。5. The method according to any one of claims 1 to 4, characterized in that, after generating the updated display page, the method further comprises: loading the updated display page and presenting it to the user . 6.一种页面更新装置,其特征在于,所述装置包括:获取模块、发送模块、生成模块;其中,6. A page update device, characterized in that the device comprises: an acquisition module, a sending module, and a generation module; wherein, 所述获取模块,用于预先获取本地存储的全量页面数据;The obtaining module is used to pre-acquire the full amount of page data stored locally; 所述发送模块,用于向服务器发送更新数据的查询请求,所述查询请求中携带有标识信息,所述标识信息用于供服务器判断APP客户端当前请求的页面数据是否发生更新,以及在判断出有更新时确定发生更新的页面数据;The sending module is configured to send a query request for updating data to the server, the query request carries identification information, and the identification information is used for the server to judge whether the page data currently requested by the APP client is updated, and when judging Determine the updated page data when there is an update; 所述生成模块,用于根据所述发生更新的页面数据和本地存储的全量页面数据,生成更新后的显示页面。The generating module is configured to generate an updated display page according to the updated page data and the locally stored full amount of page data. 7.根据权利要求6所述的装置,其特征在于,所述页面数据的类型包括:文字类型的页面数据、图片类型的页面数据、样式类型的页面数据;7. The device according to claim 6, wherein the types of the page data include: text type page data, picture type page data, and style type page data; 所述装置还包括:划分模块,用于在所述获取模块获取本地存储的全量页面数据之后,根据页面数据的不同类型,将所述全量页面数据划分为至少两个子页面数据,每个子页面数据对应有唯一标识。The device further includes: a dividing module, configured to divide the full amount of page data into at least two sub-page data according to different types of page data after the acquisition module acquires the locally stored full amount of page data, each sub-page data corresponds to a unique identifier. 8.根据权利要求7所述的装置,其特征在于,所述发送模块,具体用于:8. The device according to claim 7, wherein the sending module is specifically used for: 将各子页面数据的唯一标识携带于所述查询请求中,所述子页面数据的唯一标识用于供服务器与本地存储的对应类型的子页面数据的唯一标识进行比较,并将发生变化的唯一标识对应的页面数据确定为发生更新的页面数据。The unique identifier of each subpage data is carried in the query request, and the unique identifier of the subpage data is used for the server to compare with the unique identifier of the corresponding type of subpage data stored locally, and the changed unique identifier The page data corresponding to the identification is determined as the updated page data. 9.根据权利要求7所述的装置,其特征在于,所述发送模块,还具体用于:9. The device according to claim 7, wherein the sending module is further specifically used for: 将更新后各显示页面的位置信息携带于所述查询请求中,所述位置信息用于供服务器比较更新前后显示页面中同一位置区域内的页面数据是否相同,并将处于同一位置区域内发生变化的页面数据确定为发生更新的页面数据。The location information of each displayed page after updating is carried in the query request, and the location information is used for the server to compare whether the page data in the same location area of the displayed page before and after the update are the same, and will be changed in the same location area The page data of is determined as the updated page data. 10.根据权利要求6至9任一项所述的装置,其特征在于,所述装置还包括:展示模块,用于在所述生成模块生成更新后的显示页面之后,加载所述更新后的显示页面,并展示给用户。10. The device according to any one of claims 6 to 9, characterized in that the device further comprises: a display module, configured to load the updated display page after the generation module generates the updated display page Display the page and show it to the user.
CN201710203593.5A 2017-03-30 2017-03-30 A kind of method for updating pages and device Pending CN107168999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710203593.5A CN107168999A (en) 2017-03-30 2017-03-30 A kind of method for updating pages and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710203593.5A CN107168999A (en) 2017-03-30 2017-03-30 A kind of method for updating pages and device

Publications (1)

Publication Number Publication Date
CN107168999A true CN107168999A (en) 2017-09-15

Family

ID=59848882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710203593.5A Pending CN107168999A (en) 2017-03-30 2017-03-30 A kind of method for updating pages and device

Country Status (1)

Country Link
CN (1) CN107168999A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798078A (en) * 2017-10-11 2018-03-13 金蝶软件(中国)有限公司 Billboard method for exhibiting data, device, computer equipment and storage medium
CN108804195A (en) * 2018-06-14 2018-11-13 北京奇艺世纪科技有限公司 A kind of page display method, device, server and client
CN108829485A (en) * 2018-06-25 2018-11-16 腾讯科技(深圳)有限公司 Update method, device, storage medium and the computer equipment of application interface layout
CN109376320A (en) * 2018-09-26 2019-02-22 郑州云海信息技术有限公司 Method and device for updating data item of web interface
CN109582402A (en) * 2017-09-29 2019-04-05 北京金山安全软件有限公司 page display method and device
CN109857425A (en) * 2018-12-27 2019-06-07 山东浪潮商用系统有限公司 A kind of method for updating edition and system based on client terminal web page application
CN110311754A (en) * 2019-06-24 2019-10-08 北京字节跳动网络技术有限公司 A kind of method of reseptance of data, device, storage medium and electronic equipment
CN110659098A (en) * 2019-09-23 2020-01-07 北京城市网邻信息技术有限公司 Data updating method and device, terminal equipment and storage medium
CN110750746A (en) * 2019-10-16 2020-02-04 支付宝(杭州)信息技术有限公司 Data receiving and pushing method, device, equipment and readable medium
CN110795163A (en) * 2019-09-28 2020-02-14 同程网络科技股份有限公司 Home page visual configuration system and configuration method
CN110807229A (en) * 2019-10-14 2020-02-18 许继集团有限公司 A data update method and server for WEB wiring diagram of distribution network master station system
CN111143583A (en) * 2019-12-31 2020-05-12 五八有限公司 Method and device for monitoring data change of media database
CN111158808A (en) * 2019-12-06 2020-05-15 海信视像科技股份有限公司 Display device and whiteboard file storage method
CN111459529A (en) * 2020-05-26 2020-07-28 北京拓世寰宇网络技术有限公司 Application software updating method and device, readable medium and equipment
CN111464571A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Communication method and system, server and client
CN111541758A (en) * 2020-04-17 2020-08-14 支付宝(杭州)信息技术有限公司 Page updating method and device
CN111708957A (en) * 2020-05-29 2020-09-25 平安科技(深圳)有限公司 Method, device and computer equipment for updating front-end page based on index and value index
CN111949354A (en) * 2020-08-13 2020-11-17 北京字节跳动网络技术有限公司 Page content updating method and device
CN111984606A (en) * 2020-07-16 2020-11-24 上海金仕达软件科技有限公司 Data query method, device, terminal device and storage medium
CN112035211A (en) * 2020-11-04 2020-12-04 北京值得买科技股份有限公司 Method for improving article opening speed by preloading article data
CN115471926A (en) * 2022-08-17 2022-12-13 力神(青岛)新能源有限公司 Data analysis optimization method of electric vehicle battery management system
CN115883314A (en) * 2022-12-01 2023-03-31 深圳市玖昔科技发展股份有限公司 Dynamic updating method for application program page

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462231A (en) * 2014-11-11 2015-03-25 北京奇虎科技有限公司 Webpage rendering method, device and system
CN105138376A (en) * 2015-09-01 2015-12-09 北京皮尔布莱尼软件有限公司 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN106446174A (en) * 2016-09-28 2017-02-22 江西博瑞彤芸科技有限公司 Method for page loading in application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462231A (en) * 2014-11-11 2015-03-25 北京奇虎科技有限公司 Webpage rendering method, device and system
CN105138376A (en) * 2015-09-01 2015-12-09 北京皮尔布莱尼软件有限公司 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN106446174A (en) * 2016-09-28 2017-02-22 江西博瑞彤芸科技有限公司 Method for page loading in application

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582402A (en) * 2017-09-29 2019-04-05 北京金山安全软件有限公司 page display method and device
CN107798078A (en) * 2017-10-11 2018-03-13 金蝶软件(中国)有限公司 Billboard method for exhibiting data, device, computer equipment and storage medium
CN107798078B (en) * 2017-10-11 2020-08-04 金蝶软件(中国)有限公司 Billboard data display method and device, computer equipment and storage medium
CN108804195A (en) * 2018-06-14 2018-11-13 北京奇艺世纪科技有限公司 A kind of page display method, device, server and client
CN108804195B (en) * 2018-06-14 2021-08-13 北京奇艺世纪科技有限公司 Page display method and device, server and client
CN108829485A (en) * 2018-06-25 2018-11-16 腾讯科技(深圳)有限公司 Update method, device, storage medium and the computer equipment of application interface layout
CN108829485B (en) * 2018-06-25 2021-03-02 腾讯科技(深圳)有限公司 Application interface layout updating method and device, storage medium and computer equipment
CN109376320A (en) * 2018-09-26 2019-02-22 郑州云海信息技术有限公司 Method and device for updating data item of web interface
CN109857425A (en) * 2018-12-27 2019-06-07 山东浪潮商用系统有限公司 A kind of method for updating edition and system based on client terminal web page application
CN111464571A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Communication method and system, server and client
CN110311754B (en) * 2019-06-24 2022-03-11 北京字节跳动网络技术有限公司 Data receiving method and device, storage medium and electronic equipment
CN110311754A (en) * 2019-06-24 2019-10-08 北京字节跳动网络技术有限公司 A kind of method of reseptance of data, device, storage medium and electronic equipment
CN110659098A (en) * 2019-09-23 2020-01-07 北京城市网邻信息技术有限公司 Data updating method and device, terminal equipment and storage medium
CN110795163A (en) * 2019-09-28 2020-02-14 同程网络科技股份有限公司 Home page visual configuration system and configuration method
CN110795163B (en) * 2019-09-28 2023-07-14 同程网络科技股份有限公司 Front page visual configuration system and configuration method
CN110807229A (en) * 2019-10-14 2020-02-18 许继集团有限公司 A data update method and server for WEB wiring diagram of distribution network master station system
CN110807229B (en) * 2019-10-14 2023-11-10 许继集团有限公司 A data updating method and server for WEB wiring diagram of distribution network master station system
CN110750746A (en) * 2019-10-16 2020-02-04 支付宝(杭州)信息技术有限公司 Data receiving and pushing method, device, equipment and readable medium
CN111158808B (en) * 2019-12-06 2023-08-15 海信视像科技股份有限公司 Display device and whiteboard file storage method
CN111158808A (en) * 2019-12-06 2020-05-15 海信视像科技股份有限公司 Display device and whiteboard file storage method
CN111143583A (en) * 2019-12-31 2020-05-12 五八有限公司 Method and device for monitoring data change of media database
CN111541758A (en) * 2020-04-17 2020-08-14 支付宝(杭州)信息技术有限公司 Page updating method and device
CN111459529A (en) * 2020-05-26 2020-07-28 北京拓世寰宇网络技术有限公司 Application software updating method and device, readable medium and equipment
CN111708957A (en) * 2020-05-29 2020-09-25 平安科技(深圳)有限公司 Method, device and computer equipment for updating front-end page based on index and value index
CN111984606A (en) * 2020-07-16 2020-11-24 上海金仕达软件科技有限公司 Data query method, device, terminal device and storage medium
CN111949354A (en) * 2020-08-13 2020-11-17 北京字节跳动网络技术有限公司 Page content updating method and device
CN111949354B (en) * 2020-08-13 2024-03-12 抖音视界有限公司 Page content updating method and device
CN112035211A (en) * 2020-11-04 2020-12-04 北京值得买科技股份有限公司 Method for improving article opening speed by preloading article data
CN115471926A (en) * 2022-08-17 2022-12-13 力神(青岛)新能源有限公司 Data analysis optimization method of electric vehicle battery management system
CN115883314A (en) * 2022-12-01 2023-03-31 深圳市玖昔科技发展股份有限公司 Dynamic updating method for application program page

Similar Documents

Publication Publication Date Title
CN107168999A (en) A kind of method for updating pages and device
US10412176B2 (en) Website access method, apparatus, and website system
JP6725924B2 (en) Page jump method and apparatus
KR102045602B1 (en) Live tiles without application-code execution
CN114116684B (en) Version management method of deep learning large model and large data set based on Docker containerization
WO2016026384A1 (en) Client page display method, device and system
JP2017526091A (en) Method, terminal and system for dynamically updating application interface
US8001213B2 (en) Method, apparatus and computer program product for providing unrestricted content on a user terminal
JP2017084334A (en) Method and apparatus for extracting virtual machine image file
KR20140001172A (en) Methods for updating applications
EP3879398A1 (en) Method for splitting and recombining application package, method for running application package, and device
JP2019530089A (en) Method and apparatus for realizing communication between web page and native application, and electronic apparatus
CN104104653B (en) A kind of synchronous method, apparatus and system of page info
JP2018045704A (en) Opening unsupported file types through remoting sessions
CN110968356B (en) Method and device for acquiring configuration information
US10574703B1 (en) Content delivery employing multiple security levels
US10880347B1 (en) Media players for digital display devices using proxy services for offline capability
US9513762B1 (en) Static content updates
WO2019037416A1 (en) Control attribute reading method and apparatus, terminal and readable storage medium
CN112256989A (en) Offline package-based page loading method, device, terminal device and storage medium
AU2016202576A1 (en) Techniques for evaluating applications through use of an auxiliary application
CN107193848A (en) Cartography incremental updating method and device
WO2024152682A1 (en) Application program updating and debugging method and apparatus, device, and storage medium
CN103793459A (en) Webpage opening method and webpage opening device
CN116560716A (en) A kind of APP building method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915