WO2019034066A1 - 一种页面更新方法和装置 - Google Patents

一种页面更新方法和装置 Download PDF

Info

Publication number
WO2019034066A1
WO2019034066A1 PCT/CN2018/100559 CN2018100559W WO2019034066A1 WO 2019034066 A1 WO2019034066 A1 WO 2019034066A1 CN 2018100559 W CN2018100559 W CN 2018100559W WO 2019034066 A1 WO2019034066 A1 WO 2019034066A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
offline package
update
trigger
offline
Prior art date
Application number
PCT/CN2018/100559
Other languages
English (en)
French (fr)
Inventor
林传杰
Original Assignee
阿里巴巴集团控股有限公司
林传杰
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司, 林传杰 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019034066A1 publication Critical patent/WO2019034066A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to a page update method and apparatus.
  • Hybrid App refers to the app between web-app and native-app. It has the advantages of "Native App good user interaction experience" and "Web App cross-platform development advantage”.
  • Developing a Hybrid App page can include front-end code and back-end code for the page, where the front-end code can be packaged as an offline package and managed through an offline package management system.
  • the developer can update the offline package in the offline package system; when requesting access to the Hybrid App page, the offline package update of the offline package system can trigger the update of the page.
  • one or more embodiments of the present specification provide a page update method and apparatus to improve the efficiency of page update of a Hybrid App.
  • a page update method comprising:
  • the offline package is sent to the offline package management system to trigger a page update of the Hybrid App through the offline package management system.
  • a dynamic packaging system comprising:
  • the packaging trigger is configured to package the new page file into an offline package, and send the offline package to an offline package management system to trigger a page update of the Hybrid App through the offline package management system.
  • a server device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor implementing the instructions to:
  • the offline package is sent to the offline package management system to trigger a page update of the Hybrid App through the offline package management system.
  • the page updating method and apparatus of one or more embodiments of the present specification can implement automatic updating of offline packages in the offline package management system by being packaged into offline packages by the dynamic packaging system according to the new page files and sent to the offline package management system.
  • the solution can automatically trigger the offline package update when the page file is changed, which reduces the burden on the developer and improves the update efficiency of the Hybrid App offline package.
  • FIG. 2 is a flowchart of a page update method provided by one or more embodiments of the present specification
  • FIG. 3 is a flowchart of a dynamic packaging system updating a page style provided by one or more embodiments of the present specification
  • FIG. 4 is a schematic structural diagram of a dynamic packaging system provided by one or more embodiments of the present specification.
  • FIG. 1 illustrates the system architecture of the Hybrid App.
  • Hybrid App is a hybrid application that uses the native and web app capabilities to build an in-app web app on native.
  • the client 11 may be a foreground displayed by the Hybrid App page, for example, the web app may be displayed in a native app.
  • the display of the Hybrid App includes a cooperation of the front-end code and the back-end code, and the front-end code can be stored in the offline package management system 12.
  • the front-end code can include a style code that determines a page style, and the style code can be used to determine the page. The layout of each part of the content, or the font and color of the page content, or the shape of a certain area of the page.
  • the style of the page can be obtained according to the offline package, and the data of the page is updated by the backend code of the server 13 through the asynchronous request data mode such as ajax, thereby realizing the page display of the entire Hybrid App.
  • the method of this example mainly describes the page update caused by the front-end code.
  • offline packages of the plurality of applications can be managed in the offline package management system 12, for example, web app1, web app2, web app3, and the like.
  • the offline package of the app in the offline package management system 12 can be updated to trigger the update of the page by the update of the offline package.
  • FIG. 2 illustrates a flow of a page update method, which may be used to automatically trigger the update of the front-end code in the offline package.
  • the method may be performed by the dynamic packaging system in FIG. 1, and may include:
  • step 200 a new page file of the hybrid mode mobile application Hybrid App page is obtained.
  • the template engine 152 can acquire the new page file 153.
  • the new page file may be a file generated by the template engine 152 according to the page style update, or may be a file generated according to other content updates in the page.
  • step 202 the new page file is packaged into an offline package.
  • the packaging trigger 151 can receive the new page file sent by the template engine 152 and automatically package the new page file into the format of the offline package.
  • step 204 the offline package is sent to the offline package management system to trigger a page update of the Hybrid App through the offline package management system.
  • the package trigger 151 may also send the offline package to the offline package management system 12.
  • an offline package of the new front end code of web app 1 can be sent to the offline package management system 12 and the old front end code of the original web app 1 can be replaced.
  • the update of the offline package in the offline package management system can trigger the page update. For example, when the client wants to display the web app1 and request the front-end code from the offline package management system, if the code has been updated, the new front-end code can be displayed.
  • the page update method of the example is automatically obtained by the dynamic package system to obtain a new page file, and the new page file is packaged into an offline package, and automatically sent to the offline package management system, so that the offline package automatic update in the offline package management system can be realized.
  • the solution can automatically trigger the offline package update when the page is changed, which reduces the burden on the developer and improves the update efficiency of the Hybrid App offline package.
  • the following is an example of updating the page style in the page to describe how to trigger the offline package update when the page style is updated.
  • the way the page style is updated may be the code that the developer issues the change, or the style configuration by the operator in the template block operation system.
  • the template block operation system 14 can be a human-computer interaction system for the operator to modify the page style, and can provide the operator with a human-computer interaction mode to modify the block or template in the page.
  • the block can be a rectangular area in the page, marked with the html syntax ⁇ div> ⁇ /div>, and the template can be a module written in a template language such as Velocity.
  • the offline package update of the Hybrid App in the offline package management system 12 can also be automatically triggered to automatically trigger the page style.
  • the change, this example can set up the dynamic packaging system 15, as shown in Figure 1.
  • the dynamic packaging system 15 can automatically update the corresponding offline package in the offline package management system 12 when the operator changes the configuration of the block and the template, thereby implementing dynamic update of the Hybrid App page style.
  • Figure 3 illustrates a flow of updating the page style according to the dynamic packaging system of Figure 1, including:
  • step 300 the front-end developer makes a code release change, or the operator performs a configuration change of the block template.
  • the developer can change the code corresponding to the page style update.
  • the corresponding code can be changed, and this part of the code can be called a development change. Code.
  • the operator may also configure the block or template in the change page through the template block operation system to change the style of the page, such as changing the shape or position of the banner in the page.
  • the corresponding generated code can be called the operational template code.
  • step 302 the dynamic packaging system obtains a new page file corresponding to the Hybrid App page and an event linkage trigger, and the trigger may be used to notify that an update event corresponding to the page style update has occurred.
  • the developer in step 300 performs the release of the change code, or the operator performs the configuration change of the block template, and pushes the block template of the configuration change to the dynamic packaging system, and the operation of changing the Hybrid App page style can be performed.
  • Called an update event After the update event occurs, the template engine can generate a new page file.
  • the template engine can generate a new page file according to the page style change corresponding development change code, or can generate a new page according to the block template configuration change corresponding operation template code.
  • the file ie, the new front-end code
  • the template engine can also obtain the corresponding operational template code according to the update event of the block template configuration change, and generate a new page file accordingly.
  • the dynamic packaging system 15 in FIG. 1 can not only receive the above new page file, but also receive an event linkage trigger.
  • the event linkage trigger may be sent when an update event occurs to notify that an update event corresponding to the page style update has occurred.
  • the template block operation system can simultaneously send an event linkage trigger to the packaging trigger of the dynamic packaging system to notify that the configuration change of the template block has occurred; or
  • the module that changes the code can also send an event linkage trigger to the package trigger of the dynamic packaging system to notify that the code change has occurred.
  • the event linkage trigger may be a packing trigger 151 sent to the dynamic packaging system 15, and the packaging trigger 151 will perform the packaging processing of the offline package according to the event linkage trigger.
  • the template engine 152 can generate a new page file according to the development change code or the operation template code.
  • the template engine 152 can generate a page file for the new Hybrid App page based on the development change code or the operational template code obtained in step 302.
  • the template engine 152 obtains a new front-end code 153 based on the development change code or the operational template code.
  • step 304 the packaging trigger of the dynamic packaging system triggers the new page file into an offline package according to the received event linkage trigger.
  • the package trigger 151 may trigger according to the event linkage, and after waiting for the template engine to complete the update of the front-end code, that is, after generating a new page file, the new page file is packaged as an offline package.
  • the packaging trigger of the dynamic packaging system sends the offline package to the offline package management system.
  • the packaging trigger sends the packaged offline package to web app1 in the offline package management system 12. It is also possible to update the version of the offline package of web app1, the original old offline package version is assumed to be V1, and the updated new offline package version may be V2.
  • step 308 the update of the Hybrid App page style is triggered by the offline package management system.
  • the page style can be obtained by the offline package of the web app1 in the offline package management system 12, if the offline package has an update, such as updated by version V1.
  • the page style is updated by the offline package, and the page data is obtained by the backend code of the web app1 by asynchronously requesting the data, thereby realizing the page display of the entire Hybrid App.
  • the page style update method of the example can be automatically updated by the offline package management system by the new package file generated by the dynamic packaging system according to the page style change, packaged into an offline package and sent to the offline package management system.
  • the solution can enable the operator to automatically update the offline package even if the operator configures the block or template, and realizes the dynamic configuration style of the operation, which also reduces the burden on the developer and improves the update efficiency of the offline package of the Hybrid App.
  • FIG. 4 provides a dynamic packaging system, which may include: a template engine 41 and a packaging trigger 42.
  • a template engine 41 configured to acquire a new page file of the hybrid mode mobile application Hybrid App page
  • the packaging trigger 42 is configured to package the new page file into an offline package, and send the offline package to an offline package management system to trigger an update of the Hybrid App page style through the offline package management system.
  • the new page file is a file generated by the template engine based on page style updates.
  • the page style update includes: a development code change corresponding to the page style, or a configuration change of the template block.
  • the packaging trigger 42 is configured to package the new page file into an offline package according to the received event linkage trigger, and package the new page file into an offline package.
  • the update event corresponding to the page style update occurs.
  • the packaging trigger 42 is further configured to update the version of the offline package when the new page file is packaged into an offline package.
  • each step may be implemented in the form of software, hardware or a combination thereof, for example, a person skilled in the art may implement it in the form of software code, and may be a computer executable computer capable of implementing the logic function corresponding to the step. instruction.
  • the executable instructions can be stored in a memory and executed by a processor in the device.
  • one or more embodiments of the present specification simultaneously provide a server device, which may include a processor, a memory, and computer instructions stored on the memory and operable on the processor,
  • the processor by executing the instruction, is configured to: obtain a new page file of the hybrid mode mobile application Hybrid App page; package the new page file into an offline package; and send the offline package to the offline package management system, To trigger an update of the Hybrid App page style through the offline package management system.
  • the apparatus or module illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, and a game control.
  • one or more embodiments of the present specification can be provided as a method, system, or computer program product.
  • one or more embodiments of the present specification can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • one or more embodiments of the present specification can employ a computer program embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer usable program code embodied therein. The form of the product.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • One or more embodiments of the present specification can be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本说明书实施例提供一种页面更新方法和装置,其中,可以由动态打包系统获取混合模式移动应用Hybrid App页面的新页面文件,并将新页面文件打包成离线包,将离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App的页面更新。

