CN113360807B - Page display method and device of mixed-mode mobile application and related equipment - Google Patents

Page display method and device of mixed-mode mobile application and related equipment Download PDF

Info

Publication number
CN113360807B
CN113360807B CN202110702983.3A CN202110702983A CN113360807B CN 113360807 B CN113360807 B CN 113360807B CN 202110702983 A CN202110702983 A CN 202110702983A CN 113360807 B CN113360807 B CN 113360807B
Authority
CN
China
Prior art keywords
preset
request
coroutine
page
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110702983.3A
Other languages
Chinese (zh)
Other versions
CN113360807A (en
Inventor
董秋平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110702983.3A priority Critical patent/CN113360807B/en
Publication of CN113360807A publication Critical patent/CN113360807A/en
Application granted granted Critical
Publication of CN113360807B publication Critical patent/CN113360807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application belongs to the technical field of research and development management, and provides a page display method and device for mixed-mode mobile application, computer equipment and a computer-readable storage medium. According to the method, a display instruction for displaying the preset page is obtained, the preset local page file is obtained based on the preset first co-process contained in the preset first thread, the preset request parameter contained in the preset local page file is obtained, the preset request parameter is transmitted to the preset second co-process corresponding to the preset native component based on the preset synchronous request, the network request corresponding to the preset request parameter is sent to the preset server side based on the preset second co-process, the request data corresponding to the preset request parameter is obtained from the preset server side, the request data is transmitted back to the preset local page file, the preset page corresponding to the preset local page file is displayed based on the preset first co-process, and the network request efficiency of the web page request in the mixed-mode mobile application can be improved.

Description

Page display method and device of mixed-mode mobile application and related equipment
Technical Field
The present application relates to the field of research and development management technologies, and in particular, to a method and an apparatus for displaying a page of a mixed-mode mobile application, a computer device, and a computer-readable storage medium.
Background
In the conventional technology, the Android network request frame is the most popular to be a Retrofit + OKhttp + protocol (or RxJava) frame, but the Retrofit + OKhttp + protocol (or RxJava) frame is suitable for a project only with Android codes, and is not suitable for use if a request of H5 is involved in the project, because all network requests of the Retrofit are uniformly written in a Java file, and H5 is dynamically called, and the Android knows the transmitted request parameters and interfaces only when the H5 is called, so that the Retrofit + OKhttp + protocol (or RxJava) frame has a good effect when processing the network request, but the Retrofit + OKhttp + protocol (or RxJava) frame has a problem of low efficiency of processing the network request when the H5 request is involved.
Disclosure of Invention
The application provides a page display method and device of mixed-mode mobile application, computer equipment and a computer readable storage medium, which can solve the technical problem of low network request processing efficiency in the page display process of mixed-mode mobile application in the prior art.
In a first aspect, the present application provides a page display method for a mixed-mode mobile application, where the mixed-mode mobile application includes a preset local page file and a preset native component for displaying a preset page, and the method includes: acquiring a display instruction for displaying a preset page, and acquiring a preset local page file based on a preset first coroutine included in a preset first thread according to the display instruction; acquiring a preset request parameter contained in the preset local page file according to the preset local page file, and transmitting the preset request parameter to a preset second coroutine corresponding to the preset native component based on a preset synchronous request, wherein the preset second coroutine is contained in a preset second thread; switching the coroutine execution right to the preset second coroutine, sending the network request corresponding to the preset request parameter to a preset server side based on the preset second coroutine, and acquiring the request data corresponding to the preset request parameter from the preset server side; and returning the request data to the preset local page file, switching the coroutine execution right to the preset first coroutine, and displaying the preset page corresponding to the preset local page file according to the request data based on the preset first coroutine.
In a second aspect, the present application further provides a page display apparatus for a mixed-mode mobile application, where the mixed-mode mobile application includes a preset local page file and a preset native component for displaying a preset page, and the apparatus includes: the first obtaining unit is used for obtaining a display instruction for displaying a preset page, and obtaining a preset local page file according to the display instruction and based on a preset first coroutine included in a preset first thread; the transmission unit is used for acquiring a preset request parameter contained in the preset local page file according to the preset local page file, and transmitting the preset request parameter to a preset second co-program corresponding to the preset native component based on a preset synchronous request, wherein the preset second co-program is contained in a preset second thread; the sending unit is used for switching the coroutine execution right to the preset second coroutine, sending the network request corresponding to the preset request parameter to a preset server based on the preset second coroutine, and acquiring request data corresponding to the preset request parameter from the preset server; and the display unit is used for transmitting the request data back to the preset local page file, switching the coroutine execution right to the preset first coroutine, and displaying the preset page corresponding to the preset local page file according to the request data based on the preset first coroutine.
In a third aspect, the present application further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the page display method for the mixed-mode mobile application when executing the computer program.
In a fourth aspect, the present application further provides a computer readable storage medium storing a computer program, which when executed by a processor, causes the processor to perform the steps of the page display method of the mixed-mode mobile application.
The application provides a page display method and device of mixed-mode mobile application, computer equipment and a computer-readable storage medium. This application is through obtaining the display instruction that shows preset page, according to the display instruction, based on the first coroutine of predetermineeing that first thread contains, obtain predetermineeing local page file, according to predetermineeing local page file, obtain predetermineeing the preset request parameter that local page file contains, and based on predetermineeing synchronous request, will predetermineeing the request parameter and transmitting to predetermineeing the second coroutine that native subassembly corresponds, predetermineeing the second coroutine and containing in predetermineeing the second thread, switch to predetermineeing the second coroutine, based on predetermineeing the second coroutine, will predetermineeing the network request that request parameter corresponds and sending to predetermineeing the server end, and follow predetermineeing the server end and obtain predetermineeing the request data that request parameter corresponds, will the request data passback extremely predetermineeing local page file, and switch to predetermineeing first coroutine, based on predetermineeing first coroutine, according to the request data, will predetermineeing local page file corresponds predetermineeing the preset page and show to be in the first predetermineeing the thread (main thread) with predetermineeing the first coroutine, the first coroutine is based on the request, the second coroutine is convenient, and the web page is convenient when the efficiency is compared with traditional mixed mode, the simple technical network is realized that the simple web page is relatively high, the efficiency is requested in the web page is compared, the convenient web page is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a page display method of a mixed-mode mobile application according to an embodiment of the present application;
fig. 2 is a schematic frame diagram of an application environment where a mixed-mode mobile application is located in a page display method of the mixed-mode mobile application according to the embodiment of the present application;
fig. 3 is a schematic view of a first sub-flow of a page display method of a mixed-mode mobile application according to an embodiment of the present application;
fig. 4 is a second sub-flowchart of a page display method of a mixed-mode mobile application according to an embodiment of the present application;
fig. 5 is a third sub-flow diagram of a page display method of a mixed-mode mobile application according to an embodiment of the present application;
fig. 6 is a fourth sub-flow diagram illustrating a page display method of a mixed-mode mobile application according to an embodiment of the present application;
fig. 7 is a fifth sub-flowchart of a page display method of a mixed-mode mobile application according to an embodiment of the present application;
fig. 8 is a sixth sub-flowchart of a page display method of a mixed-mode mobile application according to an embodiment of the present application;
FIG. 9 is a schematic block diagram of a page display apparatus for a mixed-mode mobile application provided in an embodiment of the present application; and
fig. 10 is a schematic block diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Referring to fig. 1 and fig. 2, fig. 1 is a flowchart illustrating a page display method of a mixed-mode mobile application according to an embodiment of the present application, and fig. 2 is a framework diagram illustrating an application environment where the mixed-mode mobile application is located in the page display method of the mixed-mode mobile application according to the embodiment of the present application. As shown in fig. 1, the mixed-mode mobile application includes a preset local page file and a preset native component for displaying a preset page, and the method includes the following steps S11 to S14:
s11, a display instruction for displaying the preset page is obtained, and the preset local page file is obtained based on a preset first co-program contained in a preset first thread according to the display instruction.
The hybrid mode mobile application is an application program developed based on a Web App and a Native App, and uses a Web page technology and a program language, the display function of the App is generally realized by the Web page technology, the Native program is compiled based on the program language (the program compiled by the Native program is the Native program and is used for describing the application program developed by the Native App), wherein the Native App is a third party application program which is based on a local operating system of a smart phone, such as IOS, android or WP, and is compiled and operated by the Native program, and is also called local App, the commonly used development languages are JAVA, C + +, object-C, and the Web App is a Web-based system and application, and the App realized by the Web page technology runs on a network and a standard browser.
Coroutines, also called micro-threads or fibers, with the name of english corputine, run in threads and can be scheduled and switched back and forth among threads, wherein a process generally represents an application service, multiple threads can be created in one application service, and coroutines can be regarded as codes in a class function or a block function, and multiple coroutines can be created in one main thread.
Specifically, in a mixed-mode mobile application project, when a user starts an application and displays a preset page, a process and an execution thread corresponding to the application are created in advance, where the execution thread is a preset first thread, the preset first thread is used for taking charge of all activities occurring on a screen, multiple coroutines including the preset first coroutine can be created in the preset first thread, after a display instruction of the display page is obtained, a preset local page file is obtained according to the display instruction and based on the preset first coroutine included in the preset first thread, and the preset local page file is executed through the preset first coroutine to display the preset page corresponding to the display instruction.
Further, referring to fig. 3 and fig. 2, fig. 3 is a schematic view of a first sub-flow of a page display method of a mixed-mode mobile application according to an embodiment of the present disclosure, as shown in fig. 3, in this embodiment, the mixed-mode mobile application includes a preset local H5 file and a preset native component for displaying a preset H5 page, the step of obtaining a display instruction for displaying the preset page includes, according to the display instruction, based on a preset first co-program included in a preset first thread, obtaining the preset local page file:
s111, responding to a display instruction for displaying the preset H5 page, and starting a preset first co-thread included in the main thread;
and S112, loading a preset local H5 file corresponding to the preset H5 page through a preset webpage view control based on the preset first co-project.
Specifically, since the mixed-mode mobile application implements the display function of the APP through the Web page technology, the page content of the APP can be displayed using an H5 page, for example, in an Android system, an H5 file can be loaded through a WebView control (i.e., a Web page view control) to display a Web page, where the WebView is used for displaying and rendering a Web page and is a control used for displaying a Web page in the Android system. Meanwhile, in the Android system, when a user starts an application, the Android creates a new Linux process and a new execution thread, the execution thread is a main thread, namely a preset first thread, the main thread is also called an interface thread (UI thread) and is responsible for all activities occurring on a screen, meanwhile, all time-consuming operations in the application are placed into a sub-thread for execution, and the sub-thread is a thread manually created in the process and is used for executing time-consuming tasks. Under the default condition, the Android main thread (UI thread) does not perform time-consuming operations such as network requests, the sub-thread cannot update the UI, and the coroutine can be switched and scheduled among different threads, so that in the embodiment of the application, by respectively creating the coroutine in the main thread and the sub-thread, and by performing corresponding UI display and time-consuming operations such as network requests through respective coroutines, when a user starts the mixed-mode mobile application or opens a page of the mixed-mode mobile application, it is detected that the mixed-mode mobile application is run, and the page on the mixed-mode mobile application needs to be displayed, in response to a display instruction for displaying a preset H5 page on the mixed-mode mobile application, a preset first thread (a main thread (namely a UI thread) in an Android system) is started to process the display of the current UI page, but because the main thread cannot perform the time-consuming operations such as network requests, a preset first coroutine included in the preset first thread is further started, based on the preset first coroutine.g., a preset H5 file corresponding to the preset H5 page is loaded, and when the Android system starts a display H5 page, for example, a local App 5 of the Android system, and a display H5 package can be loaded, and when the local APP page is loaded, the local APP package can be displayed.
S12, acquiring a preset request parameter contained in the preset local page file according to the preset local page file, and transmitting the preset request parameter to a preset second co-thread corresponding to the preset native component based on a preset synchronous request, wherein the preset second co-thread is contained in a preset second thread.
And the operation that the synchronous request is the execution request is in a blocking type until the response corresponding to the request is returned.
Specifically, in the mixed-mode mobile application project, in addition to creating the execution thread corresponding to the application (i.e., the preset first thread), a preset second thread is also created, where the preset second thread is used for performing time-consuming operations such as network requests, and multiple coroutines including a preset second coroutine may be created in the preset second thread, and each thread is used for processing different time-consuming tasks. The coroutine can be switched and scheduled among different threads, so that after the preset request parameters contained in the preset local page file are acquired according to the preset local page file, the preset request parameters can be transmitted to the preset second coroutine corresponding to the preset native component based on the preset synchronous request, and the preset second coroutine is switched to execute a time-consuming task for acquiring the request data corresponding to the preset request parameters, so that the time-consuming task is processed through the preset second coroutine based on the synchronous request, and the time-consuming task is used for acquiring the request data corresponding to the preset request parameters.
Further, referring to fig. 4, fig. 4 is a second sub-flow diagram of a page display method of a mixed-mode mobile application according to an embodiment of the present disclosure, as shown in fig. 4, in this embodiment, the step of obtaining a preset request parameter included in a preset local page file according to the preset local page file, and transmitting the preset request parameter to a preset second protocol corresponding to a preset native component based on a preset synchronization request includes:
s1121, acquiring a preset request parameter contained in the preset local H5 file according to the preset local H5 file;
s1122, a synchronization request is initiated through a preset synchronization request method of the OKHTTP network framework, and the preset request parameter is transmitted to a preset second coroutine corresponding to the preset native component.
Specifically, the request of the H5 page is to dynamically call an Android end through a bridging method to send an interface request, that is, what data the H5 page needs to use, call an Android end interface at any time according to a requirement to make a request, when the H5 page is displayed, load a preset local H5 file corresponding to the preset H5 page, obtain a preset request parameter included in the preset local H5 file according to the preset local H5 file, where the preset request parameter is data that needs to be obtained at any time through dynamic call, initiate a synchronization request through a preset synchronization request method in an OKHTTP network frame, and then directly return request data corresponding to the preset request parameter through a return value of a function based on the synchronization request, for example, an Execute method in the OKHTTP, transfer the preset request parameter to a preset second protocol corresponding to a preset native component at an App end, where the preset second protocol is included in the preset second thread, where the preset second thread is a thread for performing a task, and is a sub-thread system, thereby realizing that the preset web page corresponding to the H5 page runs through a network synchronization request, and the network can directly transfer the Android task to the master thread, and directly transfer the network synchronization request through the Android thread, and the network synchronization request can be a network synchronization request, so that the network can be directly transferred to the network can be executed by a network synchronization request and the master network.
S13, switching the coroutine execution right to the preset second coroutine, sending the network request corresponding to the preset request parameter to a preset server side based on the preset second coroutine, and acquiring the request data corresponding to the preset request parameter from the preset server side.
The coroutine execution right is a coroutine execution right, or is called a program execution right, that is, a right to execute a code.
Specifically, since the preset second thread to which the preset second coroutine belongs is a component based on a Native program, that is, the preset second thread to which the preset second coroutine belongs is a Native component, time-consuming operations such as a network request can be performed, the preset first coroutine transmits the preset request parameter to the preset second coroutine corresponding to the preset Native component, and switches the coroutine execution right to the preset second coroutine, so that the preset second coroutine processes the network request corresponding to the preset request parameter, and at this time, the preset first coroutine is in a blocking state. And the preset second protocol generates a network request corresponding to the preset request parameter according to the preset request parameter, and sends the network request to a preset server side so as to acquire request data corresponding to the preset request parameter from the preset server side, so that the hybrid App realizes a synchronous request of network processing.
Further, referring to fig. 5, fig. 5 is a schematic view of a third sub-flow of a page display method of a mixed-mode mobile application according to an embodiment of the present application, as shown in fig. 5, in this embodiment, the step of switching the coroutine execution right to the preset second coroutine, sending a network request corresponding to the preset request parameter to a preset server based on the preset second coroutine, and acquiring request data corresponding to the preset request parameter from the preset server includes:
s131, switching the coroutine execution right to the preset second coroutine, executing the preset second coroutine, calling a preset network request method based on the preset second coroutine, including the preset request parameter in the preset network request method, and generating a network request corresponding to the preset request parameter;
s132, the network request is sent to a preset server side, and request data corresponding to the preset request parameters are obtained from the preset server side.
Specifically, since a coroutine may suspend execution of the coroutine in a suspended or blocked manner, and other coroutines may continue to execute, where the suspension is only suspension in a program (in a user state), and at the same time, the coroutine execution right is transferred to other coroutines for use, so that a synchronization request corresponding to an H5 page may be initiated, and after the execution of the coroutine for which the execution right is obtained is completed, the suspended coroutine is woken up from a suspension point, and therefore, the preset request parameter is transferred to a preset second coroutine corresponding to the preset native component, the preset first coroutine may be suspended, the preset second coroutine in the preset second thread is started, the coroutine execution right is transferred to the preset second coroutine, and the preset second coroutine is executed, and since the preset second coroutine belongs to the preset second thread, the second preset thread may execute a time-consuming task. Therefore, the method may include switching a coroutine execution right from the preset first coroutine to the preset second coroutine to execute the preset second coroutine, wherein the coroutine implements non-preemptive scheduling, that is, at a specific location (for example, a call point blocking I/O, coroutines generally use I/O as a scheduling basis), the coroutine itself actively gives away a CPU (for example, yield call), that is, each coroutine group includes a scheduler, which is passively scheduled (non-preemptive), and then, based on the preset second coroutine, calls a preset network request method, for example, calls a preset Get request method or a preset Post request method, and includes the preset request parameter in the preset network request method, thereby generating a time-consuming task corresponding to the network request corresponding to the preset request parameter according to the preset request parameter, for example, a generic request interface may be packaged, includes the preset request parameter in the request interface, and sends the network request parameter to the processing end through the preset interface, the network request parameter is sent to the processing end, the server, the network request corresponds to a dynamic network request of a mobile application server, and the Android application server may obtain a dynamic request for a dynamic read request from a mobile application server, and the Android application server is a dynamic read application, and the Android application server, the Android application server is a dynamic application server, the Android application server executes the dynamic application server. Therefore, one project is used for two network frames, or the Retrofit is not used, in the embodiment of the application, the synchronous request of the network request is directly realized through the switching and the scheduling between coroutines, the frame of the network request is simplified, and the processing efficiency of the network request is improved.
And S14, the request data is transmitted back to the preset local page file, the coroutine execution right is switched to the preset first coroutine, and the preset page corresponding to the preset local page file is displayed according to the request data based on the preset first coroutine.
Specifically, after the preset second coroutine obtains the request data corresponding to the preset request parameter from the preset server, the request data is transmitted back to the preset local page file, and then the coroutine execution right is switched back to the preset first coroutine, so that the preset first coroutine can run a program, and the preset page corresponding to the preset local page file can be displayed according to the request data based on the preset first coroutine.
Further, referring to fig. 6, fig. 6 is a schematic view of a fourth sub-process of a page display method for mixed-mode mobile application according to an embodiment of the present disclosure, as shown in fig. 6, in this embodiment, the step of returning the request data to the preset local page file, switching the coroutine execution right to the preset first coroutine, and displaying the preset page corresponding to the preset local page file according to the request data based on the preset first coroutine includes:
s141, the request data are transmitted back to the preset local H5 file;
and S142, switching the coroutine execution authority to the preset first coroutine based on a preset coroutine scheduler, executing the preset first coroutine, and displaying the preset H5 page corresponding to the preset local H5 file according to the request data based on the preset first coroutine.
Specifically, in Android development, because a main thread cannot perform time-consuming operations such as network requests and the like, and a sub-thread cannot update a UI (user interface), the network requests can only be initiated by the sub-thread, and then the main thread is switched to update the UI after the requests are finished. In the embodiment of the present application, the request data corresponding to the preset request parameter of the preset second protocol Cheng Huoqu is returned to the preset local H5 file, and meanwhile, since thousands of protocols may be generated in an application program based on the protocols, all the protocols may be scheduled in a unified manner by a scheduler, the protocol scheduler manages all the protocols in the thread and schedules the protocols to run in sequence, after one protocol is executed, the execution right of the protocol needs to be handed to the scheduler, i.e., a yield operation is performed, the programs related to the protocol can be executed in multiple threads in sequence according to the code sequence, and the subsequent protocol scheduler can continue to execute the protocol. In this embodiment of the present application, based on a preset coroutine scheduler, a coroutine execution authority is switched to the preset first coroutine, the first preset coroutine is continuously executed, and then based on the preset first coroutine, the preset local H5 file is subjected to web page rendering processing according to the request data, so that the preset H5 page corresponding to the preset local H5 file is displayed, so that the network request of H5 in the mixed-mode mobile application is changed from an asynchronous request to a synchronous request, and please refer to the following pseudo code comparison of the synchronous request and the asynchronous request in this embodiment of the present application: if the login interface is called first and then the inquiry information interface is called through the user name after success, the pseudo codes are as follows:
1) Synchronization request Varuser = logic (params)
Varresponse=queryInfo(user)
2) Asynchronous request:
Figure BDA0003130902990000111
further, referring to fig. 7, fig. 7 is a fifth sub-flowchart illustrating a page display method of a mixed-mode mobile application according to an embodiment of the present application, as shown in fig. 7, in this embodiment, the step of displaying the preset H5 page corresponding to the preset local H5 file according to the request data includes:
s1421, acquiring the preset request parameter included in the request data and target request data corresponding to the preset request parameter;
s1422, traversing the preset local H5 file according to the preset request parameters to obtain all preset target positions of the preset local H5 file containing the preset request parameters, and assigning the target request data to each preset target position to obtain a target local H5 file corresponding to the preset local H5 file;
s1423, rendering the target local H5 file to obtain the preset H5 page corresponding to the target local H5 file.
Specifically, the network request may include a plurality of preset request parameters, each preset request parameter may be described by a corresponding preset parameter identifier, and the request data returned by the preset server includes each preset request parameter and target request data corresponding to the preset request parameter, for example, the request data may be the preset parameter identifier and the target request data corresponding to the preset parameter identifier, for example, "y =123456", where y is a preset parameter identifier (i.e., a preset request parameter), and "123456" is the target request data corresponding to "y".
The preset second protocol transmits the request data back to the preset local page file, switches the program execution right to the preset first protocol, and acquires the preset request parameter y contained in the request data and the target request data corresponding to the preset request parameter y based on the preset first protocol,
traversing the preset local H5 file according to the preset request parameter y to obtain all preset target positions of the preset local H5 file containing the preset request parameter y, assigning target request data corresponding to the preset request parameter y to each preset target position to obtain a target local H5 file corresponding to the preset local H5 file, and rendering the target local H5 file to obtain the preset H5 page corresponding to the target local H5 file, wherein rendering the target local H5 file is to convert the target local H5 file into a user-visible result and can be performed by a preset rendering engine, the rendering engine is capable of converting an HTML/CSS/JavaScript text and corresponding resource files into image results, and the rendering engine comprises Trident (IE), gecko (FF), webKi (Safari, chrome, andriod browser) and the like.
Therefore, the asynchronous request in the traditional technology is changed into the synchronous request in the embodiment of the application, the returned result is directly returned through a function, the frame dependence of Retrofit is reduced, the size of an apk packet is reduced, the code is concise and elegant, the follow-up maintenance is convenient, and meanwhile, the coroutine is lighter than the thread, so that the App has better performance.
In the embodiment of the application, by obtaining a display instruction for displaying a preset page, obtaining a preset local page file based on a preset first co-program contained in a preset first thread according to the display instruction, obtaining a preset request parameter contained in the preset local page file according to the preset local page file, transmitting the preset request parameter to a preset second co-program corresponding to the preset native component based on a preset synchronization request, wherein the preset second co-program is contained in the preset second thread, switching to the preset second co-program, sending a network request corresponding to the preset request parameter to a preset server based on the preset second co-program, and obtaining request data corresponding to the preset request parameter from the preset server, the request data is transmitted back to the preset local page file, the preset page corresponding to the preset local page file is displayed according to the request data based on the preset first co-program, and therefore switching and scheduling are performed between the first preset thread (main thread) and the preset second thread (sub-thread) based on the co-program, synchronous request of webpage parameters is achieved.
Referring to fig. 8, fig. 8 is a sixth sub-flowchart of a page display method for a mixed-mode mobile application according to an embodiment of the present disclosure, as shown in fig. 8, in this embodiment, before the step of displaying the preset page corresponding to the preset local page file according to the request data based on the preset first protocol, the method further includes:
s15, judging whether the request data meet preset data conditions or not;
s16, if the request data meet a preset data condition, executing the step of displaying the preset page corresponding to the preset local page file according to the request data based on the preset first protocol;
and S17, if the request data do not meet the preset data condition, sending a preset abnormal alarm corresponding to the abnormal display of the preset page.
Specifically, after the preset local page file obtains the request data, it may be determined whether the request data meets preset data conditions such as a preset data format and preset data content corresponding to the request data, if the request data meets the preset data conditions, it indicates that the request data is capable of normally displaying the preset page, and the request data is data meeting requirements, and the preset page may be normally displayed, further based on the preset first protocol, the preset page corresponding to the preset local page file is displayed according to the request data, if the request data does not meet the preset data conditions, it indicates that the request data is incapable of normally displaying the preset page, and the request data is data that is not capable of normally displaying the preset page, because the preset page cannot be normally displayed, the abnormality can be detected in advance, an alarm for displaying the abnormality of the preset page can be sent out, so that before the preset page is displayed, whether the preset page can be normally displayed or not is checked, the abnormality in the page display process is found in time, and a preset abnormality alarm corresponding to the abnormality of the preset page display is sent out in time, for example, the alarm for displaying the abnormality of the preset page can be sent out in a preset sound mode, or the alarm for displaying the abnormality of the preset page can be sent out in a preset text mode, for example, the alarm for displaying the abnormality of the preset page can be sent out in a mode of striking characters such as red and the like, striking pictures and the like, or the alarm for displaying the abnormality of the preset page can be sent out by combining the preset sound mode with the preset text mode, for example, the alarm for displaying the abnormality of the preset page can be sent out in a preset animation mode and the like, so that a maintenance person can find the problem existing in the page display in time, and the problems are maintained, so that the error that the page cannot be normally displayed is avoided being detected in the page rendering process, the efficiency of finding the page problems and maintaining the page problems can be improved, and the efficiency of displaying the preset page is further improved.
It should be noted that, the page display method of the mixed-mode mobile application described in the foregoing embodiments may recombine the technical features included in different embodiments as needed to obtain the combined implementation, but all of the embodiments are within the protection scope claimed in the present application.
Referring to fig. 9, fig. 9 is a schematic block diagram of a page display apparatus of a mixed-mode mobile application according to an embodiment of the present application. Corresponding to the page display method of the mixed-mode mobile application, an embodiment of the application further provides a page display device of the mixed-mode mobile application. As shown in fig. 9, the page display apparatus of the mixed-mode mobile application includes a unit for executing the page display method of the mixed-mode mobile application, and the page display apparatus of the mixed-mode mobile application may be configured in a computer device such as a smart phone, a tablet computer, and a notebook computer. Specifically, referring to fig. 9, the page display device 90 of the mixed-mode mobile application includes a preset local page file and a preset native component for displaying a preset page, and the page display device 90 of the mixed-mode mobile application includes a first obtaining unit 91, a transferring unit 92, a sending unit 93, and a display unit 94.
The first obtaining unit 91 is configured to obtain a display instruction for displaying a preset page, and obtain a preset local page file according to the display instruction and based on a preset first coroutine included in a preset first thread;
a transmitting unit 92, configured to obtain a preset request parameter included in the preset local page file according to the preset local page file, and transmit the preset request parameter to a preset second co-thread corresponding to the preset native component based on a preset synchronization request, where the preset second co-thread is included in a preset second thread;
a sending unit 93, configured to switch a coroutine execution right to the preset second coroutine, send, based on the preset second coroutine, a network request corresponding to the preset request parameter to a preset server, and obtain, from the preset server, request data corresponding to the preset request parameter;
the display unit 94 is configured to transmit the request data back to the preset local page file, switch the coroutine execution right to the preset first coroutine, and display the preset page corresponding to the preset local page file according to the request data based on the preset first coroutine.
In one embodiment, the page display device 90 of the mixed-mode mobile application further includes:
the judging unit is used for judging whether the request data meets a preset data condition or not;
and the execution unit is used for executing the step of displaying the preset page corresponding to the preset local page file according to the request data based on the preset first coroutine if the request data meets a preset data condition.
In one embodiment, the sending unit 93 includes:
a generating subunit, configured to switch a coroutine execution right to the preset second coroutine, execute the preset second coroutine, call a preset network request method based on the preset second coroutine, include the preset request parameter in the preset network request method, and generate a network request corresponding to the preset request parameter;
and the sending subunit is used for sending the network request to a preset server side and acquiring request data corresponding to the preset request parameters from the preset server side.
In an embodiment, the mixed-mode mobile application includes a preset native component and a preset local H5 file for displaying a preset H5 page, and the first obtaining unit 91 includes:
the starting unit is used for responding to a display instruction for displaying the preset H5 page and starting a preset first coroutine contained in the main thread;
and the loading subunit is configured to load, based on the preset first coroutine, a preset local H5 file corresponding to the preset H5 page through a preset web view control.
In one embodiment, the transfer unit 92 includes:
the first obtaining subunit is configured to obtain, according to the preset local H5 file, a preset request parameter included in the preset local H5 file;
and the initiating subunit is used for initiating a synchronization request by a preset synchronization request method of the OKHTTP network framework, and transmitting the preset request parameter to a preset second protocol corresponding to the preset native component.
In one embodiment, the display unit 94 includes:
the return subunit is configured to return the request data to the preset local H5 file;
and the execution subunit is configured to switch the coroutine execution authority to the preset first coroutine based on a preset coroutine scheduler, execute the preset first coroutine, and display the preset H5 page corresponding to the preset local H5 file according to the request data based on the preset first coroutine.
In one embodiment, the execution subunit includes:
the second obtaining subunit is configured to obtain the preset request parameter included in the request data and target request data corresponding to the preset request parameter;
an assignment subunit, configured to traverse the preset local H5 file according to the preset request parameter, to obtain all preset target locations of the preset local H5 file that include the preset request parameter, and assign the target request data to each preset target location, to obtain a target local H5 file corresponding to the preset local H5 file;
and the rendering subunit is configured to render the target local H5 file to obtain the preset H5 page corresponding to the target local H5 file.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the page display apparatus and each unit of the mixed-mode mobile application may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
Meanwhile, the division and connection modes of the units in the page display device of the mixed-mode mobile application are only used for illustration, in other embodiments, the page display device of the mixed-mode mobile application may be divided into different units as needed, and the units in the page display device of the mixed-mode mobile application may also adopt different connection orders and modes to complete all or part of the functions of the page display device of the mixed-mode mobile application.
The page display means of the mixed-mode mobile application described above may be implemented in the form of a computer program which may be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a computer device such as a desktop computer or a server, or may be a component or part of another device.
Referring to fig. 10, the computer device 500 includes a processor 502, a memory, which may include a non-volatile storage medium 503 and an internal memory 504, which may also be a volatile storage medium, and a network interface 505 connected by a system bus 501.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform a page display method for mixed-mode mobile applications as described above.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to execute a page display method of the mixed-mode mobile application.
The network interface 505 is used for network communication with other devices. It will be appreciated by those skilled in the art that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the scope of the present application as such may be used with a computer device 500, and that a particular computer device 500 may include more or less components than those shown, or some of the components may be combined, or have a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 10, and are not described herein again.
The processor 502 is configured to run a computer program 5032 stored in a memory, so as to implement the following steps: acquiring a display instruction for displaying a preset page, and acquiring a preset local page file based on a preset first coroutine included in a preset first thread according to the display instruction; acquiring a preset request parameter contained in the preset local page file according to the preset local page file, and transmitting the preset request parameter to a preset second coroutine corresponding to the preset native component based on a preset synchronous request, wherein the preset second coroutine is contained in a preset second thread; switching the coroutine execution right to the preset second coroutine, sending the network request corresponding to the preset request parameter to a preset server side based on the preset second coroutine, and acquiring the request data corresponding to the preset request parameter from the preset server side; and returning the request data to the preset local page file, switching the coroutine execution right to the preset first coroutine, and displaying the preset page corresponding to the preset local page file according to the request data based on the preset first coroutine.
In an embodiment, before the processor 502 performs the step of displaying the preset page corresponding to the preset local page file according to the request data based on the preset first protocol, the following steps are further performed:
judging whether the request data meets a preset data condition or not;
and if the request data meet preset data conditions, executing the step of displaying the preset page corresponding to the preset local page file according to the request data based on the preset first protocol.
In an embodiment, when the processor 502 performs the steps of switching the coroutine execution right to the preset second coroutine, sending the network request corresponding to the preset request parameter to a preset server based on the preset second coroutine, and acquiring the request data corresponding to the preset request parameter from the preset server, the following steps are specifically performed:
switching the coroutine execution right to the preset second coroutine, executing the preset second coroutine, calling a preset network request method based on the preset second coroutine, including the preset request parameter in the preset network request method, and generating a network request corresponding to the preset request parameter;
and sending the network request to a preset server side, and acquiring request data corresponding to the preset request parameters from the preset server side.
In an embodiment, when the processor 502 implements the mixed-mode mobile application including displaying a preset local H5 file and a preset native component of a preset H5 page, and acquiring a display instruction for displaying the preset page, and acquiring the preset local page file based on a preset first co-program included in a preset first thread according to the display instruction, the following steps are specifically implemented:
responding to a display instruction for displaying the preset H5 page, and starting a preset first coroutine contained in a main thread;
and loading a preset local H5 file corresponding to the preset H5 page through a preset webpage view control based on the preset first coordination.
In an embodiment, when the processor 502 implements the steps of obtaining the preset request parameter included in the preset local page file according to the preset local page file, and transmitting the preset request parameter to the preset second co-program corresponding to the preset native component based on the preset synchronization request, the following steps are specifically implemented:
acquiring a preset request parameter contained in the preset local H5 file according to the preset local H5 file;
and initiating a synchronization request through a preset synchronization request method of the OKHTTP network framework, and transmitting the preset request parameter to a preset second coroutine corresponding to the preset native component.
In an embodiment, when the processor 502 implements the steps of returning the request data to the preset local page file, switching the coroutine execution right to the preset first coroutine, and displaying the preset page corresponding to the preset local page file according to the request data based on the preset first coroutine, the following steps are specifically implemented:
transmitting the request data back to the preset local H5 file;
and switching the coroutine execution authority to the preset first coroutine based on a preset coroutine scheduler, executing the preset first coroutine, and displaying the preset H5 page corresponding to the preset local H5 file according to the request data based on the preset first coroutine.
In an embodiment, when the processor 502 performs the step of displaying the preset H5 page corresponding to the preset local H5 file according to the request data, the following steps are specifically performed:
acquiring the preset request parameters contained in the request data and target request data corresponding to the preset request parameters;
traversing the preset local H5 file according to the preset request parameters to obtain all preset target positions of the preset local H5 file containing the preset request parameters, and assigning the target request data to each preset target position to obtain a target local H5 file corresponding to the preset local H5 file;
rendering the target local H5 file to obtain the preset H5 page corresponding to the target local H5 file.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiments may be implemented by a computer program, and the computer program may be stored in a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, the computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of:
a computer program product which, when run on a computer, causes the computer to perform the steps of the page display method of the mixed mode mobile application described in the embodiments above.
The computer readable storage medium may be an internal storage unit of the aforementioned device, such as a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the apparatus.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing computer programs, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a magnetic disk, or an optical disk.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing an electronic device (which may be a personal computer, a terminal, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A page display method of a mixed-mode mobile application, the mixed-mode mobile application comprising a preset local page file and a preset native component for displaying a preset page, the method comprising:
acquiring a display instruction for displaying a preset page, and acquiring a preset local page file based on a preset first coroutine included in a preset first thread according to the display instruction;
acquiring a preset request parameter contained in the preset local page file according to the preset local page file, and transmitting the preset request parameter to a preset second coroutine corresponding to the preset native component based on a preset synchronous request, wherein the preset second coroutine is contained in a preset second thread;
switching the coroutine execution right to the preset second coroutine, sending the network request corresponding to the preset request parameter to a preset server side based on the preset second coroutine, and acquiring the request data corresponding to the preset request parameter from the preset server side;
the request data is transmitted back to the preset local page file, the coroutine execution right is switched to the preset first coroutine, and then the preset page corresponding to the preset local page file is displayed according to the request data based on the preset first coroutine;
the preset first coroutine and the preset second coroutine can be switched and scheduled in a non-preemptive mode;
the operation that the synchronous request is an execution request is in a blocking mode until a response corresponding to the request is returned;
the mixed-mode mobile application comprises a preset local H5 file and a preset native component for displaying a preset H5 page, the step of acquiring a display instruction for displaying the preset page comprises the following steps of:
responding to a display instruction for displaying the preset H5 page, and starting a preset first coroutine contained in a main thread;
loading a preset local H5 file corresponding to the preset H5 page through a preset webpage view control based on the preset first coroutine;
wherein the second thread is created manually.
2. The method for displaying a page of a mixed-mode mobile application according to claim 1, wherein before the step of displaying the preset page corresponding to the preset local page file according to the request data based on the preset first co-project, the method further comprises:
judging whether the request data meets a preset data condition or not;
and if the request data meet preset data conditions, executing the step of displaying the preset page corresponding to the preset local page file according to the request data based on the preset first protocol.
3. The method for displaying pages of mixed-mode mobile application according to claim 1, wherein the step of switching the coroutine execution right to the preset second coroutine, sending the network request corresponding to the preset request parameter to a preset server based on the preset second coroutine, and obtaining the request data corresponding to the preset request parameter from the preset server comprises:
switching the coroutine execution right to the preset second coroutine, executing the preset second coroutine, calling a preset network request method based on the preset second coroutine, including the preset request parameter in the preset network request method, and generating a network request corresponding to the preset request parameter;
and sending the network request to a preset server side, and acquiring request data corresponding to the preset request parameters from the preset server side.
4. The method for displaying pages of mixed-mode mobile application according to claim 1, wherein the step of obtaining the preset request parameters included in the preset local page file according to the preset local page file, and transmitting the preset request parameters to the preset second protocol corresponding to the preset native component based on a preset synchronization request comprises:
acquiring a preset request parameter contained in the preset local H5 file according to the preset local H5 file;
and initiating a synchronous request through a preset synchronous request method of the OKHTTP network framework, and transmitting the preset request parameter to a preset second coroutine corresponding to the preset native component.
5. The method for displaying pages of mixed-mode mobile applications according to claim 1, wherein said step of returning said request data to said preset local page file, switching said co-program execution right to said preset first co-program, and displaying said preset page corresponding to said preset local page file according to said request data based on said preset first co-program comprises:
transmitting the request data back to the preset local H5 file;
and switching the coroutine execution authority to the preset first coroutine based on a preset coroutine scheduler, executing the preset first coroutine, and displaying the preset H5 page corresponding to the preset local H5 file according to the request data based on the preset first coroutine.
6. The page display method of the mixed-mode mobile application according to claim 5, wherein the step of displaying the preset H5 page corresponding to the preset local H5 file according to the request data comprises:
acquiring the preset request parameters contained in the request data and target request data corresponding to the preset request parameters;
traversing the preset local H5 file according to the preset request parameters to obtain all preset target positions of the preset local H5 file containing the preset request parameters, and assigning the target request data to each preset target position to obtain a target local H5 file corresponding to the preset local H5 file;
rendering the target local H5 file to obtain the preset H5 page corresponding to the target local H5 file.
7. A page display apparatus of a mixed-mode mobile application, the mixed-mode mobile application including a preset local page file and a preset native component that display a preset page, the apparatus comprising:
the first obtaining unit is used for obtaining a display instruction for displaying a preset page, and obtaining a preset local page file according to the display instruction and based on a preset first coroutine included in a preset first thread;
the transmission unit is used for acquiring a preset request parameter contained in the preset local page file according to the preset local page file and transmitting the preset request parameter to a preset second co-thread corresponding to the preset native component based on a preset synchronous request, wherein the preset second co-thread is contained in a preset second thread;
the sending unit is used for switching the coroutine execution right to the preset second coroutine, sending the network request corresponding to the preset request parameter to a preset server based on the preset second coroutine, and acquiring the request data corresponding to the preset request parameter from the preset server;
the display unit is used for transmitting the request data back to the preset local page file, switching the coroutine execution right to the preset first coroutine, and displaying the preset page corresponding to the preset local page file according to the request data based on the preset first coroutine;
the non-preemptive switching and scheduling can be carried out between the preset first coroutine and the preset second coroutine;
the operation that the synchronous request is an execution request is in a blocking mode until a response corresponding to the request is returned;
the mixed-mode mobile application comprises a preset local H5 file and a preset native component for displaying a preset H5 page, the step of acquiring a display instruction for displaying the preset page comprises the following steps of:
responding to a display instruction for displaying the preset H5 page, and starting a preset first coroutine contained in a main thread;
loading a preset local H5 file corresponding to the preset H5 page through a preset webpage view control based on the preset first coroutine;
wherein the second thread is created manually.
8. A computer device, comprising a memory and a processor coupled to the memory; the memory is used for storing a computer program; the processor is adapted to run the computer program to perform the steps of the method according to any of claims 1-6.
9. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when being executed by a processor, realizes the steps of the method according to any one of claims 1 to 6.
CN202110702983.3A 2021-06-24 2021-06-24 Page display method and device of mixed-mode mobile application and related equipment Active CN113360807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110702983.3A CN113360807B (en) 2021-06-24 2021-06-24 Page display method and device of mixed-mode mobile application and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110702983.3A CN113360807B (en) 2021-06-24 2021-06-24 Page display method and device of mixed-mode mobile application and related equipment

Publications (2)

Publication Number Publication Date
CN113360807A CN113360807A (en) 2021-09-07
CN113360807B true CN113360807B (en) 2023-03-31

Family

ID=77536110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110702983.3A Active CN113360807B (en) 2021-06-24 2021-06-24 Page display method and device of mixed-mode mobile application and related equipment

Country Status (1)

Country Link
CN (1) CN113360807B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356477B (en) * 2021-12-22 2024-04-09 青岛海信移动通信技术有限公司 Terminal equipment and application program calling method
CN114650278A (en) * 2022-03-21 2022-06-21 平安普惠企业管理有限公司 Data processing method and device for hybrid application, computer equipment and storage medium
CN114748873B (en) * 2022-06-14 2022-09-20 北京新唐思创教育科技有限公司 Interface rendering method, device, equipment and storage medium
CN117216428B (en) * 2023-11-07 2024-04-16 荣耀终端有限公司 Webpage resource request method, terminal equipment and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851756A (en) * 2019-10-12 2020-02-28 平安普惠企业管理有限公司 Page loading method and device, computer readable storage medium and terminal equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447138A (en) * 2015-11-20 2016-03-30 北京京东尚科信息技术有限公司 Method and system for server
CN109257411B (en) * 2018-07-31 2021-12-24 平安科技(深圳)有限公司 Service processing method, call management system and computer equipment
CN109213948B (en) * 2018-10-18 2020-12-04 网宿科技股份有限公司 Webpage loading method, intermediate server and webpage loading system
CN110727478B (en) * 2019-10-16 2021-11-16 腾讯科技(深圳)有限公司 Method, device, equipment and medium for rendering page based on mixed mode
CN110825455A (en) * 2019-10-31 2020-02-21 郑州悉知信息科技股份有限公司 Application program running method, device and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851756A (en) * 2019-10-12 2020-02-28 平安普惠企业管理有限公司 Page loading method and device, computer readable storage medium and terminal equipment

Also Published As

Publication number Publication date
CN113360807A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN113360807B (en) Page display method and device of mixed-mode mobile application and related equipment
US11269696B2 (en) Application processing method and apparatus
US11722860B2 (en) Messaging system interacting with dynamic extension app
WO2018077085A1 (en) Application processing method, device and storage medium
US20190213019A1 (en) Application program page processing method and device
JP2018527683A (en) Method and apparatus for loading terminal application
JP7100154B6 (en) Processor core scheduling method, device, terminal and storage medium
JP6452538B2 (en) Information processing apparatus and program
CN108900627B (en) Network request method, terminal device and storage medium
CN112395107A (en) Tax control equipment control method and device, storage medium and electronic equipment
CN110062035A (en) A kind of http request method and apparatus based on deque
CN107438097B (en) Network request processing method and device
CN112685104A (en) Application program starting control method and device, electronic equipment and storage medium
CN113779122B (en) Method and device for exporting data
WO2022156427A1 (en) Dragging processing method and apparatus
EP3188071A1 (en) Application accessing control method and device
CN111399928A (en) Application program starting method and device, electronic equipment and readable storage medium
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
CN115629809A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN107463438B (en) Information processing method, device and system for multi-Openstack environment
EP3872630A2 (en) Request processing method and apparatus, electronic device, and computer storage medium
CN114090134A (en) Data interaction method and device, storage medium and electronic equipment
CN113704187A (en) Method and device for generating file
CN115705193A (en) Distributed compiling method, device, equipment and medium
US10126993B2 (en) Routing outputs from jobs submitted on a mainframe system

Legal Events

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