CN115982493A - Page jump method and device, storage medium and electronic device - Google Patents

Page jump method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115982493A
CN115982493A CN202211442029.6A CN202211442029A CN115982493A CN 115982493 A CN115982493 A CN 115982493A CN 202211442029 A CN202211442029 A CN 202211442029A CN 115982493 A CN115982493 A CN 115982493A
Authority
CN
China
Prior art keywords
page
target
url
jump
starter
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
CN202211442029.6A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211442029.6A priority Critical patent/CN115982493A/en
Publication of CN115982493A publication Critical patent/CN115982493A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a page jump method and device, a storage medium and an electronic device, which relate to the technical field of smart families, and the page jump method comprises the following steps: under the condition that a target application receives a page jump request triggered by a target object, acquiring a standard Uniform Resource Locator (URL), wherein the standard URL carries page information of the target page to be jumped to and parameter information of the target page; converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL; and assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter. The method and the device solve the problems that in the related art, when page jump is carried out in the development process of a multi-technology stack APP, a plurality of jump modes need to be called, and some parameters needing to be transmitted are possibly missed.

Description

Page jump method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart homes, in particular to a page jump method and device, a storage medium and an electronic device.
Background
The advent of large front ends has enabled multi-technology stack development to be increasingly applied to Application (APP) development. In the development of the multi-technology stack APP, on the basis of native development, other presentation modes are introduced, such as HTML5 (a language mode for constructing Internet content, referred to as H5 for short), flutter (mobile application development framework) and the like. The development of many technical stacks APP, a set of code, the multiterminal is available, makes many teams' development go on very conveniently. Therefore, in an App developed by applying a multi-technology stack technology, it is common that other technology stack pages such as H5 and flute coexist with native pages. Inevitably, pages developed by each technology stack have different jump logics among the pages due to different computer languages, and a problem is caused when the pages developed by each technology stack jump mutually.
Many apps in the industry are currently under native development, and simply introduce one of the technology stacks in h5 or flutter. When the method jumps to each other, the h5 or flutter jumps by using the native exposure method, and the native jumps by using the h5 or flutter exposure method. In development, when pages of different technology stacks jump mutually, different codes need to be maintained according to the different technology stacks of the different pages to achieve the purpose of jumping, and the existing jumping method needs to separately judge what method needs to be used for jumping according to the technology stack of the jumping page every time, so that the readability is poor, and the maintenance cost is high. Meanwhile, different methods need to be judged and called, so that some parameters needing to be transmitted can be carelessly called;
aiming at the problems that in the related technology, when page jump is carried out in the development process of a multi-technology stack APP, the jump modes needing to be called are multiple, and some parameters needing to be transmitted are possibly missed, and the like, an effective solution is not provided.
Accordingly, there is a need for improvement in the related art to overcome the disadvantages of the related art.
Disclosure of Invention
The embodiment of the application provides a page jump method and device, a storage medium and an electronic device, which are used for solving the problems that in the related art, when page jump is carried out in the development process of a multi-technology stack APP, a plurality of jump modes are required to be called, and some parameters required to be transmitted are possibly missed.
According to an aspect of the embodiments of the present application, a page jump method is provided, which is applied to a routing middleware in a target application, and includes: under the condition that a target application receives a page jump request triggered by a target object, acquiring a standard Uniform Resource Locator (URL), wherein the standard URL carries page information of the target page to be jumped to and parameter information of the target page; converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL; and assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter.
In an exemplary embodiment, before converting the standard URL into a target URL that the routing middleware allows to identify, the method further comprises: and when the target application successfully loads the routing middleware, instructing the routing middleware to load a URL mapping table, wherein the URL mapping table comprises mapping relations of different standard URLs and different target URLs.
In an exemplary embodiment, invoking the initiator corresponding to the target URL includes: sending a calling request to a target application, wherein the calling request carries the target URL; receiving a request result fed back by the target application based on the calling request; and calling the initiator under the condition that the request result indicates that the initiator allows the initiator to be called.
In an exemplary embodiment, assembling the page information and the parameter information in the initiator includes: determining a first assembly object for assembling the page information and a second assembly object for assembling the parameter information in the initiator; and operating the first assembly object and the second assembly object to assemble the page information and the parameter information in the launcher.
In an exemplary embodiment, after the page information and the parameter information are assembled in the initiator, the method further includes: calling a jump mode of the target page from a plurality of page jump modes according to the assembled starter; and jumping to the target page according to the assembled starter and the jump mode.
In an exemplary embodiment, invoking a jump mode of the target page from a plurality of page jump modes according to the assembled initiator includes: carrying out logic judgment on the target URL according to the assembled starter so as to determine the page type of the target page; determining a skipping mode of the target page from a plurality of page skipping modes according to the page type; and calling the jump mode according to the assembled starter.
In an exemplary embodiment, after jumping to the target page according to the assembled launcher, the method further comprises: under the condition that the operation of jumping to the target page is failed to be executed, acquiring a page identifier of the target page; and sending prompt information to the target object under the condition that the target object triggers the jump operation of the target page corresponding to the page identifier again so as to prompt that the last jump operation of the target page of the target object fails to be executed.
According to another aspect of the embodiments of the present application, there is also provided a page jump apparatus, including: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a standard Uniform Resource Locator (URL) under the condition that a target application receives a page jump request triggered by a target object, and the standard URL carries page information of a target page to be jumped to and parameter information of the target page; the conversion module is used for converting the standard URL into a target URL which is allowed to be identified by the routing middleware and calling a starter corresponding to the target URL; and the jump module is used for assembling the page information and the parameter information in the starter and jumping to the target page according to the assembled starter.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above page jump method when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the page jump method through the computer program.
According to the method and the device, under the condition that a target application receives a page jump request triggered by a target object, a standard Uniform Resource Locator (URL) is obtained, wherein the standard URL carries page information of the target page to be jumped to and parameter information of the target page; converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL; and assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter. That is to say, through using standard URL, call route middleware and jump, it is many to have solved the jump mode that needs to call when carrying out the page jump in the multi-technology stack APP development process among the correlation technique, and probably lead to the problem that some parameters that need transmit are careless, and then has realized the unified jump mode, avoids parameter transmission careless technological effect, and then can reduce the maintenance cost.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a diagram illustrating a hardware environment of an alternative page jump method according to an embodiment of the present application;
FIG. 2 is a flowchart of an alternative page jump method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an alternative page jump method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a target application of an alternative page jump method according to an embodiment of the present application;
FIG. 5 is a diagram illustrating a standard URL for an alternative page jump method according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a target URL of an alternative page jump method according to an embodiment of the present application;
FIG. 7 is a block diagram illustrating an alternative page jump apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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 only partial embodiments of the present application, but not all embodiments. 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 should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present application, a page jump method is provided. The page jump method is widely applied to full-house intelligent digital control application scenes such as Smart homes (Smart Home), intelligent homes, intelligent Home equipment ecology, intelligent house (Intellignee House) ecology and the like. Alternatively, in the present embodiment, the page jump method described above may be applied to a hardware environment formed by a plurality of terminal devices 102 and a server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to a plurality of terminal devices 102 through a network, and may be configured to provide services (such as application services) for the terminal or a client installed on the terminal, provide a database on or independent of the server, provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity ), bluetooth. Terminal equipment 102 can be and not be limited to PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, the intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding's equipment, intelligent bathroom equipment, the intelligence robot of sweeping the floor, the intelligence robot of wiping the window, intelligence robot of mopping the floor, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen guarding, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In the present embodiment, a page jump method is provided, including but not limited to being applied to a computer terminal, and fig. 2 is a flowchart of a page jump method according to an embodiment of the present application, where the flowchart includes the following steps:
step S202: under the condition that a target application receives a page jump request triggered by a target object, acquiring a standard Uniform Resource Locator (URL), wherein the standard URL carries page information of the target page to be jumped to and parameter information of the target page;
step S204: converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL;
step S206: and assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter.
Through the steps, under the condition that a target application receives a page jump request triggered by a target object, a standard Uniform Resource Locator (URL) is obtained, wherein the standard URL carries page information of the target page to be jumped to and parameter information of the target page; converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL; and assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter. That is to say, through using standard URL, transfer route middleware and jump, it is many to have solved the jump mode that needs to call when carrying out the page jump in many technical stack APP development processes among the correlation technique, and probably lead to the problem that some parameters that need to transmit are sparse, and then has realized the unified jump mode, avoids the technological effect that parameter transmission is sparse, and then can reduce the maintenance cost.
Optionally, before converting the standard URL into a target URL that the routing middleware allows to identify, an optional embodiment further includes: and when the target application successfully loads the routing middleware, instructing the routing middleware to load a URL mapping table, wherein the URL mapping table comprises mapping relations of different standard URLs and different target URLs.
It will be appreciated that the routing middleware may load a URL mapping table indicating a mapping relationship between a different standard URL and a different target URL from any time after the routing middleware successfully loads the routing middleware before the routing middleware converts the standard URL into the target URL.
After the standard URL is obtained and converted into the URL that the routing middleware allows to identify, in an optional embodiment, the initiator corresponding to the target URL needs to be called, and the specific scheme includes: sending a calling request to a target application, wherein the calling request carries the target URL; receiving a request result fed back by the target application based on the calling request; and calling the initiator under the condition that the request result indicates that the initiator allows to be called.
Specifically, requesting the target application to allow the initiator corresponding to the target URL to be called includes sending a call request to the target application and receiving a feedback result of the target application to the call request. And calling the starter corresponding to the target URL under the condition that the feedback result allows.
After invoking the launcher of the target URL, assembling the page information and the parameter information in the launcher, including: determining, in the initiator, a first assembly object for assembling the page information and a second assembly object for assembling the parameter information; and operating the first assembly object and the second assembly object to assemble the page information and the parameter information in the launcher. That is, in the initiator, the page information pointing to the target page and the parameter information to be transferred to the target page are assembled by the first assembly object and the second assembly object.
Optionally, after the page information and the parameter information are assembled in the initiator, the method further includes: calling a jump mode of the target page from a plurality of page jump modes according to the assembled starter; and jumping to the target page according to the assembled starter and the jump mode.
The calling the jump mode of the target page from a plurality of page jump modes according to the assembled starter comprises the following steps: performing logic judgment on the target URL according to the assembled starter to determine the page type of the target page; determining a skipping mode of the target page from a plurality of page skipping modes according to the page type; and calling the jump mode according to the assembled starter.
It is noted that the standard URL is shown in fig. 5, and the target URL is shown in fig. 6, wherein the target URL may point to a page including, but not limited to, an H5 page, a flutter page, etc. Therefore, after the page information and the parameter information are assembled in the starter, the assembled starter needs to perform logic judgment on the target URL, determine a jump mode of a target page pointed by the target URL in a plurality of page jump modes, and call the jump mode. And finally, jumping to the target page according to the assembled starter and the called jump mode of the target page.
Optionally, after jumping to the target page according to the assembled initiator, the method further includes: acquiring a page identifier of the target page under the condition that the operation of jumping to the target page is failed to execute; and sending prompt information to the target object under the condition that the target object triggers the jump operation of the target page corresponding to the page identifier again so as to prompt that the last jump operation of the target page of the target object fails to be executed. When the target object triggers the target page corresponding to the page identifier again, the situation that the target object fails to jump is prompted.
It is to be understood that the above-described embodiments are only a few, but not all, of the embodiments described herein. In order to better understand the method for determining the semantic intent, the following describes the above process with reference to an embodiment, but the method is not limited to the technical solution of the embodiment of the present application, and specifically:
fig. 3 is a schematic flowchart of an optional page jump method according to an embodiment of the present application, and as shown in fig. 3, the method includes the following steps:
step 1: and (4) starting the app:
the target object starts an app (equivalent to the target application in the above embodiment);
it should be noted that fig. 4 is a schematic composition diagram of a target application of an optional page jump method according to an embodiment of the present application, and as shown in fig. 4, each technology stack page such as H5, flutter, native, and the like, and routing middleware all exist in an app. The routing middleware consists of launcher and url mapping logic layers corresponding to the technology stacks. When the pages of each technical stack are jumped, the pages are transferred through the routing middleware, and the middleware uniformly performs logic processing and jumping.
Step 2: and (3) loading a route:
the app loads routing middleware;
and 3, step 3: route initialization:
initializing a routing middleware and loading a url mapping table;
and 4, step 4: the loading of the route is successful;
and 5: app home page:
after the initialization is successful, the initial page is fed back to the app, and at this time, the app displays the home page to the user (equivalent to the target object in the above embodiment);
step 6: a user operates various types of frame pages;
and 7: and after triggering and skipping, using a standard url to call the route:
under the condition that a user operates each technical stack page, when the operation of the user triggers a jump logic, routing middleware is called, and a target page to be jumped and a parameter are transmitted to a route in a standard url (as shown in figure 5) mode;
and 8: convert standard url to url for customized scheme:
the route converts the standard url into the url of the custom scheme (equivalent to the target url in the above embodiment) as shown in fig. 6 according to the mapping table;
and step 9: loading the corresponding launcher according to the scheme of the self-defined url:
the routing middleware calls a launcher of the corresponding technical stack page according to the converted schema of the url;
step 10: assembling parameters and logic judgment in the launcher, judging the type of a target page, loading and initializing:
completing parameter assembly and logic judgment of target page jumping in the launcher, judging the type of the target page, and loading and initializing;
step 11: jump to page of specified frame:
the launcher calls the jump method exposed by each technology stack to jump to the page of the specified frame;
step 12: and completing page jump.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
In this embodiment, a page jump apparatus is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and is not described again after being described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the devices described in the embodiments below are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
FIG. 7 is a block diagram illustrating an alternative page jump apparatus according to an embodiment of the present application, where the apparatus includes:
the obtaining module 72 is configured to obtain a standard uniform resource locator URL when a target application receives a page jump request triggered by a target object, where the standard URL carries page information of a target page to be jumped to and parameter information of the target page;
a conversion module 74, configured to convert the standard URL into a target URL that the routing middleware allows to identify, and call a starter corresponding to the target URL;
and a jump module 76, configured to assemble the page information and the parameter information in the initiator, and jump to the target page according to the assembled initiator.
By the device, a standard Uniform Resource Locator (URL) is obtained under the condition that a target application receives a page jump request triggered by a target object, wherein the standard URL carries page information of a target page to be jumped to and parameter information of the target page; converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL; and assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter. That is to say, through using standard URL, transfer route middleware and jump, it is many to have solved the jump mode that needs to call when carrying out the page jump in many technical stack APP development processes among the correlation technique, and probably lead to the problem that some parameters that need to transmit are sparse, and then has realized the unified jump mode, avoids the technological effect that parameter transmission is sparse, and then can reduce the maintenance cost.
Optionally, the obtaining module 72 is further configured to, in a case that the target application has successfully loaded the routing middleware, instruct the routing middleware to load a URL mapping table, where the URL mapping table includes mapping relationships between different standard URLs and different target URLs.
It will be appreciated that the routing middleware may load a URL mapping table indicating a mapping relationship between a different standard URL and a different target URL from any time after the routing middleware successfully loads the routing middleware until the routing middleware converts the standard URL to the target URL.
After acquiring the standard URL and converting the standard URL into a URL that the routing middleware allows to identify, the conversion module 74 is further configured to send a call request to the target application, where the call request carries the target URL; receiving a request result fed back by the target application based on the call request; and calling the initiator under the condition that the request result indicates that the initiator allows to be called.
Specifically, requesting the target application to allow the initiator corresponding to the target URL to be called includes sending a call request to the target application and receiving a feedback result of the target application to the call request. And calling the starter corresponding to the target URL under the condition that the feedback result allows.
After invoking the initiator of the target URL, the jump module 76 is further configured to determine, in the initiator, a first assembly object for assembling the page information and a second assembly object for assembling the parameter information; and operating the first assembly object and the second assembly object to assemble the page information and the parameter information in the launcher. That is, in the initiator, the page information pointing to the target page and the parameter information to be transferred to the target page are assembled by the first assembly object and the second assembly object.
Optionally, after the page information and the parameter information are assembled in the initiator, the jump module 76 is further configured to invoke a jump mode of the target page from a plurality of page jump modes according to the assembled initiator; and jumping to the target page according to the assembled starter and the jumping mode.
The jump module 76 is further configured to perform logic judgment on the target URL according to the assembled initiator to determine the page type of the target page; determining a skipping mode of the target page from a plurality of page skipping modes according to the page type; and calling the jump mode according to the assembled starter.
It should be noted that the standard URL is shown in fig. 5, and the target URL is shown in fig. 6, wherein the pages that the target URL may point to include, but are not limited to, the H5 page, the flutter page, and the like. Therefore, after the page information and the parameter information are assembled in the initiator, the assembled initiator needs to perform logic judgment on the target URL, determine a jump mode of a target page pointed by the target URL among a plurality of page jump modes, and call the jump mode. And finally, jumping to the target page according to the assembled starter and the jump mode of the called target page.
Optionally, after jumping to the target page according to the assembled initiator, the jump module 76 is further configured to obtain a page identifier of the target page under a condition that execution of the operation of jumping to the target page fails; and sending prompt information to the target object under the condition that the target object triggers the jump operation of the target page corresponding to the page identifier again so as to prompt that the last jump operation of the target page of the target object fails to be executed. When the target object triggers the target page corresponding to the page identifier again, the situation that the target object fails to jump is prompted.
Embodiments of the present application further provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, under the condition that a target application receives a page jump request triggered by a target object, a standard Uniform Resource Locator (URL) is obtained, wherein the standard URL carries page information of the target page to be jumped to and parameter information of the target page;
s2, converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL;
and S3, assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store computer programs.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
the method comprises the steps that S1, a standard Uniform Resource Locator (URL) is obtained under the condition that a target application receives a page jump request triggered by a target object, wherein the standard URL carries page information of the target page to be jumped to and parameter information of the target page;
s2, converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL;
and S3, assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and they may be implemented by program code executable by the computing device, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be executed in an order different from that shown or described herein, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps therein may be fabricated as a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A page jump method is characterized in that a routing middleware applied in a target application comprises the following steps:
under the condition that a target application receives a page jump request triggered by a target object, acquiring a standard Uniform Resource Locator (URL), wherein the standard URL carries page information of the target page to be jumped to and parameter information of the target page;
converting the standard URL into a target URL which is allowed to be identified by the routing middleware, and calling a starter corresponding to the target URL;
and assembling the page information and the parameter information in the starter, and jumping to the target page according to the assembled starter.
2. The page jump method of claim 1, wherein before converting the standard URL to a target URL that the routing middleware allows to identify, the method further comprises:
and when the target application successfully loads the routing middleware, instructing the routing middleware to load a URL mapping table, wherein the URL mapping table comprises mapping relations of different standard URLs and different target URLs.
3. The page jump method according to claim 1, wherein invoking the initiator corresponding to the target URL comprises:
sending a calling request to a target application, wherein the calling request carries the target URL;
receiving a request result fed back by the target application based on the call request;
and calling the initiator under the condition that the request result indicates that the initiator allows to be called.
4. The page jump method of claim 1, wherein assembling said page information and said parameter information in said initiator comprises:
determining a first assembly object for assembling the page information and a second assembly object for assembling the parameter information in the initiator;
and operating the first assembly object and the second assembly object to assemble the page information and the parameter information in the launcher.
5. The page jump method of claim 1, wherein after assembling the page information and the parameter information in the initiator, the method further comprises:
calling a jump mode of the target page from a plurality of page jump modes according to the assembled starter;
and jumping to the target page according to the assembled starter and the jump mode.
6. The page jump method according to claim 5, wherein invoking a jump mode of the target page from a plurality of page jump modes according to the assembled initiator comprises:
carrying out logic judgment on the target URL according to the assembled starter so as to determine the page type of the target page;
determining a skipping mode of the target page from a plurality of page skipping modes according to the page type;
and calling the jump mode according to the assembled starter.
7. The page jump method of claim 1, wherein after jumping to the target page according to the assembled initiator, the method further comprises:
under the condition that the operation of jumping to the target page is failed to be executed, acquiring a page identifier of the target page;
and sending prompt information to the target object under the condition that the target object triggers the jump operation of the target page corresponding to the page identifier again so as to prompt that the last jump operation of the target page of the target object fails to be executed.
8. A page turn apparatus, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a standard Uniform Resource Locator (URL) under the condition that a target application receives a page jump request triggered by a target object, and the standard URL carries page information of a target page to be jumped to and parameter information of the target page;
the conversion module is used for converting the standard URL into a target URL which is allowed to be identified by the routing middleware and calling a starter corresponding to the target URL;
and the jump module is used for assembling the page information and the parameter information in the starter and jumping to the target page according to the assembled starter.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202211442029.6A 2022-11-17 2022-11-17 Page jump method and device, storage medium and electronic device Pending CN115982493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211442029.6A CN115982493A (en) 2022-11-17 2022-11-17 Page jump method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211442029.6A CN115982493A (en) 2022-11-17 2022-11-17 Page jump method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115982493A true CN115982493A (en) 2023-04-18