Description

一种页面更新方法和装置 技术领域
本公开涉及计算机技术领域,特别涉及一种页面更新方法和装置。
背景技术
Hybrid App(混合模式移动应用)是指介于web-app、native-app这两者之间的app,兼具“Native App良好用户交互体验的优势”和“Web App跨平台开发的优势”。开发一个Hybrid App页面可以包括该页面的前端代码和后端代码,其中,前端代码可以打包成离线包形式,并通过离线包管理系统进行管理。当页面需要更新时,可以由开发人员更新离线包系统中的离线包;当请求访问Hybrid App页面时,离线包系统的离线包更新可以触发页面的更新。
发明内容
有鉴于此,本说明书一个或多个实施例提供一种页面更新方法和装置,以提高Hybrid App的页面更新的效率。
具体地,本说明书一个或多个实施例是通过如下技术方案实现的:
第一方面,提供一种页面更新方法,所述方法包括:
获取混合模式移动应用Hybrid App页面的新页面文件;
将所述新页面文件打包成离线包;
将所述离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App的页面更新。
第二方面,提供一种动态打包系统,所述系统包括:
模版引擎,用于获取混合模式移动应用Hybrid App页面的新页面文件;
打包触发器,用于所述新页面文件打包成离线包,并将离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App的页面更新。
第三方面,提供一种服务端设备,所述设备包括存储器、处理器,以及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行指令时实现以下步骤:
获取混合模式移动应用Hybrid App页面的新页面文件;
将所述新页面文件打包成离线包;
将所述离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App的页面更新。
本说明书一个或多个实施例的页面更新方法和装置,通过由动态打包系统根据新页面文件打包成离线包并发送至离线包管理系统,可以实现离线包管理系统中的离线包的自动更新。该方案能够使得当页面文件变更时能够自动触发离线包的更新,减轻了开发人员的负担,提高了Hybrid App离线包的更新效率。
附图说明
为了更清楚地说明本说明书一个或多个实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书一个或多个实施例中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本说明书一个或多个实施例提供的Hybrid App应用的系统架构;
图2为本说明书一个或多个实施例提供的页面更新方法的流程图;
图3为本说明书一个或多个实施例提供的动态打包系统更新页面样式的流程;
图4为本说明书一个或多个实施例提供的动态打包系统的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本说明书一个或多个实施例中的技术方案,下面将结合本说明书一个或多个实施例中的附图,对本说明书一个或多 个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是一部分实施例,而不是全部的实施例。基于本说明书一个或多个实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。
图1示例了Hybrid App应用的系统架构,Hybrid App是一种混合应用,运用native和web app的能力,在native上构建应用内web app的应用。如图1所示,客户端11可以是Hybrid App页面展示的前台,比如,可以是在一个native app中显示web app。
该Hybrid App的显示包括前端代码和后端代码的配合,可以将前端代码存储在离线包管理系统12中,例如,前端代码中可以包括决定页面样式的样式代码,该样式代码可以用于确定页面中的各部分内容的布局安排,或者页面内容的字体和颜色,或者页面中某一个区域的展示形状等。当请求显示Hybrid App的页面时,可以根据离线包获取如何显示页面的样式,并通过ajax等异步请求数据方式,由服务端13的后端代码更新页面的数据,从而实现整个Hybrid App的页面展示。本例子的方法主要描述前端代码引起的页面更新。
请继续参见图1,离线包管理系统12中可以管理多个应用的离线包,例如,web app1、web app2、web app3等。当Hybrid App页面的页面需要更新时,可以更新离线包管理系统12中该app的离线包,以通过离线包的更新触发页面的更新。
图2示例了一个页面更新方法的流程,该方法可以用于自动触发离线包中前端代码的更新,如图2所示,该方法可以由图1中的动态打包系统执行,可以包括:
在步骤200中,获取混合模式移动应用Hybrid App页面的新页面文件。
本步骤中,模版引擎152可以获取到新页面文件153。例如,该新页面文件可以是模版引擎152根据页面样式更新生成的文件,或者也可以是根据页面中其他内容更新生成的文件。
在步骤202中,将所述新页面文件打包成离线包。
本步骤中,打包触发器151可以接收到模版引擎152发送的新页面文件,并将该新页面文件自动打包成离线包的格式。
在步骤204中,将所述离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App的页面更新。
本步骤中,打包触发器151在打包离线包后,还可以将离线包发送至离线包管理系统12。例如,可以将web app 1的新前端代码的离线包发送至离线包管理系统12,并替换掉原来web app 1的旧前端代码。离线包管理系统中的离线包的更新可以触发页面更新,比如,当客户端要展示web app1,向离线包管理系统请求前端代码时,若代码已经更新,可以使用新的前端代码展示。
本例子的页面更新方法,通过由动态打包系统获取新页面文件,并将新页面文件打包成离线包,自动发送至离线包管理系统,使得可以实现离线包管理系统中的离线包的自动更新,该方案能够使得当页面变更时能够自动触发离线包的更新,减轻了开发人员的负担,提高了Hybrid App离线包的更新效率。
如下以页面中的页面样式的更新为例,描述当页面样式更新时,如何触发离线包更新的流程。其中,页面样式更新的方式,可以是开发人员发布变更的代码,或者由运营人员在模版区块运营系统进行样式配置。
如图1所示,模版区块运营系统14可以是一个供运营人员修改页面样式的人机交互系统,可以提供给运营人员人机交互方式修改页面中的区块或者模版。其中,区块可以是页面中的某个矩形区域,使用html语法<div></div>进行标记,模版可以是使用velocity等模版语言编写的模块。为了使得运营人员在通过模版区块运营系统对某个Hybrid App进行区块和模版的配置变更时,同样能自动触发离线包管理系统12中该Hybrid App的离线包的更新,以自动触发页面样式的变更,本例子可以设置动态打包系统15,如图1所示。
动态打包系统15可以实现在运营人员进行区块和模版的配置变更时,自动更新离线包管理系统12中对应的离线包,从而实现Hybrid App页面样式的动态更新。图3示例了一个根据图1的动态打包系统更新页面样式的流程,包括:
在步骤300中,前端开发人员进行代码发布变更,或者运营人员进行区块 模版的配置变更。
例如,如图1示例,开发人员可以进行页面样式更新对应的代码变更,比如,要改变页面的布局,或者改变页面某一部分的显示样式,可以变更对应的代码,可以称这部分代码为开发变更代码。
在另一例子中,也可以由运营人员通过模版区块运营系统,配置变更页面中的区块或者模版,从而改变页面的样式,比如改变页面中的广告条的形状或者位置。对应生成的代码可以称为运营模版代码。
在步骤302中,动态打包系统获取到Hybrid App页面对应的新页面文件和事件联动触发,该触发可以用于通知发生了页面样式更新对应的更新事件。
其中,步骤300中的开发人员进行变更代码的发布,或者,运营人员进行区块模版的配置变更,并将配置变更的区块模版向动态打包系统推送,这些变更Hybrid App页面样式的操作都可以称为更新事件。更新事件发生后,模版引擎可以生成新页面文件,比如,模版引擎可以根据页面样式变更对应的开发变更代码生成新页面文件,或者,还可以根据区块模版配置变更对应的运营模版代码生成新页面文件(即新前端代码),又或者,模版引擎还可以根据区块模版配置变更的更新事件得到对应的运营模版代码,并据此生成新页面文件。
图1中的动态打包系统15不仅可以接收到上述的新页面文件,还可以接收到事件联动触发。事件联动触发可以是在发生更新事件时发送,用于通知发生了页面样式更新对应的更新事件。如图1的示例,当运营人员修改了区块或者模版时,模版区块运营系统可以同时向动态打包系统的打包触发器发送事件联动触发,用于通知发生了模版区块的配置变更;或者,当开发人员变更了页面的样式代码时,变更代码的模块也可以向动态打包系统的打包触发器发送事件联动触发,用于通知发生了代码变更。在图1的一个例子中,事件联动触发可以是发送至动态打包系统15中的打包触发器151,打包触发器151根据该事件联动触发,将进行离线包的打包处理。
本步骤中,模版引擎152可以根据开发变更代码或者运营模版代码,生成新页面文件。例如,模版引擎152可以根据步骤302中得到的开发变更代码或 者运营模版代码,生成新的Hybrid App页面的页面文件。如图1所示,即模版引擎152根据开发变更代码或者运营模版代码得到新的前端代码153。
在步骤304中,动态打包系统的打包触发器根据接收到的事件联动触发,将所述新页面文件打包成离线包。
例如,打包触发器151可以根据事件联动触发,在等待模版引擎完成前端代码的更新后,即生成新页面文件后,将该新页面文件进行离线包的打包。
在步骤306中,动态打包系统的打包触发器将所述离线包发送至离线包管理系统。例如,结合图1来看,假设本次更新的Hybrid App是web app1,则打包触发器将打包的离线包发送至离线包管理系统12中的web app1。还可以将web app1的离线包的版本进行更新,原有的旧离线包版本假设是V1,更新后的新离线包版本可以是V2。
在步骤308中,通过离线包管理系统触发Hybrid App页面样式的更新。
例如,如图1的示例,当接收到对Hybrid App的页面访问请求时,可以由离线包管理系统12中的web app1的离线包获取页面样式,如果该离线包有更新,比如由版本V1更新到版本V2,则通过离线包更新页面样式,并通过异步请求数据的方式由web app1的后端代码获取页面数据,从而实现整个Hybrid App的页面展示。
本例子的页面样式更新方法,通过由动态打包系统根据页面样式变更生成的新页面文件,打包成离线包并发送至离线包管理系统,可以实现离线包管理系统中的离线包的自动更新。该方案能够使得即使是运营人员配置区块或模版,也同样能够自动触发离线包的更新,实现运营动态配置样式,也减轻了开发人员的负担,提高了Hybrid App的离线包的更新效率。
为了实现本说明书一个或多个实施例的页面更新方法,图4提供了一种动态打包系统,可以包括:模版引擎41和打包触发器42。
模版引擎41,用于获取混合模式移动应用Hybrid App页面的新页面文件;
打包触发器42,用于将所述新页面文件打包成离线包,并将离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App页面样式的更新。
在一个例子中,所述新页面文件是由所述模版引擎根据页面样式更新生成的文件。例如,所述页面样式更新,包括:页面样式对应的开发代码变更,或者,模版区块的配置变更。
在一个例子中,打包触发器42,在用于将新页面文件打包成离线包时,包括:根据接收到的事件联动触发,将所述新页面文件打包成离线包;所述事件联动触发用于通知发生了所述页面样式更新对应的更新事件。
在一个例子中,所述打包触发器42,还用于将所述新页面文件打包成离线包时,还更新所述离线包的版本。
上述图2和图3所示流程中的各个步骤,其执行顺序不限制于流程图中的顺序。此外,各个步骤的描述,可以实现为软件、硬件或者其结合的形式,例如,本领域技术人员可以将其实现为软件代码的形式,可以为能够实现所述步骤对应的逻辑功能的计算机可执行指令。当其以软件的方式实现时,所述的可执行指令可以存储在存储器中,并被设备中的处理器执行。
例如,对应于上述方法,本说明书一个或多个实施例同时提供一种服务端设备,该设备可以包括处理器、存储器、以及存储在存储器上并可在处理器上运行的计算机指令,所述处理器通过执行所述指令,用于实现如下步骤:获取混合模式移动应用Hybrid App页面的新页面文件;将所述新页面文件打包成离线包;将所述离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App页面样式的更新。
上述实施例阐明的装置或模块,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
为了描述的方便,描述以上装置时以功能分为各种模块分别描述。当然,在实施本说明书一个或多个实施例时可以把各模块的功能在同一个或多个软件和/或硬件中实现。
本领域内的技术人员应明白,本说明书一个或多个实施例可提供为方法、系统、或计算机程序产品。因此,本说明书一个或多个实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书一个或多个实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本说明书一个或多个实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书一个或多个实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相 似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于服务端设备实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。

