CN110221848A - APP method for updating pages, device, electronic equipment and storage medium - Google Patents

APP method for updating pages, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110221848A
CN110221848A CN201910327112.0A CN201910327112A CN110221848A CN 110221848 A CN110221848 A CN 110221848A CN 201910327112 A CN201910327112 A CN 201910327112A CN 110221848 A CN110221848 A CN 110221848A
Authority
CN
China
Prior art keywords
app
page
platform
code
modification
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
CN201910327112.0A
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201910327112.0A priority Critical patent/CN110221848A/en
Publication of CN110221848A publication Critical patent/CN110221848A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses APP method for updating pages, device, electronic equipment and storage mediums, the corresponding business logic codes of APP are obtained from server, the corresponding business logic codes of APP can be stored in the mounting platform of APP, when the page architecture of APP needs to update, the change of business logic codes is directly carried out on the mounting platform where APP, the business logic codes after parsing change obtain resolution logic code, resolution logic code is executed, new APP page architecture is regenerated and updates.Technical solution of the present invention is different from common by way of server update page architecture, is avoided that the problem that APP operational efficiency is low on platform caused by server process is time-consuming.In addition, the present invention also can be reduced the problem of server domain name is held as a hostage by server due to being not necessarily to for the update of APP page architecture.

Description

