CN117032737A - Application uninstalling method, device, electronic equipment and readable storage medium - Google Patents
Application uninstalling method, device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN117032737A CN117032737A CN202311023527.1A CN202311023527A CN117032737A CN 117032737 A CN117032737 A CN 117032737A CN 202311023527 A CN202311023527 A CN 202311023527A CN 117032737 A CN117032737 A CN 117032737A
- Authority
- CN
- China
- Prior art keywords
- application
- sub
- cache file
- input
- base
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 238000000547 structure data Methods 0.000 claims abstract description 26
- 230000004044 response Effects 0.000 claims abstract description 14
- 238000012217 deletion Methods 0.000 claims 1
- 230000037430 deletion Effects 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000012545 processing Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 15
- 230000006870 function Effects 0.000 description 12
- 230000009471 action Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000009877 rendering Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000001815 facial effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 208000003028 Stuttering Diseases 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/62—Uninstallation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本申请公开了一种应用卸载方法、装置、电子设备和可读存储介质,属于数据处理技术领域。所述方法包括:接收第一输入,所述第一输入用于由第一子应用切换至其它子应用;响应于所述第一输入,在所述第一子应用的基座应用中保存第一缓存文件,所述第一缓存文件包括所述第一子应用的应用实例和所述第一子应用的虚拟DOM结构数据;卸载所述第一子应用。
This application discloses an application uninstallation method, device, electronic device and readable storage medium, which belongs to the field of data processing technology. The method includes: receiving a first input for switching from a first sub-application to another sub-application; and in response to the first input, saving a first sub-application in a base application of the first sub-application. A cache file, the first cache file includes the application instance of the first sub-application and the virtual DOM structure data of the first sub-application; uninstall the first sub-application.
Description
技术领域Technical field
本申请属于数据处理技术领域,具体涉及一种应用卸载方法、装置、电子设备和可读存储介质。This application belongs to the field of data processing technology, and specifically relates to an application uninstallation method, device, electronic device and readable storage medium.
背景技术Background technique
当前业界的微前端方案,将应用分为基座应用和子应用,比如,在电子设备中下载的完整应用为基座应用,在其它应用中以小程序出现的为子应用。子应用可以帮助用户快捷地访问基座应用的指定页面。The current micro front-end solution in the industry divides applications into base applications and sub-applications. For example, a complete application downloaded in an electronic device is a base application, and an application that appears as a small program in other applications is a sub-application. Sub-applications can help users quickly access designated pages of the base application.
在浏览器中,在显示基座应用的子应用A时,若要切换至基座应用的子应用B,需要卸载当前显示的子应用A,加载子应用B的初始化数据。通常,在用户访问多个子应用时,需要不停地卸载一个子应用、加载另一个子应用的初始化数据,从而因加载初始化数据耗时较长,导致访问时长增加,给用户一种页面切换卡顿、缓慢的感官。In the browser, when sub-application A of the dock application is displayed, if you want to switch to sub-application B of the dock application, you need to uninstall the currently displayed sub-application A and load the initialization data of sub-application B. Usually, when users access multiple sub-applications, they need to constantly uninstall one sub-application and load the initialization data of another sub-application. As a result, loading the initialization data takes a long time, resulting in an increase in the access time and giving the user a kind of page switching stuck. A sense of pause and slowness.
可见,现有技术在多个子应用之间进行切换时,具有切换卡顿的现象。It can be seen that the existing technology has the phenomenon of switching lag when switching between multiple sub-applications.
发明内容Contents of the invention
本申请实施例的目的是提供一种应用卸载方法,能够解决现有技术在多个子应用之间进行切换时,具有切换卡顿的现象的问题。The purpose of the embodiments of the present application is to provide an application uninstallation method that can solve the problem of switching lag in the existing technology when switching between multiple sub-applications.
第一方面,本申请实施例提供了一种应用卸载方法,该方法包括:接收第一输入,所述第一输入用于由第一子应用切换至其它子应用;响应于所述第一输入,在所述第一子应用的基座应用中保存第一缓存文件,所述第一缓存文件包括所述第一子应用的应用实例和所述第一子应用的虚拟DOM结构数据;卸载所述第一子应用。In a first aspect, embodiments of the present application provide an application uninstallation method, which method includes: receiving a first input, the first input being used to switch from a first sub-application to another sub-application; responding to the first input , save the first cache file in the base application of the first sub-application, the first cache file includes the application instance of the first sub-application and the virtual DOM structure data of the first sub-application; uninstall all Describe the first sub-application.
第二方面,本申请实施例提供了一种应用卸载装置,该装置包括:第一接收模块,用于接收第一输入,所述第一输入用于由第一子应用切换至其它子应用;第一保存模块,用于响应于所述第一输入,在所述第一子应用的基座应用中保存第一缓存文件,所述第一缓存文件包括所述第一子应用的应用实例和所述第一子应用的虚拟DOM结构数据;卸载模块,用于卸载所述第一子应用。In a second aspect, embodiments of the present application provide an application uninstallation device, which includes: a first receiving module configured to receive a first input, the first input being used to switch from a first sub-application to another sub-application; A first saving module, configured to save a first cache file in the base application of the first sub-application in response to the first input, where the first cache file includes an application instance of the first sub-application and The virtual DOM structure data of the first sub-application; an uninstall module used to uninstall the first sub-application.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are processed by the processor. When the processor is executed, the steps of the method described in the first aspect are implemented.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. the method described.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the first aspect.
这样,在本申请的实施例中,在用户通过第一输入触发由当前显示的第一子应用切换至其它子应用时,响应于第一输入,不会直接卸载第一子应用,而是在第一子应用的基座应用中保存第一缓存文件,第一缓存文件包括第一子应用的应用实例和第一子应用的虚拟DOM结构数据,保存之后再卸载第一子应用。因此,在下次切换为第一子应用时,可以直接利用第一缓存文件,无需加载第一子应用的初始化数据。可见,基于本申请的实施例提供的卸载方法,在多个子应用之间进行切换时,节省了加载初始化数据的步骤,缩短了加载页面数据的时间,从而使得不会在切换应用时出现卡顿现象。In this way, in the embodiment of the present application, when the user triggers switching from the currently displayed first sub-application to other sub-applications through the first input, the first sub-application will not be uninstalled directly in response to the first input, but will be The first cache file is saved in the base application of the first sub-application. The first cache file includes the application instance of the first sub-application and the virtual DOM structure data of the first sub-application. After saving, the first sub-application is uninstalled. Therefore, when switching to the first sub-application next time, the first cache file can be directly used without loading the initialization data of the first sub-application. It can be seen that based on the uninstallation method provided by the embodiment of the present application, when switching between multiple sub-applications, the step of loading initialization data is saved, and the time for loading page data is shortened, so that no lag occurs when switching applications. Phenomenon.
附图说明Description of the drawings
图1是本申请实施例的应用卸载方法的流程图;Figure 1 is a flow chart of an application uninstallation method according to an embodiment of the present application;
图2是本申请实施例的应用卸载方法的说明示意图之一;Figure 2 is one of the schematic diagrams illustrating the application uninstallation method according to the embodiment of the present application;
图3是本申请实施例的应用卸载方法的说明示意图之二;Figure 3 is the second schematic diagram illustrating the application uninstallation method according to the embodiment of the present application;
图4是本申请实施例的应用卸载方法的说明示意图之三;Figure 4 is the third schematic diagram illustrating the application uninstallation method according to the embodiment of the present application;
图5是本申请实施例的应用卸载装置的框图;Figure 5 is a block diagram of an application uninstaller according to an embodiment of the present application;
图6是本申请实施例的电子设备的硬件结构示意图之一;Figure 6 is one of the schematic diagrams of the hardware structure of the electronic device according to the embodiment of the present application;
图7是本申请实施例的电子设备的硬件结构示意图之二。FIG. 7 is a second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例的附图,对本申请实施例的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the embodiments of the present application will be clearly described below with reference to the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.
本申请的说明书和权利要求书的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
本申请实施例提供的应用卸载方法,其执行主体可以是本申请实施例提供的应用卸载装置,或者集成了该应用卸载装置的电子设备,其中该应用卸载装置可以采用硬件或软件的方式实现。The execution subject of the application uninstallation method provided by the embodiments of the present application may be the application uninstallation device provided by the embodiments of the present application, or an electronic device integrated with the application uninstallation device, where the application uninstallation device may be implemented in hardware or software.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的应用卸载方法进行详细地说明。The application uninstallation method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.
图1示出了本申请一个实施例的应用卸载方法的流程图,应用于电子设备,该方法包括:Figure 1 shows a flow chart of an application uninstallation method according to an embodiment of the present application, applied to electronic devices, the method includes:
步骤110:接收第一输入,第一输入用于由第一子应用切换至其它子应用。其中,第一输入包括用户在屏幕上进行的触摸输入,不限于点击、滑动、拖动等输入。第一输入还可以是用户的隔空输入,例如手势动作、脸部动作等,第一输入还包括用户在设备上对实体按键的输入,不限于按动等输入。而且,第一输入包括一个或者多个输入,其中,多个输入可以是连续的,也可以是存在时间间隔的。Step 110: Receive a first input, the first input is used to switch from the first sub-application to other sub-applications. The first input includes the user's touch input on the screen, which is not limited to click, slide, drag and other inputs. The first input may also be the user's air-to-air input, such as gestures, facial movements, etc. The first input also includes the user's input of physical buttons on the device, and is not limited to inputs such as pressing. Moreover, the first input includes one or more inputs, wherein the multiple inputs may be continuous or have time intervals.
在该步骤中,第一输入用于用户触发由当前显示的第一子应用切换至其它子应用。In this step, the first input is used by the user to trigger switching from the currently displayed first sub-application to other sub-applications.
在本实施例中,参见图2,基于某个基座应用201,可以拆分出多个子应用202,各个子应用分别为用户展示所导航的页面内容。其中,基座应用201提供子应用202的注册接口、子应用加载入口、子应用环境隔离等能力,以保障子应用能方便切换和运行。In this embodiment, referring to Figure 2, based on a certain base application 201, multiple sub-applications 202 can be split, and each sub-application displays the content of the page being navigated to the user. Among them, the base application 201 provides the registration interface, sub-application loading entrance, sub-application environment isolation and other capabilities of the sub-application 202 to ensure that the sub-application can be easily switched and run.
其中,第一子应用为基座应用的一个子应用,其它子应用为基座应用的另一个子应用。Among them, the first sub-application is a sub-application of the base application, and the other sub-applications are another sub-application of the base application.
例如,参见图3,基座应用A为购物应用,包括全站导航菜单,基座应用A可以划分出导航B和导航C,导航B对应子应用B,子应用B所导航的页面为商品列表页面,导航C对应子应用C,子应用C所导航的页面为购物车结算页面。对应地,第一输入用于用户触发由子应用B301切换至子应用C 302。For example, see Figure 3. Base application A is a shopping application, including a site-wide navigation menu. Base application A can be divided into navigation B and navigation C. Navigation B corresponds to sub-application B. The page navigated by sub-application B is a product list. Page, navigation C corresponds to sub-application C, and the page navigated by sub-application C is the shopping cart checkout page. Correspondingly, the first input is used for the user to trigger switching from sub-application B 301 to sub-application C 302 .
本实施例的应用场景如,在浏览器显示第一子应用所导航的页面内容的情况下,用户点击其它子应用对应的链接,以触发显示其它子应用所导航的页面内容。The application scenario of this embodiment is, for example, when the browser displays the content of the page navigated by the first sub-application, the user clicks the link corresponding to the other sub-application to trigger the display of the content of the page navigated by the other sub-application.
步骤120:响应于第一输入,在第一子应用的基座应用中保存第一缓存文件,第一缓存文件包括第一子应用的应用实例和第一子应用的虚拟DOM结构数据。Step 120: In response to the first input, save a first cache file in the base application of the first sub-application, where the first cache file includes an application instance of the first sub-application and virtual DOM structure data of the first sub-application.
在该步骤中,在卸载第一子应用之前,基于当前显示的第一子页面的页面内容,在第一子应用的基座应用中保存第一缓存文件。In this step, before uninstalling the first sub-application, the first cache file is saved in the base application of the first sub-application based on the page content of the currently displayed first sub-page.
其中,第一缓存文件包括第一子应用的应用实例和第一子应用的虚拟文档对象模型(Document Object Model,DOM)结构数据。The first cache file includes an application instance of the first sub-application and virtual Document Object Model (DOM) structural data of the first sub-application.
例如,第一子应用为子应用B,保存的第一缓存文件包括:AppB和节点(Node)B,其中,AppB用于表示子应用B的应用实例,NodeB用于表示虚拟DOM结构数据的节点。For example, the first sub-application is sub-application B, and the saved first cache file includes: AppB and node (Node) B, where AppB is used to represent the application instance of sub-application B, and NodeB is used to represent the node of the virtual DOM structure data. .
可选地,将第一缓存文件保存至基座应用的指定存储位置,以便于后续读取。Optionally, save the first cache file to a designated storage location of the base application to facilitate subsequent reading.
步骤130:卸载第一子应用。Step 130: Uninstall the first sub-application.
在该步骤中,在保存第一子应用的第一缓存文件后,再卸载第一子应用。In this step, after saving the first cache file of the first sub-application, the first sub-application is uninstalled.
进一步地,切换至其它子应用。Further, switch to other sub-applications.
例如,参见图3,由子应用B切换至子应用C之后,在基座应用A中保存有“B:AppB、NodeB”。For example, see Figure 3. After switching from sub-application B to sub-application C, "B: AppB, NodeB" is saved in base application A.
在本实施例中,在切换应用的情况下,在基座应用中进行监控,若监测到本次切换的两个应用为基座应用的两个子应用,则对切换前的子应用进行缓存文件的保存。In this embodiment, when switching applications, monitoring is performed in the base application. If it is detected that the two applications switched this time are two sub-applications of the base application, the cache files of the sub-applications before switching will be cached. of preservation.
这样,在本申请的实施例中,在用户通过第一输入触发由当前显示的第一子应用切换至其它子应用时,响应于第一输入,不会直接卸载第一子应用,而是在第一子应用的基座应用中保存第一缓存文件,第一缓存文件包括第一子应用的应用实例和第一子应用的虚拟DOM结构数据,保存之后再卸载第一子应用。因此,在下次切换为第一子应用时,可以直接利用第一缓存文件,无需加载第一子应用的初始化数据。可见,基于本申请的实施例提供的卸载方法,在多个子应用之间进行切换时,节省了加载初始化数据的步骤,缩短了加载页面数据的时间,从而使得不会在切换应用时出现卡顿现象。In this way, in the embodiment of the present application, when the user triggers switching from the currently displayed first sub-application to other sub-applications through the first input, the first sub-application will not be uninstalled directly in response to the first input, but will be The first cache file is saved in the base application of the first sub-application. The first cache file includes the application instance of the first sub-application and the virtual DOM structure data of the first sub-application. After saving, the first sub-application is uninstalled. Therefore, when switching to the first sub-application next time, the first cache file can be directly used without loading the initialization data of the first sub-application. It can be seen that based on the uninstallation method provided by the embodiment of the present application, when switching between multiple sub-applications, the step of loading initialization data is saved, and the time for loading page data is shortened, so that no lag occurs when switching applications. Phenomenon.
在本申请另一个实施例的应用卸载方法的流程中,步骤130,包括:In the process of the application uninstallation method according to another embodiment of the present application, step 130 includes:
子步骤A1:删除第一子应用的页面节点。Sub-step A1: Delete the page node of the first sub-application.
子步骤A2:设置第一缓存文件的第一属性信息。Sub-step A2: Set the first attribute information of the first cache file.
在该步骤中,在卸载第一子应用时,仅将第一子应用的页面节点删除,并将第一缓存文件的第一属性信息设置为“保活(keepalive)”。In this step, when the first sub-application is uninstalled, only the page node of the first sub-application is deleted, and the first attribute information of the first cache file is set to "keepalive".
在本实施例中,在卸载第一子应用时,不会删除在基座应用保存的第一缓存文件,且设置第一缓存文件的属性为“keepalive”,以确保缓存文件在下一次切换至第一子应用的场景中可用。In this embodiment, when the first sub-application is uninstalled, the first cache file saved in the base application is not deleted, and the attribute of the first cache file is set to "keepalive" to ensure that the cache file is switched to the first sub-application next time. Available in a sub-application scenario.
在本申请另一个实施例的应用下载方法的流程中,步骤120,包括:In the process of the application download method in another embodiment of the present application, step 120 includes:
子步骤B1:将第一缓存文件保存为变量。Sub-step B1: Save the first cache file as a variable.
在该步骤中,第一缓存文件保存于基座应用,且保持为变量“appMap”。In this step, the first cache file is saved in the base application and maintained as the variable "appMap".
其中,“appMap”为基座应用中的变量名,可以理解为一段内存空间,用以存放缓存内容。Among them, "appMap" is the variable name in the base application, which can be understood as a memory space to store cache content.
可选地,将变量“appMap”持久化到前端存储“localstorage”中,下次用户触发显示第一子应用时即可通过持久化数据进行页面内容的恢复,加快渲染速度。Optionally, persist the variable "appMap" to the front-end storage "localstorage". The next time the user triggers the display of the first sub-application, the page content can be restored through the persistent data to speed up rendering.
在本实施例中,对第一缓存文件的保存位置进行了限定,以确保可用于子应用的切换场景中。另外,将第一缓存文件保存为变量,还可以根据剩余存储空间的实际大小情况进行删除等,以确保电子设备的性能。In this embodiment, the storage location of the first cache file is limited to ensure that it can be used in switching scenarios of sub-applications. In addition, the first cache file is saved as a variable and can be deleted based on the actual size of the remaining storage space to ensure the performance of the electronic device.
在本申请另一个实施例的应用下载方法的流程中,在步骤130之后,该方法还包括:In the process of the application download method in another embodiment of the present application, after step 130, the method further includes:
步骤C1:接收第二输入,第二输入用于由第二子应用切换至第一子应用。Step C1: Receive a second input, the second input is used to switch from the second sub-application to the first sub-application.
其中,第二输入包括用户在屏幕上进行的触摸输入,不限于点击、滑动、拖动等输入。第二输入还可以是用户的隔空输入,例如手势动作、脸部动作等,第二输入还包括用户在设备上对实体按键的输入,不限于按动等输入。而且,第二输入包括一个或者多个输入,其中,多个输入可以是连续的,也可以是存在时间间隔的。The second input includes the user's touch input on the screen, which is not limited to click, slide, drag and other inputs. The second input can also be the user's input through the air, such as gestures, facial movements, etc. The second input also includes the user's input to physical buttons on the device, and is not limited to input such as pressing. Moreover, the second input includes one or more inputs, wherein the multiple inputs may be continuous or have time intervals.
在该步骤中,第二输入用于用户触发由当前显示的第二子应用切换至第一子应用。In this step, the second input is used by the user to trigger switching from the currently displayed second sub-application to the first sub-application.
其中,第一子应用和第二子应用分别为基座应用的两个子应用。Among them, the first sub-application and the second sub-application are two sub-applications of the base application respectively.
例如,参见图4,第二子应用为子应用C,第一子应用为子应用B,第二输入用于用户触发由子应用C 401切换至子应用B 402。For example, referring to Figure 4, the second sub-application is sub-application C, the first sub-application is sub-application B, and the second input is used for the user to trigger switching from sub-application C 401 to sub-application B 402.
步骤C2:响应于第二输入,根据第一子应用的名称信息,获取基座应用中的第一缓存文件。Step C2: In response to the second input, obtain the first cache file in the base application according to the name information of the first sub-application.
在该步骤中,可根据第一子应用的名称信息,在基座应用中查询到对应的第一缓存文件。In this step, the corresponding first cache file can be queried in the base application according to the name information of the first sub-application.
例如,第一子应用为子应用B,基座应用保存有:“B:AppB、NodeB”,其中,“:”前面的“B”用于表示子应用B的名称信息。For example, the first sub-application is sub-application B, and the base application stores: "B: AppB, NodeB", where "B" in front of ":" is used to represent the name information of sub-application B.
步骤C3:在已卸载第二子应用的情况下,根据第一缓存文件显示第一子应用。Step C3: When the second sub-application has been uninstalled, display the first sub-application according to the first cache file.
在该步骤中,在卸载当前显示的第二子应用后,根据第一子应用的应用实例和第一子应用的虚拟DOM结构数据,恢复第一子应用的页面内容,以完成对第一子应用的切换显示。In this step, after the currently displayed second sub-application is uninstalled, the page content of the first sub-application is restored according to the application instance of the first sub-application and the virtual DOM structure data of the first sub-application to complete the modification of the first sub-application. Switch display of the application.
其中,参见图4,结合图3以及本申请的应用卸载方法,在由子应用C 401切换至子应用B 402时,在基座应用A中保存有:“B:AppB、NodeB”和“C:AppC、NodeC”。Referring to Figure 4, combined with Figure 3 and the application uninstallation method of the present application, when switching from sub-application C 401 to sub-application B 402, base application A stores: "B: AppB, NodeB" and "C: AppC, NodeC”.
在本实施例中,提供了一种基于保存的缓存文件恢复页面内容的方法,应用在子应用之间的切换场景中,无需重新加载初始数据,提升了页面呈现速度,避免给用户带来切换卡顿的体验。In this embodiment, a method of restoring page content based on saved cache files is provided. It can be used in switching scenarios between sub-applications without reloading the initial data, which improves the page rendering speed and avoids switching for users. Stuttering experience.
在本申请另一个实施例的应用下载方法的流程中,该方法还包括:In the process of the application download method according to another embodiment of the present application, the method further includes:
步骤D1:在显示基座应用的第三子应用的情况下,获取基座应用的第四子应用的应用实例和第四子应用的虚拟DOM结构数据。Step D1: When the third sub-application of the base application is displayed, obtain the application instance of the fourth sub-application of the base application and the virtual DOM structure data of the fourth sub-application.
在该步骤中,第三子应用和第四子应用为基座应用的任意两个子应用。In this step, the third sub-application and the fourth sub-application are any two sub-applications of the base application.
本实施例的应用场景如,首次加载基座应用的子应用时,如加载的是第三子应用,则可以在后台自动加载其它子应用,如其它子应用是第四子应用,并基于加载数据,自动在后台获取第四子应用的应用实例和第四子应用的虚拟DOM结构数据。The application scenario of this embodiment is, for example, when loading a sub-application of the base application for the first time, if the third sub-application is loaded, other sub-applications can be automatically loaded in the background. For example, the other sub-application is the fourth sub-application, and based on the loading Data, automatically obtain the application instance of the fourth sub-application and the virtual DOM structure data of the fourth sub-application in the background.
步骤D2:在基座应用中保存第二缓存文件,第二缓存文件包括第四子应用的应用实例和第四子应用的虚拟DOM结构数据。Step D2: Save the second cache file in the base application. The second cache file includes the application instance of the fourth sub-application and the virtual DOM structure data of the fourth sub-application.
在该步骤中,在后台自动保存基座应用的第二缓存文件。其中,第二缓存文件即第四子应用对应的缓存文件,用于恢复第四子应用的页面内容。In this step, the second cache file of the dock application is automatically saved in the background. The second cache file is the cache file corresponding to the fourth sub-application and is used to restore the page content of the fourth sub-application.
其中,参照本实施例的方法,可在基座应用中保存所有子应用对应的缓存文件。Among them, referring to the method of this embodiment, cache files corresponding to all sub-applications can be saved in the base application.
因此,在用户切换至第四子应用时,直接利用第二缓存文件恢复第四子页面的页面内容,从而可以减少初始化构建实例的步骤,加快渲染。Therefore, when the user switches to the fourth sub-application, the second cache file is directly used to restore the page content of the fourth sub-page, thereby reducing the steps of initializing the instance and speeding up rendering.
在实施例中,预先在基座应用中保存各子应用对应的缓存文件,以便于在初次切换至某子应用时,就可以使用缓存文件,减少数据加载时间,提升用户体验。In the embodiment, cache files corresponding to each sub-application are saved in the base application in advance, so that the cache file can be used when switching to a certain sub-application for the first time, thereby reducing data loading time and improving user experience.
在本申请的其它实施例中,对于没有虚拟DOM的微前端子应用,可以采用本申请中的保存缓存数据的方式,保存页面内容的其它形式缓存数据,以减少下次切换时加载页面数据的时间。In other embodiments of this application, for micro frontend applications without virtual DOM, the method of saving cache data in this application can be used to save other forms of cache data of page content, so as to reduce the time of loading page data when switching next time. time.
在本申请的其它实施例中,若基座应用中没有保存子应用对应的缓存文件,则直接加载该子应用的资源,实例化应用如“AppC”,执行脚本构建虚拟DOM,并进行页面渲染。In other embodiments of this application, if the cache file corresponding to the sub-application is not saved in the base application, the resources of the sub-application are directly loaded, the application is instantiated such as "AppC", the script is executed to build the virtual DOM, and the page is rendered. .
综上,基于当前的前端发展趋势,越来越多的功能设计到全球广域网(World WideWeb,WEB)端,应用也越来越复杂,传统的单页面应用(Single Page Application,SPA)也变得越来越大,从而促使使用微前端的方案来解决日益增长的前端应用,例如将较大的SPA拆分为多个比较小的应用,即将基座应用拆分为子应用,来解决巨石应用的问题。基于此,本申请提出了一种应用卸载方法,借助前端框架的虚拟DOM结构,在卸载应用时,保存缓存文件,从而基于保存的缓存文件,可以实现子应用的一次加载、多次使用,其中还能够保存用户操作信息。In summary, based on the current front-end development trend, more and more functions are designed on the World Wide Web (WEB) side, applications are becoming more and more complex, and traditional single page applications (Single Page Application, SPA) have also become is getting bigger and bigger, prompting the use of micro-front-end solutions to solve the growing number of front-end applications, such as splitting a larger SPA into multiple smaller applications, that is, splitting a base application into sub-applications to solve monolithic applications The problem. Based on this, this application proposes an application uninstallation method. With the help of the virtual DOM structure of the front-end framework, the cache file is saved when the application is uninstalled, so that based on the saved cache file, the sub-application can be loaded once and used multiple times, where It can also save user operation information.
表1Table 1
参见表1,本申请的优化后的微前端应用切换方法,相比于常规微前端应用切换方法,节省了加载当前应用资源、执行当前应用初始化代码、构建应用实例、构建虚拟DOM等步骤,而是直接基于缓存文件中的虚拟DOM结构数据来渲染页面,缩短了显示页面所消耗的时长,从而解决了切换时出现卡顿的问题,给用户带来极致的性能体验。Referring to Table 1, the optimized micro front-end application switching method of this application, compared with the conventional micro front-end application switching method, saves the steps of loading current application resources, executing current application initialization code, building application instances, and building virtual DOM, and The page is rendered directly based on the virtual DOM structure data in the cache file, which shortens the time spent on displaying the page, thereby solving the problem of lagging during switching and giving users the ultimate performance experience.
本申请实施例提供的应用卸载方法,执行主体可以为应用卸载装置。本申请实施例中以应用卸载装置执行应用卸载方法为例,说明本申请实施例提供的应用卸载装置。For the application uninstallation method provided by the embodiments of the present application, the execution subject may be an application uninstallation device. In the embodiment of this application, the application uninstallation method performed by the application uninstallation device is used as an example to illustrate the application uninstallation device provided by the embodiment of this application.
图5示出了本申请一个实施例的应用卸载装置的框图,该装置包括:Figure 5 shows a block diagram of an application uninstallation device according to an embodiment of the present application. The device includes:
第一接收模块10,用于接收第一输入,第一输入用于由第一子应用切换至其它子应用;The first receiving module 10 is used to receive a first input, and the first input is used to switch from the first sub-application to other sub-applications;
第一保存模块20,用于响应于第一输入,在第一子应用的基座应用中保存第一缓存文件,第一缓存文件包括第一子应用的应用实例和第一子应用的虚拟DOM结构数据;The first saving module 20 is configured to save a first cache file in the base application of the first sub-application in response to the first input, where the first cache file includes an application instance of the first sub-application and a virtual DOM of the first sub-application. structured data;
卸载模块30,用于卸载第一子应用。The uninstall module 30 is used to uninstall the first sub-application.
这样,在本申请的实施例中,在用户通过第一输入触发由当前显示的第一子应用切换至其它子应用时,响应于第一输入,不会直接卸载第一子应用,而是在第一子应用的基座应用中保存第一缓存文件,第一缓存文件包括第一子应用的应用实例和第一子应用的虚拟DOM结构数据,保存之后再卸载第一子应用。因此,在下次切换为第一子应用时,可以直接利用第一缓存文件,无需加载第一子应用的初始化数据。可见,基于本申请的实施例提供的卸载方法,在多个子应用之间进行切换时,节省了加载初始化数据的步骤,缩短了加载页面数据的时间,从而使得不会在切换应用时出现卡顿现象。In this way, in the embodiment of the present application, when the user triggers switching from the currently displayed first sub-application to other sub-applications through the first input, the first sub-application will not be uninstalled directly in response to the first input, but will be The first cache file is saved in the base application of the first sub-application. The first cache file includes the application instance of the first sub-application and the virtual DOM structure data of the first sub-application. After saving, the first sub-application is uninstalled. Therefore, when switching to the first sub-application next time, the first cache file can be directly used without loading the initialization data of the first sub-application. It can be seen that based on the uninstallation method provided by the embodiment of the present application, when switching between multiple sub-applications, the step of loading initialization data is saved, and the time for loading page data is shortened, so that no lag occurs when switching applications. Phenomenon.
可选地,卸载模块30,包括:Optionally, uninstall module 30, including:
删除单元,用于删除第一子应用的页面节点;Delete unit, used to delete the page node of the first sub-application;
设置单元,用于设置第一缓存文件的第一属性信息。The setting unit is used to set the first attribute information of the first cache file.
可选地,第一保存模块20,包括:Optionally, the first saving module 20 includes:
保存单元,用于将第一缓存文件保存为变量。The saving unit is used to save the first cache file as a variable.
可选地,该装置还包括:Optionally, the device also includes:
第二接收模块,用于接收第二输入,第二输入用于由第二子应用切换至第一子应用;a second receiving module, configured to receive a second input, and the second input is used to switch from the second sub-application to the first sub-application;
第一获取模块,用于响应于第二输入,根据第一子应用的名称信息,获取基座应用中的第一缓存文件;A first acquisition module, configured to acquire the first cache file in the base application according to the name information of the first sub-application in response to the second input;
显示模块,用于在已卸载第二子应用的情况下,根据第一缓存文件显示第一子应用。A display module configured to display the first sub-application according to the first cache file when the second sub-application has been uninstalled.
可选地,该装置还包括:Optionally, the device also includes:
第二获取模块,用于在显示基座应用的第三子应用的情况下,获取基座应用的第四子应用的应用实例和第四子应用的虚拟DOM结构数据;The second acquisition module is used to acquire the application instance of the fourth sub-application of the base application and the virtual DOM structure data of the fourth sub-application when the third sub-application of the base application is displayed;
第二保存模块,用于在基座应用中保存第二缓存文件,第二缓存文件包括第四子应用的应用实例和第四子应用的虚拟DOM结构数据。The second saving module is configured to save a second cache file in the base application. The second cache file includes the application instance of the fourth sub-application and the virtual DOM structure data of the fourth sub-application.
本申请实施例中的应用卸载装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtualreality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The application uninstallation device in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (AR)/virtual reality (VR) Devices, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., can also be servers, network attached storage (Network Attached Storage, NAS) , personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.
本申请实施例的应用卸载装置可以为具有动作系统的装置。该动作系统可以为安卓(Android)动作系统,可以为ios动作系统,还可以为其他可能的动作系统,本申请实施例不作具体限定。The application uninstallation device in the embodiment of the present application may be a device with an action system. The action system can be an Android action system, an ios action system, or other possible action systems, which are not specifically limited in the embodiments of this application.
本申请实施例提供的应用卸载装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。The application uninstallation device provided by the embodiments of the present application can implement each process implemented by the above method embodiments. To avoid duplication, the details will not be described here.
可选地,如图6所示,本申请实施例还提供一种电子设备100,包括处理器101,存储器102,存储在存储器102上并可在处理器101上运行的程序或指令,该程序或指令被处理器101执行时实现上述任一应用卸载方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 6, this embodiment of the present application also provides an electronic device 100, including a processor 101, a memory 102, and a program or instructions stored on the memory 102 and executable on the processor 101. The program Or when the instruction is executed by the processor 101, each step of any of the above application uninstallation method embodiments is implemented, and the same technical effect can be achieved. To avoid duplication, the details will not be described here.
需要说明的是,本申请实施例的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图7为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、处理器1010、摄像头1011等部件。The electronic device 1000 includes but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, processor 1010, camera 1011 and other parts.
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 7 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
其中,用户输入单元1007,用于接收第一输入,所述第一输入用于由第一子应用切换至其它子应用;处理器1010,用于响应于所述第一输入,在所述第一子应用的基座应用中保存第一缓存文件,所述第一缓存文件包括所述第一子应用的应用实例和所述第一子应用的虚拟DOM结构数据;卸载所述第一子应用。Among them, the user input unit 1007 is used to receive a first input, and the first input is used to switch from the first sub-application to other sub-applications; the processor 1010 is used to respond to the first input, in the first sub-application. Saving a first cache file in a base application of a sub-application, the first cache file including an application instance of the first sub-application and virtual DOM structure data of the first sub-application; uninstalling the first sub-application .
这样,在本申请的实施例中,在用户通过第一输入触发由当前显示的第一子应用切换至其它子应用时,响应于第一输入,不会直接卸载第一子应用,而是在第一子应用的基座应用中保存第一缓存文件,第一缓存文件包括第一子应用的应用实例和第一子应用的虚拟DOM结构数据,保存之后再卸载第一子应用。因此,在下次切换为第一子应用时,可以直接利用第一缓存文件,无需加载第一子应用的初始化数据。可见,基于本申请的实施例提供的卸载方法,在多个子应用之间进行切换时,节省了加载初始化数据的步骤,缩短了加载页面数据的时间,从而使得不会在切换应用时出现卡顿现象。In this way, in the embodiment of the present application, when the user triggers switching from the currently displayed first sub-application to other sub-applications through the first input, the first sub-application will not be uninstalled directly in response to the first input, but will be The first cache file is saved in the base application of the first sub-application. The first cache file includes the application instance of the first sub-application and the virtual DOM structure data of the first sub-application. After saving, the first sub-application is uninstalled. Therefore, when switching to the first sub-application next time, the first cache file can be directly used without loading the initialization data of the first sub-application. It can be seen that based on the uninstallation method provided by the embodiment of the present application, when switching between multiple sub-applications, the step of loading initialization data is saved, and the time for loading page data is shortened, so that no lag occurs when switching applications. Phenomenon.
可选地,处理器1010,还用于删除所述第一子应用的页面节点;设置所述第一缓存文件的第一属性信息。Optionally, the processor 1010 is also configured to delete the page node of the first sub-application; and set the first attribute information of the first cache file.
可选地,处理器1010,还用于将所述第一缓存文件保存为变量。Optionally, the processor 1010 is also configured to save the first cache file as a variable.
可选地,用户输入单元1007,还用于接收第二输入,所述第二输入用于由第二子应用切换至所述第一子应用;处理器1010,还用于响应于所述第二输入,根据所述第一子应用的名称信息,获取所述基座应用中的所述第一缓存文件;显示单元1006,用于在已卸载所述第二子应用的情况下,根据所述第一缓存文件显示所述第一子应用。Optionally, the user input unit 1007 is also configured to receive a second input for switching from the second sub-application to the first sub-application; the processor 1010 is also configured to respond to the first sub-application. The second input is to obtain the first cache file in the base application according to the name information of the first sub-application; the display unit 1006 is used to display the first cache file according to the second sub-application when the second sub-application has been uninstalled. The first cache file displays the first sub-application.
可选地,处理器1010,还用于在显示所述基座应用的第三子应用的情况下,获取所述基座应用的第四子应用的应用实例和所述第四子应用的虚拟DOM结构数据;在所述基座应用中保存第二缓存文件,所述第二缓存文件包括所述第四子应用的应用实例和所述第四子应用的虚拟DOM结构数据。Optionally, the processor 1010 is further configured to obtain an application instance of a fourth sub-application of the base application and a virtual instance of the fourth sub-application when the third sub-application of the base application is displayed. DOM structure data; save a second cache file in the base application, where the second cache file includes an application instance of the fourth sub-application and virtual DOM structure data of the fourth sub-application.
综上,基于当前的前端发展趋势,越来越多的功能设计到全球广域网(World WideWeb,WEB)端,应用也越来越复杂,传统的单页面应用(Single Page Application,SPA)也变得越来越大,从而促使使用微前端的方案来解决日益增长的前端应用,例如将较大的SPA拆分为多个比较小的应用,即将基座应用拆分为子应用,来解决巨石应用的问题。基于此,本申请提出了一种应用卸载方法,借助前端框架的虚拟DOM结构,在卸载应用时,保存缓存文件,从而基于保存的缓存文件,可以实现子应用的一次加载、多次使用,其中还能够保存用户操作信息。本申请的优化后的微前端应用切换方法,相比于常规微前端应用切换方法,节省了加载当前应用资源、执行当前应用初始化代码、构建应用实例、构建虚拟DOM等步骤,而是直接基于缓存文件中的虚拟DOM结构数据来渲染页面,缩短了显示页面所消耗的时长,从而解决了切换时出现卡顿的问题,给用户带来极致的性能体验。In summary, based on the current front-end development trend, more and more functions are designed on the World Wide Web (WEB) side, applications are becoming more and more complex, and traditional single page applications (Single Page Application, SPA) have also become is getting bigger and bigger, prompting the use of micro-front-end solutions to solve the growing number of front-end applications, such as splitting a larger SPA into multiple smaller applications, that is, splitting a base application into sub-applications to solve monolithic applications The problem. Based on this, this application proposes an application uninstallation method. With the help of the virtual DOM structure of the front-end framework, the cache file is saved when the application is uninstalled, so that based on the saved cache file, the sub-application can be loaded once and used multiple times, where It can also save user operation information. Compared with the conventional micro front-end application switching method, the optimized micro front-end application switching method of this application saves the steps of loading current application resources, executing current application initialization code, building application instances, and building virtual DOM, and is directly based on caching. The virtual DOM structure data in the file is used to render the page, which shortens the time it takes to display the page, thereby solving the problem of lagging during switching and giving users the ultimate performance experience.
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(GraphicsProcessing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频图像捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频图像的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、动作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和动作系统。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理动作系统、用户页面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is responsible for the image capture device (GPU) in the video image capture mode or the image capture mode. Process the image data of still pictures or video images obtained by a camera (such as a camera). The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 . Touch panel 10071, also known as touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and action sticks, which will not be described again here. Memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and action systems. The processor 1010 can integrate an application processor and a modem processor. The application processor mainly processes action systems, user pages, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above modem processor may not be integrated into the processor 1010.
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。Memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 1009 may include volatile memory or nonvolatile memory, or memory 1009 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 1009 in the embodiment of the present application includes, but is not limited to, these and any other suitable types of memory.
处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 1010.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述应用卸载方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by the processor, each process of the above application uninstallation method embodiment is implemented, and the same technology can be achieved. The effect will not be described here to avoid repetition.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the above embodiment. Readable storage media includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks or optical disks.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述应用卸载方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above application offloading method embodiment, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述应用卸载方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above application uninstallation method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311023527.1A CN117032737A (en) | 2023-08-14 | 2023-08-14 | Application uninstalling method, device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311023527.1A CN117032737A (en) | 2023-08-14 | 2023-08-14 | Application uninstalling method, device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117032737A true CN117032737A (en) | 2023-11-10 |
Family
ID=88601896
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311023527.1A Pending CN117032737A (en) | 2023-08-14 | 2023-08-14 | Application uninstalling method, device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117032737A (en) |
-
2023
- 2023-08-14 CN CN202311023527.1A patent/CN117032737A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114564921A (en) | Document editing method and device | |
CN111813305A (en) | Application startup method and device | |
WO2023046106A1 (en) | Desktop editing method and apparatus, and electronic device | |
CN114332328A (en) | Scene rendering method, scene rendering device, electronic device and readable storage medium | |
CN116107531A (en) | Interface display method and device | |
WO2023155877A1 (en) | Application icon management method and apparatus and electronic device | |
CN115729412A (en) | Interface display method and device | |
CN114911441A (en) | Information display method and device | |
CN114327726A (en) | Display control method, device, electronic device and storage medium | |
WO2024153027A1 (en) | Application display method and application display apparatus | |
CN117055775A (en) | Application program searching method, device, equipment and storage medium | |
CN116756099A (en) | Display method and device | |
CN117032737A (en) | Application uninstalling method, device, electronic equipment and readable storage medium | |
WO2023155874A1 (en) | Application icon management method and apparatus, and electronic device | |
CN115729544A (en) | Desktop component generation method, device, electronic device and readable storage medium | |
CN114895815A (en) | Data processing method and electronic equipment | |
CN115202524A (en) | Display method and device | |
CN115328355A (en) | Application function activation method and device | |
CN115586937A (en) | Interface display method and device, electronic equipment and readable storage medium | |
CN114647411A (en) | Programming interface loading method, device, electronic device and storage medium | |
CN114860135A (en) | Screenshot method and device | |
CN114610423A (en) | Content publishing method and device and electronic equipment | |
CN114756792A (en) | Page display method and device, electronic equipment and readable storage medium | |
CN111796733A (en) | Image display method, image display device, and electronic device | |
CN117389645A (en) | Application operation method, device, electronic device and readable 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 |