Claims (11)

  1. 一种页面更新方法,所述方法包括:
    获取混合模式移动应用Hybrid App页面的新页面文件;
    将所述新页面文件打包成离线包;
    将所述离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App的页面更新。
  2. 根据权利要求1所述的方法,所述获取混合模式移动应用Hybrid App页面的新页面文件,包括:获取根据页面样式更新生成的文件。
  3. 根据权利要求2所述的方法,所述页面样式更新,包括:页面样式对应的开发代码变更,或者,模版区块的配置变更。
  4. 根据权利要求2所述的方法,所述将新页面文件打包成离线包,包括:
    根据接收到的事件联动触发,将所述新页面文件打包成离线包;
    所述事件联动触发用于通知发生了所述页面样式更新对应的更新事件。
  5. 根据权利要求1所述的方法,所述方法还包括:将所述新页面文件打包成离线包时,还更新所述离线包的版本。
  6. 一种动态打包系统,所述系统包括:
    模版引擎,用于获取混合模式移动应用Hybrid App页面的新页面文件;
    打包触发器,用于将所述新页面文件打包成离线包,并将离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App的页面更新。
  7. 根据权利要求6所述的系统,所述新页面文件是由所述模版引擎根据页面样式更新生成的文件。
  8. 根据权利要求7所述的系统,所述页面样式更新,包括:页面样式对应的开发代码变更,或者,模版区块的配置变更。
  9. 根据权利要求7所述的系统,
    所述打包触发器,在用于将新页面文件打包成离线包时,包括:根据接收到的事件联动触发,将所述新页面文件打包成离线包;所述事件联动触发用于 通知发生了所述页面样式更新对应的更新事件。
  10. 根据权利要求7所述的系统,所述打包触发器,还用于将所述新页面文件打包成离线包时,还更新所述离线包的版本。
  11. 一种服务端设备,所述设备包括存储器、处理器,以及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行指令时实现以下步骤:
    获取混合模式移动应用Hybrid App页面的新页面文件;
    将所述新页面文件打包成离线包;
    将所述离线包发送至离线包管理系统,以通过离线包管理系统触发Hybrid App的页面更新。