APP method for updating pages, device, electronic equipment and storage medium
Technical field
The present invention relates to technical field of software development more particularly to APP method for updating pages, device, electronic equipment and deposit Storage media.
Background technique
APP (Application, using) page, which refers to, provides various information and feature operation interface for user.Due to not Different with demand of the user for page function, the design and configuration of the page usually require to be fitted according to the actual requirement of user When modification or adjustment, to realize that page function dynamically changes according to the demand of user.
The APP page generally includes page architecture and content of pages two parts, and page architecture includes the knot of the entire display page Structure, such as the position of function button, the color of function button, the layout of various information, content of pages are then shown in the page Specifying information in layout, the terminal where page info needs APP are dynamically obtained to server.When needing to modify APP's When page architecture, the terminal for being equipped with APP can send page modification request to server;After server receives request, treat The corresponding code of the page of modification is modified, then modified code is sent back terminal, carries out rendering and logic by terminal It executes, the new page that terminal generates after executing is displayed on the screen again after being loaded by APP.
The mode of above-mentioned modification APP page architecture needs the processing by server, and server will also be carried out in processing A large amount of UI (User Interface, user interface) is calculated, relative to other APP page operations without server process Speech, the process that full page modification process not only sends and receivees is time-consuming, and server calculating also can expend the time, and then can reduce The operational efficiency of terminal APP.When handling the identical APP page, server is also needed to installation android system and IOS system Terminal carry out different debugging and setting, also result in the reduction of APP operational efficiency.
Summary of the invention
The present invention provides a kind of APP method for updating pages, device, electronic equipment and storage mediums, are avoided that server The low problem of APP operational efficiency on platform caused by processing is time-consuming.
In a first aspect, the present invention provides a kind of APP method for updating pages, comprising:
The corresponding business logic codes of APP are obtained from server, the business logic codes are used to generate the page of the APP Face frame structure;
If the page architecture of the APP needs to modify, the business logic codes are changed;
Business logic codes after parsing change, obtain resolution logic code;
The resolution logic code is executed, new APP page architecture is generated;
The APP page is updated using the page architecture of the new APP.
With reference to first aspect, in a kind of possible implementation of first aspect, if the page architecture of the APP needs Modification, then the step of changing the business logic codes include:
Obtain the modification request of the APP page;
Judge whether modification request is function modification request, the function modification include the modification of page function button, Page color modification and page layout modification;
If the modification request is function modification request, the business logic codes are changed.
With reference to first aspect, described corresponding from server acquisition APP in a kind of possible implementation of first aspect Business logic codes, before further include:
Detect whether the APP is mounted platform downloading, the mounting platform includes Android platform or ios platform;
If the APP is mounted platform downloading, business logic codes acquisition request is sent to the server.
It is with reference to first aspect, described to execute the resolution logic code in a kind of possible implementation of first aspect, The step of generating new APP page architecture include:
When the mounting platform is Android platform, in the resolution logic generation, is executed by the DU frame of Android platform Code, generates the page architecture of APP in Android platform, and the DU frame is the tool based on Android platform exploitation.
It is with reference to first aspect, described to execute the resolution logic code in a kind of possible implementation of first aspect, The step of generating new APP page architecture include:
When the mounting platform is ios platform, the resolution logic code is executed by the NJCS frame of ios platform, it is raw At the page architecture of APP on ios platform, the NJCS frame is the tool based on ios platform exploitation.
With reference to first aspect, in a kind of possible implementation of first aspect, the page architecture of the APP is finally in institute It states and is shown as the interface Native on APP.
With reference to first aspect, in a kind of possible implementation of first aspect, the business that is obtained from server Logical code is JS logic, and the resolution logic code is Native logic.
Second aspect, the present invention provides a kind of APP renewal of the page devices, comprising:
Code obtaining module, for obtaining the corresponding business logic codes of APP from server, the business logic codes are used In the page architecture for generating the APP;
Coding change module changes the service logic generation if the page architecture for the APP needs to modify Code;
Code analysis module obtains resolution logic code for parsing the business logic codes after changing;
Code execution module generates new APP page architecture for executing the resolution logic code;
Renewal of the page module, for using the page architecture of the new APP to update the APP page.
In conjunction with second aspect, in a kind of possible implementation of second aspect, the coding change module, comprising:
Request unit, the modification for obtaining the APP page are requested;
Judging unit is requested, for judging whether the modification request is function modification request, the function modification includes The modification of page function button, page color modification and page layout modification;
Code revision unit changes the service logic generation if being function modification request for modification request Code.
In conjunction with second aspect, in a kind of possible implementation of second aspect, further includes:
Detection module is downloaded, for detecting whether the APP is mounted platform downloading, the mounting platform includes Android platform or ios platform;
Code request module sends service logic to the server if being mounted platform downloading for the APP Code obtaining request.
In conjunction with second aspect, in a kind of possible implementation of second aspect, the code execution module, comprising:
Android platform code execution unit, for being put down by Android when the mounting platform is Android platform The DU frame of platform executes the resolution logic code, generates the page architecture of APP in Android platform, the DU frame is base In the tool of Android platform exploitation.
In conjunction with second aspect, in a kind of possible implementation of second aspect, the code execution module, comprising:
Ios platform code execution unit is used for when the mounting platform is ios platform, by the NJCS frame of ios platform The resolution logic code is executed, the page architecture of APP on ios platform is generated, the NJCS frame is based on the ios platform The tool of exploitation.
In conjunction with second aspect, in a kind of possible implementation of second aspect, the page architecture of the APP is finally in institute It states and is shown as the interface Native on APP.
In conjunction with second aspect, in a kind of possible implementation of second aspect, the business that is obtained from server Logical code is JS logic, and the resolution logic code is Native logic.
The third aspect, the present invention provides a kind of electronic equipment, comprising:
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, to realize described in first aspect APP pages Face update method.
Fourth aspect is stored with computer program in the storage medium the present invention also provides a kind of storage medium, when When at least one processor of APP renewal of the page device executes the computer program, APP renewal of the page device executes first party APP method for updating pages described in face.
From the above technical scheme, APP method for updating pages provided by the invention, device, electronic equipment and storage are situated between The corresponding business logic codes of APP can be stored in the mounting platform of APP by matter, when the page architecture of APP needs to update When, the modification and execution of business logic codes are directly carried out on the mounting platform where APP, regenerate the new APP page Framework is simultaneously shown.Technical solution of the present invention be different from it is common by way of server update page architecture, be avoided that clothes The low problem of APP operational efficiency on platform caused by business device processing is time-consuming.In addition, update of the present invention for APP page architecture Due to without also can be reduced the problem of server domain name is held as a hostage by server.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, letter will be made to attached drawing needed in the embodiment below Singly introduce, it should be apparent that, for those of ordinary skills, without any creative labor, It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of APP method for updating pages provided in an embodiment of the present invention;
Fig. 2 is a kind of modification process schematic of page architecture provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the APP page provided in an embodiment of the present invention;
Fig. 4 is the structural block diagram of APP renewal of the page device provided in an embodiment of the present invention;
Fig. 5 is electronic equipment hardware structural diagram provided in an embodiment of the present invention.
Specific embodiment
The APP page generally includes page architecture and content of pages two parts.Currently, the mounting platform as APP is needed to APP Page architecture when modifying, usually mounting platform first sends modification request to server;After server receives request, The corresponding code of the page to be modified is modified accordingly, then modified code is sent back into mounting platform, by installing Platform carries out rendering and logic executes, and the new page that mounting platform generates after executing is displayed on the screen again after being loaded by APP. Since this modification mode can reduce the operational efficiency of APP, so the present invention provides a kind of new APP method for updating pages, The low problem of APP operational efficiency on platform caused by avoiding server process time-consuming.
Fig. 1 is the flow chart of APP method for updating pages provided in an embodiment of the present invention.As shown in Figure 1, the embodiment of the present invention Provide a kind of APP method for updating pages, comprising the following steps:
S101 obtains the corresponding business logic codes of APP from server, and business logic codes are used to generate the page of APP Framework.
The page architecture of APP includes the structure of the entire display page, as the position of function button, function button color, Layout of various information etc..Page architecture is similar to the frame of the page, the page generally can be divided into several funtion parts, than Such as display portion, function key section can also more meticulously be divided into several areas according to the content of display for display portion Domain, the position in these regions are the layout for being construed as various information.Designer is usually to realize the page using code The foundation of framework, the layout and function of various pieces also realized by code, so, the modification for page architecture is actually It modifies to its corresponding code.
The mode of current page architecture modification is to modify via server for code, specific to modify process such as Shown in Fig. 2, Fig. 2 is a kind of modification process schematic of page architecture provided by the embodiments of the present application.Mounting platform 1 is first to service Device 2 sends modification request;After server 2 receives request, the corresponding code of the page to be modified is modified accordingly, then Modified code is sent back into mounting platform 1, rendering is carried out by mounting platform 1 and logic executes.In the embodiment of the present invention then It is the sequence of operations later by the corresponding code of the page architecture of APP from the mounting platform 1 for getting APP in server 2 It carries out, is no longer needed to by server on mounting platform 1, the time that many servers are received, send and calculated can be saved, Improve the operational efficiency of APP itself.
S102 changes business logic codes if the page architecture of APP needs to modify.
As described above, it further includes content of pages that the page of APP, which not only includes page architecture, therefore, the page modification of APP is asked Ask not only includes that page architecture modification requests to further include content of pages modification request.But because the content of pages of APP is dynamic Variation, therefore the content of pages of APP is obtained from the mounting platform of APP to server, the update of content of pages or Modification can not be detached from server and voluntarily be realized by mounting platform.And it is related to the change of page architecture in the embodiment of the present invention It can voluntarily be realized by mounting platform, in order to distinguish modification or the page that the modification request of mounting platform is page architecture The modification of face content, the present embodiment is before modification, it is also necessary to the further type of judgement modification request.
Specifically, S102 further include:
S201 obtains the modification request of the APP page.
For user when using APP, the function and content of APP can be presented in the platform screen that user uses by way of the page On curtain, Fig. 3 is that a kind of schematic diagram of the APP page provided by the embodiments of the present application is dispersed with some column rooms on this APP page Source information, information of real estate are distributed according to different type, such as the house type information in information of buying house, information of renting a house, house etc., at this The bottommost of the page is additionally provided with navigation bar, which includes the page turning key of front two, intermediate Menu key, homepage key etc.. User can be configured the function and content of the APP page according to the hobby of oneself, for example, setting like page color, It is arranged and likes function key color, content type that setting is liked etc., when user is once arranged, so that it may be interpreted as The APP page has carried out primary modification, and after the modification of the APP page, current page be will be updated as the new page.User is every once to be repaired Change, APP can be sent to one modification request of mounting platform according to the type of modification, and mounting platform requests to carry out phase according to modification The processing answered.
It is worth noting that platform, that is, APP mounting platform in the present embodiment, the mounting platform of APP can be operation The terminal devices such as mobile phone, the tablet computer of operating system.
S202 judges whether modification request is function modification request, and function modification includes the modification of page function button, the page Color modification and page layout modification.
The page architecture of APP includes the structure of the entire display page, as the position of function button, function button color, Layout of various information etc., and then judge that modification request is whether to modify for function on earth and request, it is also necessary to further judgement Whether the content that user wants modification belongs to a part of page architecture, if user wants the page-turning button in Fig. 3 from page Face bottom is changed to page top, then this position modification for being revised as function button, the at this time modification of the APP page request to belong to Request is modified in the function of page architecture;If user wants the Menu key Button Color in Fig. 3 being changed to green from yellow, The so this color modification for being revised as function button, the function that the modification request of the APP page also belongs to page architecture at this time are repaired Change request;For another example, user wants the display order of content in change Fig. 3, and interested several modules are changed on the page Portion, then this layout modification for being revised as information, the modification request of the APP page also belongs to the function modification of page structure at this time Request.Function modification request in certain the present embodiment is not limited in modifying the color of the position of function button, function button With the layout of information, other page modifications realized dependent on page architecture can be used as the function modification in the present embodiment, It is repeated no more in the present embodiment.
S203 changes business logic codes if modification request is function modification request.
Since APP page architecture is realized dependent on code, when carrying out framework modification, it is corresponding to need to change content to be modified Code, code after change is performed again, that is, produces new APP page architecture.
As shown in the above, the content of entire S102 is function modification for the modification of the APP page by judging user Or content modification can learn that the page modification request that APP is sent to mounting platform is that function modification request or content are repaired Change request, modifies and request if it is function, then can realize the business logic codes to page architecture on mounting platform Modification, without the business logic codes that please be look for novelty to server, reduce to server send request and receive code mistake Journey saves transmission time, improves the operational efficiency of APP.
S103, the business logic codes after parsing change, obtains resolution logic code.
Mounting platform in the present embodiment can be Android platform, be also possible to ios platform, then due to each platform Difference, the component of platform interior are that the language of execution is not also identical.In the present embodiment, DU can be developed based on Android platform Frame can develop NJCS frame based on ios platform, can develop software workable for Android platform using DU frame, utilize NJCS frame can develop software workable for ios platform.Due to the attribute and method of DU frame and NJCS frame Service Component The mode of calling is different, the logical code that DU frame and NJCS frame can execute be also it is different, with portion by server The business logic codes of acquisition need to parse different resolution logic codes by different grammar parsers, in Android In platform, which can be executed by DU frame;In ios platform, which can be by NJCS frame Frame executes.
In addition, the business logic codes obtained from server in the present embodiment are JS logic, resolution logic code is Native logic.JS (JavaScript) is a kind of literal translation formula scripting language, and the code write with it has JS logic, JS language It says that cross-platform characteristic is strong, under the support of most browsers, can be run in kinds of platform.Therefore, in order to meet this reality Applying the business logic codes in example can run in Android platform or ios platform, and business logic codes should be JS logic. It is directly modified and parses in mounting platform due to business logic codes again, belong to the primary operation on mounting platform, institute With the resolution logic code after parsing for Native logic.
As it can be seen that frame feature of the embodiment of the present invention based on different mounting platforms, can respectively parse business logic codes It at different logical codes, is then separately operable again, in turn, the APP method for updating pages in the embodiment of the present invention can be real The conversion of existing JS logic to Native logic is also able to achieve even if the corresponding business logic codes of each APP only have a set of It is run on different mounting platforms.
S104 executes resolution logic code, generates new APP page architecture.
In Android platform, DU frame executes resolution logic code, generates APP page frame new in Android platform Structure, in ios platform, NJCS frame executes resolution logic code, generates APP page architecture new in ios platform.As it can be seen that this Although applying for that the APP method for updating pages that embodiment provides uses identical services logical code on different mounting platforms, The APP page architecture ultimately generated still can guarantee that the characteristics of meeting different mounting platforms is shown.
S105 updates the APP page using the page architecture of new APP.
The updated APP page is the APP page modified after page architecture.As previously mentioned, if the page before is pressed Button color is yellow, and user wants to modify it, then after mounting platform is modified and executed to code, the page button of update Become green, is completed at this point, the modification of page architecture operates.
As shown in the above, a kind of APP method for updating pages provided in an embodiment of the present invention, passes through different from common The mode of server update page architecture is avoided that the problem that APP operational efficiency is low on platform caused by server process is time-consuming.
In addition, in the present embodiment, for being not necessarily to modify by framework of the server to APP, mounting platform and service Between device, the APP method for updating pages there is no need to carry out sending and receiving for data, therefore in the present embodiment also can be reduced clothes The problem of business device domain name is held as a hostage.
Specifically, obtaining the corresponding business logic codes of APP from server, before in the present embodiment further include:
Whether S301, detection APP are mounted platform downloading, and mounting platform includes Android platform or ios platform.
It is commonly installed the installation kit of platform downloading APP, then decompresses installation kit.Mounting platform can be directly under server APP is carried, can also be downloaded from application shop.
S302 sends business logic codes acquisition request to server if APP is mounted platform downloading.
The installation kit of APP is mounted after platform downloading, needs to decompress installation, and when installation then needs to construct the APP page Framework can watch its content so that user opens APP.In the present embodiment, the business logic codes of APP page architecture are generated Unified to save in the server, an APP corresponds to a set of business logic codes, which can be by different mounting platforms It uses.Since the business logic codes of APP save in the server, so once detecting that APP is mounted platform downloading, installation Platform just needs to send business logic codes acquisition request to server, and request server is by the APP corresponding service logic generation Code issues, so that mounting platform generates the page architecture of APP.
The APP page architecture generated in the present embodiment is finally shown as the interface Native on APP, can by above content Know, the page architecture modification operation in the present embodiment is entirely to complete on mounting platform, for what is generated in this way The page can be referred to as primary interface, the i.e. interface Native;And passes through server and modify code, then generation is executed by mounting platform The page that code generates is the non-protogenous page, and for the non-protogenous page for the primary page, the fluency of operation is poor, and user uses When APP, primary page experience sense also can be better than the experience sense of the non-protogenous page.
In the present embodiment, since mounting platform may include Android platform or ios platform, resolution logic generation is executed Code, the process for generating new APP page architecture can carry out different operations according to different platforms.
Specifically, executing resolution logic generation by the DU frame of Android platform when mounting platform is Android platform Code, generates the page architecture of APP in Android platform, and the DU frame is the tool based on Android platform exploitation.
Specifically, executing the resolution logic by the NJCS frame of ios platform when the mounting platform is ios platform Code, generates the page architecture of APP on ios platform, and the NJCS frame is the tool based on ios platform exploitation.
In addition, another way of realization of the APP method for updating pages in the embodiment of the present invention is encapsulation.Due to this implementation APP method for updating pages in example can be applied in ios platform and Android platform respectively, then encapsulation refers in ios platform Business logic codes are rewritten one time with unified coding criterion respectively with the both ends of Android platform, that is, form this The statement period system of mounting platform UI component can be achieved in the corresponding a set of business logic codes of APP in embodiment method after encapsulation One change and externally exposed method are unitized etc..The APP page after encapsulation externally exposes identical attribute and method, for example, It is known as the attribute of " Activity " in Android platform, is known as " ViewController " in ios platform, then by envelope " Page " is collectively referred to as after dress;For another example, the method referred to as " having a meal " in Android platform, be known as in ios platform " into Meal ", then being collectively referred to as after encapsulation " with feting ".
Renewal of the page or modification is implemented separately in current each mounting platform, also all only carries out to mounting platform respectively independent Encapsulation, platform is obvious, and the title of identical function or things on different mounting platforms is all different.Through The encapsulation process in the embodiment of the present invention is crossed, the system of the attribute of the APP page and call method on different mounting platforms may be implemented One changes, and then can also realize the cross-platform operation of business logic codes.
As it can be seen that APP method for updating pages provided in an embodiment of the present invention, obtains the corresponding service logic of APP from server The corresponding business logic codes of APP can be stored in the mounting platform of APP by code, when the page architecture of APP needs to update When, the change of business logic codes is directly carried out on the mounting platform where APP, the business logic codes after parsing change, Resolution logic code is obtained, resolution logic code is executed, regenerates new APP page architecture and update.Technology of the invention Scheme is different from common by way of server update page architecture, is avoided that on platform caused by server process is time-consuming The low problem of APP operational efficiency.In addition, the present invention goes back the update of APP page architecture due to being not necessarily to by server It can be reduced the problem of server domain name is held as a hostage.
Fig. 4 is the structural block diagram of APP renewal of the page device provided in an embodiment of the present invention.As shown in figure 4, the present invention is implemented A kind of APP renewal of the page device of example, for executing the correlation step of APP method for updating pages as shown in Figure 1.Specifically, The device includes: Code obtaining module 41, for obtaining the corresponding business logic codes of APP, the service logic from server Code is used to generate the page architecture of the APP;Coding change module 42, if the page architecture needs for the APP are repaired Change, then changes the business logic codes;Code analysis module 43 is solved for parsing the business logic codes after changing Analyse logical code;Code execution module 44 generates new APP page architecture for executing the resolution logic code;The page is more New module 45, for using the page architecture of the new APP to update the APP page.
Optionally, coding change module 42, comprising: request unit, the modification for obtaining the APP page are asked It asks;Judging unit is requested, for judging whether the modification request is function modification request, the function modification includes page function It can button modification, page color modification and page layout modification;Code revision unit, if being function for modification request Modification request, then change the business logic codes.
Optionally, APP renewal of the page device further include: whether downloading detection module is mounted flat for detecting the APP Platform downloading, the mounting platform includes Android platform or ios platform;Code request module, if being used for the APP quilt Mounting platform downloading, then send business logic codes acquisition request to the server.
Optionally, code execution module 44, comprising: Android platform code execution unit, for working as the mounting platform When for Android platform, the resolution logic code is executed by the DU frame of Android platform, is generated in Android platform The page architecture of APP, the DU frame are the tools based on Android platform exploitation.
Optionally, code execution module 44, comprising: ios platform code execution unit, for being when the mounting platform When ios platform, the resolution logic code is executed by the NJCS frame of ios platform, generates the page architecture of APP on ios platform, The NJCS frame is the tool based on ios platform exploitation.
Optionally, the page architecture of the APP is finally shown as the interface Native on the APP.
Optionally, the business logic codes obtained from server are JS logic, and the resolution logic code is Native logic.
Fig. 5 is electronic equipment hardware structural diagram provided in an embodiment of the present invention.As shown in figure 5, the present invention also provides A kind of electronic equipment, comprising: memory 51, for storing program instruction;Processor 52, for calling and executing the storage Program instruction in device, to realize APP method for updating pages described in above-described embodiment.Specifically it may refer in previous embodiment Associated description.
In the present embodiment, processor 52 can be connected with memory 51 by bus or other modes.Processor can be logical With processor, such as central processing unit, digital signal processor, specific integrated circuit, or it is configured to implement of the invention real Apply one or more integrated circuits of example.Memory may include volatile memory, such as random access memory;Memory It also may include nonvolatile memory, such as read-only memory, flash memory, hard disk or solid state hard disk.
The embodiment of the invention also provides a kind of storage medium, it is stored with computer program in the storage medium, works as APP When at least one processor of renewal of the page device executes the computer program, APP renewal of the page device executes above-mentioned implementation APP method for updating pages described in example.
The storage medium can be magnetic disk, CD, read-only memory (English: read-only memory, letter Claim: ROM) or random access memory (English: random access memory, referred to as: RAM) etc..
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present invention substantially or Say that the part that contributes to existing technology can be embodied in the form of software products, which can deposit Storage is in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that computer equipment (can be with It is personal computer, server or the network equipment etc.) execute certain part institutes of each embodiment of the present invention or embodiment The method stated.
Same and similar part may refer to each other between each embodiment in this specification.Especially for service construction For device and service loading device embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, phase Place is closed referring to the explanation in embodiment of the method.
Invention described above embodiment is not intended to limit the scope of the present invention..