Family

ID=85968844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211442029.6A Pending CN115982493A (en) 2022-11-17 2022-11-17 Page jump method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115982493A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117742865A (en) * 2023-12-21 2024-03-22 无忧创想(武汉)信息技术有限公司 Application program jump method, device, equipment and medium suitable for multiple scenes

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117742865A (en) * 2023-12-21 2024-03-22 无忧创想(武汉)信息技术有限公司 Application program jump method, device, equipment and medium suitable for multiple scenes

Similar Documents

Publication Publication Date Title
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
CN106331135B (en) A kind of part interface update method, system, client and server-side
CN107957837B (en) Method and device for generating shortcut of webpage application program and terminal equipment
CN109408090B (en) Upgrading method of equipment software, data converter and readable storage medium
CN109213533A (en) A kind of advertisement SDK dynamic loading method, device and terminal
CN115982493A (en) Page jump method and device, storage medium and electronic device
CN112954717B (en) Household appliance network distribution method and device based on H5 page
CN115687349A (en) Database table generation method and device, storage medium and electronic device
CN114896003A (en) Page configuration method and device, storage medium and electronic device
CN114938365A (en) Method and device for updating functional module, storage medium and electronic device
CN101964742B (en) Method, system and device for using network open ability
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN115858007A (en) Loading method and device of extension assembly, storage medium and electronic device
CN115481343A (en) Target component generation method and device, storage medium and electronic device
CN115576544A (en) Object instantiation method and device, storage medium and electronic device
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN114924816B (en) Page jump method, storage medium and electronic device
CN111638914A (en) Method, equipment and storage medium for setting terminal function
CN113778673B (en) Data processing method, storage medium and apparatus
CN111030925A (en) Multi-gateway communication method and system based on remote procedure call
CN104811760A (en) Multi-screen interaction method and system
CN111198721A (en) Application program running method and device
CN113656093B (en) Plug-in configuration method, device, equipment and storage medium
CN115695534A (en) Target application running method and device, storage medium and electronic device
CN114860592A (en) Application function testing method and device, storage medium and electronic device

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