PCT/CN2018/100559 2017-08-18 2018-08-15 一种页面更新方法和装置 WO2019034066A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710713596.3 2017-08-18
CN201710713596.3A CN107608691A (zh) 2017-08-18 2017-08-18 一种页面更新方法和装置

Publications (1)

Publication Number Publication Date
WO2019034066A1 true WO2019034066A1 (zh) 2019-02-21

Family

ID=61065540

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/100559 WO2019034066A1 (zh) 2017-08-18 2018-08-15 一种页面更新方法和装置

Country Status (3)

Country Link
CN (1) CN107608691A (zh)
TW (1) TW201913361A (zh)
WO (1) WO2019034066A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608691A (zh) * 2017-08-18 2018-01-19 阿里巴巴集团控股有限公司 一种页面更新方法和装置
CN108776592B (zh) * 2018-05-23 2022-04-05 北京五八信息技术有限公司 一种页面构建的方法、装置、设备及存储介质
CN108804120B (zh) * 2018-05-23 2022-04-05 北京五八信息技术有限公司 一种页面构建方法、装置、设备及存储介质
CN108845810B (zh) * 2018-05-23 2022-04-22 北京五八信息技术有限公司 一种应用动态更新的方法、装置、电子设备及存储介质
CN111538926A (zh) * 2020-04-20 2020-08-14 北京达佳互联信息技术有限公司 一种离线包自动发布方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701909A (zh) * 2013-12-26 2014-04-02 乐视致新电子科技(天津)有限公司 视频应用的快速生成方法及系统
CN104115106A (zh) * 2011-12-28 2014-10-22 英特尔公司 用于本地应用和网络应用的混合移动交互
CN106020906A (zh) * 2016-05-31 2016-10-12 广东能龙教育股份有限公司 一种基于Cordova的客户端热更新方法
CN107608691A (zh) * 2017-08-18 2018-01-19 阿里巴巴集团控股有限公司 一种页面更新方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216926A (zh) * 2013-06-05 2014-12-17 上海缪思信息科技有限公司 一种页面生成方法、模版引擎及处理器

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104115106A (zh) * 2011-12-28 2014-10-22 英特尔公司 用于本地应用和网络应用的混合移动交互
CN103701909A (zh) * 2013-12-26 2014-04-02 乐视致新电子科技(天津)有限公司 视频应用的快速生成方法及系统
CN106020906A (zh) * 2016-05-31 2016-10-12 广东能龙教育股份有限公司 一种基于Cordova的客户端热更新方法
CN107608691A (zh) * 2017-08-18 2018-01-19 阿里巴巴集团控股有限公司 一种页面更新方法和装置