Claims (16)

1. a kind of APP method for updating pages characterized by comprising
The corresponding business logic codes of APP are obtained from server, the business logic codes are used to generate the page frame of the APP Structure;
If the page architecture of the APP needs to modify, the business logic codes are changed;
Business logic codes after parsing change, obtain resolution logic code;
The resolution logic code is executed, new APP page architecture is generated;
The APP page is updated using the page architecture of the new APP.
2. change the method according to claim 1, wherein if the page architecture of the APP needs to modify The step of business logic codes includes:
Obtain the modification request of the APP page;
Judge whether the modification request is function modification request, and the function modification includes the modification of page function button, the page Color modification and page layout modification;
If the modification request is function modification request, the business logic codes are changed.
3. the method according to claim 1, wherein described obtain APP corresponding service logic generation from server Code, before further include:
Detect whether the APP is mounted platform downloading, the mounting platform includes Android platform or ios platform;
If the APP is mounted platform downloading, business logic codes acquisition request is sent to the server.
4. according to the method described in claim 3, it is characterized in that, the execution resolution logic code, generates new APP The step of page architecture includes:
When the mounting platform is Android platform, the resolution logic code is executed by the DU frame of Android platform, The page architecture of APP in Android platform is generated, the DU frame is the tool based on Android platform exploitation.
5. according to the method described in claim 3, it is characterized in that, the execution resolution logic code, generates new APP The step of page architecture includes:
When the mounting platform is ios platform, the resolution logic code is executed by the NJCS frame of ios platform, generates IOS The page architecture of APP on platform, the NJCS frame are the tools based on ios platform exploitation.
6. the method according to claim 1, wherein the page architecture of the APP is finally shown on the APP For the interface Native.
7. according to the method described in claim 6, it is characterized in that, the business logic codes obtained from server are JS Logic, the resolution logic code are Native logic.
8. a kind of APP renewal of the page device characterized by comprising
Code obtaining module, for obtaining the corresponding business logic codes of APP from server, the business logic codes are for giving birth to At the page architecture of the APP;
Coding change module changes the business logic codes if the page architecture for the APP needs to modify;
Code analysis module obtains resolution logic code for parsing the business logic codes after changing;
Code execution module generates new APP page architecture for executing the resolution logic code;
Renewal of the page module, for using the page architecture of the new APP to update the APP page.
9. device according to claim 8, which is characterized in that the coding change module, comprising:
Request unit, the modification for obtaining the APP page are requested;
Judging unit is requested, for judging whether the modification request is function modification request, the function modification includes the page Function button modification, page color modification and page layout modification;
Code revision unit changes the business logic codes if being function modification request for modification request.
10. device according to claim 8, which is characterized in that further include:
Detection module is downloaded, for detecting whether the APP is mounted platform downloading, the mounting platform includes Android flat Platform or ios platform;
Code request module sends business logic codes to the server if being mounted platform downloading for the APP Acquisition request.
11. device according to claim 10, which is characterized in that the code execution module, comprising:
Android platform code execution unit is used for when the mounting platform is Android platform, by Android platform DU frame executes the resolution logic code, generates the page architecture of APP in Android platform, and the DU frame is based on institute State the tool of Android platform exploitation.
12. device according to claim 10, which is characterized in that the code execution module, comprising:
Ios platform code execution unit, for being executed by the NJCS frame of ios platform when the mounting platform is ios platform The resolution logic code, generates the page architecture of APP on ios platform, and the NJCS frame is developed based on the ios platform Tool.
13. device according to claim 8, which is characterized in that the page architecture of the APP is finally shown on the APP It is shown as the interface Native.
14. device according to claim 13, which is characterized in that the business logic codes obtained from server are JS logic, the resolution logic code are Native logic.
15. a kind of electronic equipment characterized by comprising
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, to realize described in any one of claim 1~7 APP method for updating pages.
16. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when APP renewal of the page fills When at least one processor set executes the computer program, APP renewal of the page device perform claim requires any one of 1~7 The APP method for updating pages.
CN201910327112.0A 2019-04-23 2019-04-23 APP method for updating pages, device, electronic equipment and storage medium Pending CN110221848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910327112.0A CN110221848A (en) 2019-04-23 2019-04-23 APP method for updating pages, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910327112.0A CN110221848A (en) 2019-04-23 2019-04-23 APP method for updating pages, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110221848A true CN110221848A (en) 2019-09-10

Family

ID=67820124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910327112.0A Pending CN110221848A (en) 2019-04-23 2019-04-23 APP method for updating pages, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110221848A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324390A (en) * 2020-02-20 2020-06-23 苏宁云计算有限公司 Device and method for realizing APP content configuration and real-time update
CN112114777A (en) * 2020-09-09 2020-12-22 深圳市紫金支点技术股份有限公司 ATMC application software development method, intelligent terminal and storage medium
CN112214214A (en) * 2020-10-29 2021-01-12 上海厦广科技有限公司 Low code development system, device and medium for android native APP
CN112379880A (en) * 2020-12-01 2021-02-19 北京致远互联软件股份有限公司 Method for dynamically updating system page characters by zero codes
CN112947955A (en) * 2019-12-31 2021-06-11 深圳市明源云链互联网科技有限公司 Architecture updating method and device of application program, electronic equipment and storage medium
CN113760314A (en) * 2020-07-17 2021-12-07 北京沃东天骏信息技术有限公司 Page module control method and device, electronic equipment and storage medium
CN113778439A (en) * 2021-08-13 2021-12-10 希姆通信息技术(上海)有限公司 Function double-page layout UI design method based on Android system
CN115357257A (en) * 2022-10-21 2022-11-18 统信软件技术有限公司 Installation file generation method, system, computing device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046789A1 (en) * 2013-08-09 2015-02-12 Yottaa Inc. Systems and methods for dynamically modifying a requested web page from a server for presentation at a client
CN105159677A (en) * 2015-09-09 2015-12-16 深圳Tcl数字技术有限公司 Controlled display method of terminal user interface and controlled display device of terminal user interface
CN105204873A (en) * 2014-05-27 2015-12-30 宇龙计算机通信科技(深圳)有限公司 Terminal and application interface display method
CN105760146A (en) * 2014-12-16 2016-07-13 上海天脉聚源文化传媒有限公司 User interface layout method and system
CN106250158A (en) * 2016-08-01 2016-12-21 广州优视网络科技有限公司 The layout method of a kind of client end interface, device and mobile device
US20170091159A1 (en) * 2015-09-25 2017-03-30 Yahoo! Inc. Programmatic native rendering of structured content
CN107291736A (en) * 2016-03-31 2017-10-24 华为技术有限公司 A kind of method and system of edit page
CN107844352A (en) * 2017-10-27 2018-03-27 深圳前海桔子信息技术有限公司 A kind of application interface collocation method and device
CN108776592A (en) * 2018-05-23 2018-11-09 北京五八信息技术有限公司 A kind of method, apparatus of page makeup, equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046789A1 (en) * 2013-08-09 2015-02-12 Yottaa Inc. Systems and methods for dynamically modifying a requested web page from a server for presentation at a client
CN105204873A (en) * 2014-05-27 2015-12-30 宇龙计算机通信科技(深圳)有限公司 Terminal and application interface display method
CN105760146A (en) * 2014-12-16 2016-07-13 上海天脉聚源文化传媒有限公司 User interface layout method and system
CN105159677A (en) * 2015-09-09 2015-12-16 深圳Tcl数字技术有限公司 Controlled display method of terminal user interface and controlled display device of terminal user interface
US20170091159A1 (en) * 2015-09-25 2017-03-30 Yahoo! Inc. Programmatic native rendering of structured content
CN107291736A (en) * 2016-03-31 2017-10-24 华为技术有限公司 A kind of method and system of edit page
CN106250158A (en) * 2016-08-01 2016-12-21 广州优视网络科技有限公司 The layout method of a kind of client end interface, device and mobile device
CN107844352A (en) * 2017-10-27 2018-03-27 深圳前海桔子信息技术有限公司 A kind of application interface collocation method and device
CN108776592A (en) * 2018-05-23 2018-11-09 北京五八信息技术有限公司 A kind of method, apparatus of page makeup, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
敬业的程序猿: "React-Native简单介绍", 《CSDN HTTPS://BLOG.CSDN.NET/MPK_GITHUB/ARTICLE/DETAILS/73527316?》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947955A (en) * 2019-12-31 2021-06-11 深圳市明源云链互联网科技有限公司 Architecture updating method and device of application program, electronic equipment and storage medium
CN112947955B (en) * 2019-12-31 2021-12-07 深圳市明源云链互联网科技有限公司 Architecture updating method and device of application program, electronic equipment and storage medium
CN111324390A (en) * 2020-02-20 2020-06-23 苏宁云计算有限公司 Device and method for realizing APP content configuration and real-time update
CN113760314A (en) * 2020-07-17 2021-12-07 北京沃东天骏信息技术有限公司 Page module control method and device, electronic equipment and storage medium
CN112114777A (en) * 2020-09-09 2020-12-22 深圳市紫金支点技术股份有限公司 ATMC application software development method, intelligent terminal and storage medium
CN112214214A (en) * 2020-10-29 2021-01-12 上海厦广科技有限公司 Low code development system, device and medium for android native APP
CN112379880A (en) * 2020-12-01 2021-02-19 北京致远互联软件股份有限公司 Method for dynamically updating system page characters by zero codes
CN113778439A (en) * 2021-08-13 2021-12-10 希姆通信息技术(上海)有限公司 Function double-page layout UI design method based on Android system
CN113778439B (en) * 2021-08-13 2023-07-25 希姆通信息技术(上海)有限公司 Android system-based functional double-page layout UI design method
CN115357257A (en) * 2022-10-21 2022-11-18 统信软件技术有限公司 Installation file generation method, system, computing device and storage medium