Also Published As

Publication number Publication date
TW201913361A (zh) 2019-04-01
CN107608691A (zh) 2018-01-19

Similar Documents

Publication Publication Date Title
WO2019034066A1 (zh) 一种页面更新方法和装置
CN109976667B (zh) 一种镜像管理方法、装置及系统
US10827036B2 (en) Version control machine
US9672140B1 (en) Processing special requests at dedicated application containers
US20230057335A1 (en) Deployment of self-contained decision logic
US10956179B1 (en) Third party integration of plugins and widgets
CN109643252B (zh) 中间件接口和中间件接口生成器
WO2019033995A1 (zh) 一种页面更新方法和装置
JP2014512037A (ja) アプリケーションプログラムの状態モデルを提供するための方法およびシステム
US11360765B2 (en) Metadata driven serverless functions in a multitenant environment
US10394627B2 (en) Asynchronous C#-JS data binding bridge
US20220334809A1 (en) Process flow builder for extensible web component sequences
US9400819B2 (en) Updating object attributes in a lock-coupled namespace traversal
US20130007184A1 (en) Message oriented middleware with integrated rules engine
JP2021068415A (ja) コード実行方法、装置、レンダリングデバイス、記憶媒体、及びプログラム
US20180337976A1 (en) Dynamic graph adaptation for stream processing over hybrid, physically disparate analytics platforms
EP3080692B1 (en) User interface framework
US11625242B1 (en) Automated generation of dependency hierarchy based on input and output requirements of information
US10839037B2 (en) Connected application experience
US20240070149A1 (en) Database systems and client-side data synchronization methods
US20240070151A1 (en) Database systems and client-side query transformation methods
US20230169138A1 (en) Rendering primitive child elements corresponding to child components of a user interface without instantiating the child components
EP3405867B1 (en) Database and service upgrade without downtime
US20220245206A1 (en) Process flow builder for user-configurable web component sequences
US20240143340A1 (en) Hybrid multi-tenant framework for reconfiguring software components

Legal Events

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

Ref document number: 18846685

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18846685

Country of ref document: EP

Kind code of ref document: A1