Similar Documents

Publication Publication Date Title
CN110221848A (en) APP method for updating pages, device, electronic equipment and storage medium
US9077770B2 (en) Mobile web app infrastructure
EP2840511A1 (en) System and method for dynamically converting webpage, and computer-readable recording medium
CN104731589A (en) Automatic generation method and device of user interface (UI)
CN107741844B (en) Method and device for generating application installation package
CN110806868B (en) Single-page building and loading method
WO2021018005A1 (en) Inter-process communication method, apparatus and device
CN107451162A (en) Network resource accession equipment, mixing apparatus and method
CN109901834A (en) Document file page generation method, device, computer equipment and storage medium
CN103176834B (en) A kind of method of invoke extensions interface and device
CN110389755B (en) Code processing method and device, electronic equipment and computer readable storage medium
CN111290737B (en) Method and device for application program development and electronic equipment
CN111881019A (en) User interface testing method and device
KR20130017337A (en) Hybrid app development platform architecture and test method of the same, and computer-readable recording medium with program for the same
CN103324517A (en) Off-line application generation and call method, terminal and system
CN105160028A (en) Webpage browsing realizing method and browser realizing system
US20070157194A1 (en) Post-deployment user interface update in a mobile device
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
US20070156841A1 (en) Platform independent user interface for a mobile device
CN114138372A (en) Front-end component loading method and device
CN111124924B (en) API deployment method and device, electronic equipment and storage medium
CN107239265B (en) Binding method and device of Java function and C function
CN106919375B (en) Screen self-adaption method and system on mobile terminal equipment
US20070155426A1 (en) Application access to cellular telephone settings
US20070155425A1 (en) Enabling rapid and de-coupled ui development for a cellular telephone

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