CN109814960A - A kind of page returning method, device, electronic equipment and storage medium - Google Patents
A kind of page returning method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109814960A CN109814960A CN201811570904.2A CN201811570904A CN109814960A CN 109814960 A CN109814960 A CN 109814960A CN 201811570904 A CN201811570904 A CN 201811570904A CN 109814960 A CN109814960 A CN 109814960A
- Authority
- CN
- China
- Prior art keywords
- page
- pages
- grades
- identifier
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention discloses a kind of page returning method, device, electronic equipment and storage medium.This method is by the way that first level pages add identifier forward while opening new page, receive be back to the request of the M grades of pages from the N grades of pages when, obtain the identifier of the N grades of pages, and compare navigation storehouse in each whether the identifier of memory page and the identifier of the N grades of pages consistent, under the identifier of memory page and the identifier unanimous circumstances of the N grades of pages, using memory page as target pages, page return instruction is sent to target pages, to be back to the M grades of pages, the interaction between current page and target pages is realized;The present invention is by the way that first level pages add identifier forward while opening new page, when receiving the request of multi-interface return, target pages can be accurately searched and be back to according to the identifier of the page, accurately realize the interaction between current page and page object.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of page returning method, device, electronic equipment and storages
Medium.
Background technique
There are mainly four types of frames for the exploitation of mobile terminal application at present (English: Application, abbreviation: App): Native,
Web, Hybrid and React Native.Wherein, Hybrid, that is, mixed developing is a kind of between Web and Native
App development technique has both advantage and Web development scheme of the Native development scheme in terms of interactive experience in Cross-border congestion management side
The advantage in face.React Native is a kind of App development plan of open source, is developed using Javascript language and CSS
Mobile terminal application.
App exploitation only with a kind of frame such as React Native frame in the case where, the front end page of App is equal
For the React Native page, the interior carrier page comprising a React Native page of the processing routine of App, the React
The container interface that jumps agreement operation of the carrier page of the Native page as the React Native page.The processing routine of App
When receiving the request of multi-interface return, processing routine will start the carrier page of the React Native page, pass through React
Agreement is jumped corresponding to the carrier page invocation target page of the Native page, this is jumped into agreement and issues target pages, with logical
Know that target pages execute refresh operation, to realize the interaction of current page and target pages.
However, when the exploitation of App uses both frames of Hybrid and React Native simultaneously, the preceding end page of App
Not only there is the React Native page in face, but also there are Web pages.The React Native page and Web page respectively correspond to one
Unique carrier page, the appearance that jumps agreement operation of the two carrier pages respectively as the React Native page and Web page
The carrier page of device interface, the React Native page and Web page directly can not mutually call other side's page is corresponding to jump association
View.When the processing routine of App receives the request of multi-interface return, it is corresponding that processing routine cannot be distinguished target pages
Carrier page leads to not realize the interaction between current page and target pages.
Summary of the invention
The present invention provides a kind of page returning method, device, electronic equipment and storage medium, is carrying out returning for multi-interface
When returning operation, can accurately distinguish the corresponding carrier page of target pages, realize the React Native page and Web page it
Between interaction.
In a first aspect, the application provides a kind of page returning method, comprising:
The request that the M grades of pages are back to from the N grades of pages is received, M and N are positive integer and N is greater than M;
The identifier of the M grades of pages is obtained, the identifier of the M grades of pages is in M grades of page jumps to M+1
The M grades of pages are added into when the grade page, the identifier is used to uniquely mark the page for adding the identifier
Note;
Compare in navigation storehouse whether the identifier of memory page is consistent with the identifier of the M grades of pages;
If the identifier of the memory page is consistent with the identifier of the M grades of pages, with the memory page
Face sends page return instruction as target pages, Xiang Suoshu target pages;
If the identifier of the identifier and the M grades of pages of the memory page is inconsistent, to preset fault-tolerant
The page sends page return instruction.
With reference to first aspect, the first in first aspect can be in realization mode, using the memory page as target
The page, Xiang Suoshu target pages send page return instruction and include:
That calls the target pages jumps agreement;
Agreement is jumped to described in target pages transmission.
With reference to first aspect, in second of achievable mode of first aspect, using the memory page as target
The page, Xiang Suoshu target pages send page return instruction and include:
The readjustment parameter of the N grades of pages is extracted, the readjustment parameter is in N-1 grades of page jumps to the N grades of pages
When be added into the N grades of pages;
The readjustment parameter is sent to the target pages.
With reference to first aspect, the third in first aspect can send the page to the preset fault-tolerant page in realization mode
Return instruction includes:
The N-1 grades of pages are searched in the memory page in navigation storehouse;
Page return instruction is sent to the N-1 grades of pages.
With reference to first aspect, in the 4th kind of achievable mode of first aspect, the page is sent to the preset fault-tolerant page
Return instruction includes:
The homepage face at stack bottom is searched in the memory page in navigation storehouse;
Page return instruction is sent to the homepage face at the stack bottom.
Second aspect, the application provide a kind of page return mechanism, comprising:
Receiving unit, for receiving the request for being back to the M grades of pages from the N grades of pages, M and N is positive integer and N is greater than
M;
Acquiring unit, for obtaining the identifier of the M grades of pages, the identifier of the M grades of pages is in M grades of pages
Face is added into the M grades of pages when jumping to the M+1 grades of pages, the identifier is used for the page for adding the identifier
Face carries out uniquely tagged;
Comparing unit, for comparing the identifier of the identifier of memory page and the M grades of pages in navigation storehouse
It is whether consistent;
Transmission unit, when consistent with the identifier of the M grades of pages for the identifier in the memory page, with
The memory page sends page return instruction as target pages, Xiang Suoshu target pages;In the memory page
When the identifier of identifier and the M grades of pages is inconsistent, page return instruction is sent to the preset fault-tolerant page.
In conjunction with second aspect, the first in second aspect can be in realization mode, and the transmission unit includes:
Subelement is called, jumps agreement for call the target pages;
Transmission sub-unit, for jumping agreement to described in target pages transmission.
In conjunction with second aspect, in second of achievable mode of second aspect, the transmission unit includes:
Subelement is extracted, when consistent with the identifier of the N grades of pages for the identifier in the memory page,
The readjustment parameter of the N grades of pages is extracted, the readjustment parameter is added in N-1 grades of page jump to the N grades of pages
To the N grades of pages;
Transmission sub-unit, for sending the readjustment parameter to the target pages.
In conjunction with second aspect, the third in second aspect can be in realization mode, and the transmission unit includes:
Subelement is searched, the identifier for identifier and the N grades of pages in the memory page is inconsistent
When, the N-1 grades of pages are searched in the memory page in navigation storehouse;
Transmission sub-unit, for sending page return instruction to the N-1 grades of pages.
In conjunction with second aspect, in the 4th kind of achievable mode of second aspect, the transmission unit includes:
Subelement is searched, the identifier for identifier and the N grades of pages in the memory page is inconsistent
When, the homepage face at stack bottom is searched in the memory page in navigation storehouse;
Transmission sub-unit, for sending page return instruction to the homepage face at the stack bottom.
The third aspect, the application provide a kind of electronic equipment, comprising:
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, to realize any one of above-mentioned first aspect
The method.
Fourth aspect, the application provide a kind of storage medium, and computer program, the meter are stored in the storage medium
Calculation machine program realizes above-mentioned first aspect described in any item methods when being executed by processor.
Page returning method, device, electronic equipment and storage medium provided in an embodiment of the present invention, by opening new page
While face forward first level pages add identifier, receive be back to the request of the M grades of pages from the N grades of pages when, obtain
The identifier of the N grades of pages is taken, and compares the mark of each identifier and the N grades of pages of memory page in navigation storehouse
Whether symbol is consistent, under the identifier of memory page and the identifier unanimous circumstances of the N grades of pages, with the work of memory page
For target pages, page return instruction is sent to target pages, to be back to the M grades of pages, realizes current page and target
Interaction between the page;The present invention is receiving multistage by the way that first level pages add identifier forward while opening new page
When the request that the page returns, target pages can be searched and are back to according to the identifier of the page, even if current page and target
The page be different frames the page, also can determine carrier page according to the page object found, accurately realize current page with
Interaction between page object.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, letter will be made to attached drawing needed in the embodiment below
Singly introduce, it should be apparent that, for those of ordinary skills, without any creative labor,
It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of the first embodiment of page returning method provided by the invention.
Fig. 2 is the application scenarios schematic diagram of page returning method provided by the invention.
Fig. 3 is the flow chart of the second embodiment of page returning method provided by the invention.
Fig. 4 is the flow chart of the 3rd embodiment of page returning method provided by the invention.
Fig. 5 is the flow chart of the fourth embodiment of page returning method provided by the invention.
Fig. 6 is the flow chart of the 5th embodiment of page returning method provided by the invention.
Fig. 7 is the structural schematic diagram of the embodiment of page return mechanism provided by the invention.
Fig. 8 is the hardware structural diagram of the embodiment of electronic equipment provided by the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the specific embodiment of the invention and
Technical solution of the present invention is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.Below in conjunction with attached drawing,
The technical solution that each embodiment that the present invention will be described in detail provides.
Fig. 1 and Fig. 2 are please referred to, Fig. 1 is the flow chart of the first embodiment of page returning method provided by the invention, Fig. 2
For the application scenarios schematic diagram of page returning method provided by the invention.The method of the present embodiment can be applied to electronic equipment, electricity
Sub- equipment can carry android system perhaps iOS system and be equipped in android system or iOS system can be real
The App of existing above-mentioned page returning method.The executing subject of the present embodiment can be the processing routine in App, the page of the present embodiment
Face return method includes the following steps:
Step S101 receives the request that the M grades of pages are back to from the N grades of pages, and M and N are positive integer and N is greater than M.
The N grades of pages, the M grades of pages can be before can carrying out various operations on it for user provided by App
End page face.Processing routine is the program in App for being handled data, such as Native.Wherein, processing routine can correspond to
Multiple front end pages.With M=1, for N=3, the M grades of pages, that is, first order page, the N grades of pages, that is, 3rd level page, user
The second level page can be entered from the first order page on an electronic device, then the page enters the third level page from the second level.Such as
Fruit user wants to be back to the first order page, then can carry out corresponding operating on an electronic device, such as click respective icon, from
And the request that the first order page is back to from the third level page is issued, which can be connect after issuing by the processing routine in App
It receives.
Step S102, obtains the identifier of the M grades of pages, and the identifier of the M grades of pages is jumped in the M grades of pages
Be added into the M grades of pages when going to the M+1 grades of pages, the identifier be used for add the page of the identifier into
Row uniquely tagged.
After processing routine receives the request that user opens new page, identifier is added to current page, can specifically be added
Add deviceEventName, which is unique identifier of current page.To enter second level page from the first order page
For face, specifically can be the first order page is the React Native page, and the second level page is Web page, alternatively, the first order
The page is Web page, and the second level page is the React Native page, and processing routine receives Client-initiated from first order page
After face enters the request of the second level page, identifier can be added to the first order page.
Wherein, when carrying out the operation of the push page, processing routine can store identifier to map table, when pop pages of progress
When the operation in face, processing routine can search the target pages identifier for needing to return by map table, so as to avoid finding
The identifier of mistake.
Step S103, compare in navigation storehouse the identifier of the identifier of memory page and the M grades of pages whether
Unanimously.
When App is from a page jump to another page, processing routine can automatically create memory page navigation history note
The storehouse of record, it is ensured that user can return to previous page by the return push-button of electronic equipment.Due in the present embodiment, often
Secondary opening new page, processing routine all can the page to before jumping add identifier, therefore, each in the storehouse that navigates has stored
The page all has a respective identifier, processing routine specifically can by way of traversal, by the identifier of memory page with
The identifier of the M grades of pages obtained before is compared, to judge whether the two is consistent.
Step S104, if the identifier of the memory page is consistent with the identifier of the M grades of pages, with described
Memory page sends page return instruction as target pages, Xiang Suoshu target pages.
If processing routine obtains the identifier one of some identifier and the M grades of pages of memory page by comparing
It causes, then illustrates that memory page is the target pages for requesting to return, i.e. the M grades of pages for this.Therefore, processing routine is to the page object
Face sends page return instruction, and the target pages is made to execute refresh operation later, returns to the page from the N grades of current pages
To the M grades of pages.
Step S105, if the identifier of the identifier and the M grades of pages of the memory page is inconsistent, to pre-
If the fault-tolerant page send page return instruction.
If processing routine show that the identifier of the identifier and the M grades of pages of memory page is inconsistent by comparison,
Then illustrate the target pages for not having discovery request to return in navigation storehouse, i.e. the M grades of pages.Therefore, processing routine is to preset
The fault-tolerant page sends page return instruction, makes the page from N grades of current page jumps to the preset fault-tolerant page, to avoid because
The problem of identifier is inconsistent, interface clamping stagnation when the page being caused to return, and reduces the experience of user.
In the present embodiment, by the way that first level pages add identifier forward while opening new page, receiving from N
When the grade page is back to the request of the M grades of pages, the identifier of the N grades of pages is obtained, and compares each in navigation storehouse
Whether the identifier of memory page and the identifier of the N grades of pages are consistent, in the identifier and N grades of pages of memory page
Under identifier unanimous circumstances, using memory page as target pages, page return instruction is sent to target pages, to return
The M grades of pages are back to, realize the interaction between current page and target pages;The present invention by while opening new page to
The previous stage page adds identifier, when receiving the request of multi-interface return, can accurately be looked into according to the identifier of the page
Target pages are looked for and are back to, it, also can be true according to page object even if current page and target pages are the page of different frames
Fixed corresponding carrier page accurately realizes the interaction between current page and page object.
Referring to Fig. 3, the flow chart of the second embodiment for page returning method provided by the invention, the present embodiment are held
Row main body can be the processing routine in App.On the basis of first embodiment, using the memory page as page object
Face, Xiang Suoshu target pages send page return instruction and can specifically include:
Step S1041, that calls the target pages jumps agreement.
The N grades of pages can be Web page, and the M grades of pages can be the React Native page.From the M grades of pages
The next stage page is jumped to, while processing routine is to M grades of page addition identifiers, IOC note is carried out to M grades of page notes
Volume obtains protocol class convenient for the later period.Remaining processing sequences obtain the identifier and M of some memory page by comparing
The identifier of the grade page is consistent, and after determining target pages, the React Native page can be found by the reflection mechanism of IOC
Carrier page, such as WBRCTCarrierViewController, and start the carrier page of the React Native page passes through
The carrier page of the React Native page calls that the M grades of pages are corresponding to jump agreement.
The N grades of pages can be the React Native page, and the M grades of pages can be Web page.From the M grades of pages
The next stage page is jumped to, while processing routine is to M grades of page addition identifiers, IOC note is carried out to M grades of page notes
Volume obtains protocol class convenient for the later period.Remaining processing sequences obtain the identifier and M of some memory page by comparing
The identifier of the grade page is consistent, and after determining target pages, the carrier page of Web page can be found by the reflection mechanism of IOC,
Such as WBHybridCommonWebPageVC, and start the carrier page of the Web page, calls the by the carrier page of Web page
The M grades of pages are corresponding to jump agreement.The React Native page or the carrier page of Web page are calling a certain page for the first time
It is corresponding when jumping agreement, it can be and loaded from the caching of server end or App.
About the reflection mechanism of IOC, the example that interface realizes class can be specifically got by the key in IOC frame, led to
It is interactive to achieve the purpose that the example for crossing interface class carrys out invocation target function.By the use of IOC frame, method can be avoided
The deficiency that can not be compiled inspection with modes such as protocols is called directly, while the coupling between different frames can also be reduced
It closes.
Step S1042, Xiang Suoshu target pages jump agreement described in sending.
Processing routine calls the corresponding jump of the M grades of pages using the React Native page or the carrier page of Web page
After turning agreement, this can be jumped to agreement and be sent to the M grades of pages, so that the M grades of pages execute corresponding operation, such as refreshed
Page operation, so that the page be made to be back to the M grades of pages from the N grades of pages.For details, reference can be made to for remaining step of the present embodiment
One embodiment, details are not described herein again.
In the present embodiment, processing routine by comparing, is obtaining some identifier of memory page and M grades of pages
Identifier is consistent, after determining target pages, jumps by the agreement that jumps of the invocation target page, and to described in target pages transmission
The mode of agreement, so that the M grades of pages execute corresponding operation, so that the page be made to be back to the M grades of pages from the N grades of pages.
The React Native page is returned receiving from Web page, or returns to the request of Web page from the React Native page
When, target pages can be accurately found, determine that corresponding carrier page to return to target pages, is accurately realized according to page object
Interaction between current page and page object.
Referring to Fig. 4, the flow chart of the 3rd embodiment for page returning method provided by the invention, the present embodiment are held
Row main body can be the processing routine in App.In the present embodiment, using the memory page as target pages, Xiang Suoshu
Target pages send page return instruction and can specifically include:
Step S1043, extracts the readjustment parameter of the N grades of pages, the readjustment parameter N-1 grades of page jumps extremely
The N grades of pages are added into when the N grades of pages.
The N grades of pages and the M grades of pages can be all Web page, or with the React Native page.The page is from
N-1 grades of page jumps add to the N grades of pages while processing routine is to N-1 grades of page addition identifiers for the N grades of pages
Add call back function, in N grades of page closes, the call back function can be triggered, and pass to the N-1 grades of pages by call back function
It pulls over and adjusts parameter.Processing routine obtains the identifier one of some identifier and the M grades of pages of memory page by comparing
It causes, after determining target pages, the readjustment parameter of the N grades of pages can be extracted.
Step S1044, Xiang Suoshu target pages send the readjustment parameter.
After processing routine extracts the readjustment parameter of the N grades of pages, readjustment parameter is issued into target pages, notifies M grades of pages
Face executes refresh operation.
In the present embodiment, processing routine by comparing, is obtaining some identifier of memory page and M grades of pages
Identifier is consistent, after determining target pages, sends readjustment ginseng by extracting the readjustment parameter of the N grades of pages, and to target pages
Several modes, so that the M grades of pages execute corresponding operation, so that the page is made to be back to the M grades of pages from the N grades of pages,
Receive from Web page return Web page, or from the React Native page return the React Native page request when,
Target pages can be accurately searched and be back to, readjustment parameter is passed into target pages, accurately realizes current page and mesh
The interaction between the page is marked, cost of implementation is relatively low, and the degree of coupling between the page is low, and supports the communication in cross-page face.
Referring to Fig. 5, the flow chart of the fourth embodiment for page returning method provided by the invention, the present embodiment are held
Row main body can be the processing routine in App.In the present embodiment, specific to preset fault-tolerant page transmission page return instruction
Include:
Step S1051 searches the N-1 grades of pages in the memory page in navigation storehouse.
The preset fault-tolerant page can be the N-1 grades of pages.After N-1 grades of page jumps to the N grades of pages, navigate
The N-1 grades of pages are stored in storehouse.Processing routine by comparing, is obtaining the identifier of memory page and M grades of pages
Identifier is inconsistent, and when can not determine target pages, processing routine can search the in the memory page in navigation storehouse
The N-1 grades of pages.
N-1 grades of pages of step S1052, Xiang Suoshu send page return instruction.
After processing routine finds the N-1 grades of pages, page return instruction can be sent to the N-1 grades of pages, so that page
Realized from N grades of current page jumps to the N-1 grades of pages fault-tolerant in face.
In the present embodiment, processing routine obtains the mark of the identifier and the M grades of pages of memory page by comparing
Accord with it is inconsistent, when can not determine target pages, by navigation storehouse in memory page in search the N-1 grades of pages, to
The N-1 grades of pages send page return instruction, so that the page is made to be back to the N-1 grades of pages from the N grades of pages, to avoid
Because identifier is inconsistent, interface clamping stagnation when the page being caused to return, the problem of reducing the experience of user.
Referring to Fig. 6, the flow chart of the 5th embodiment for page returning method provided by the invention, the present embodiment are held
Row main body can be the processing routine in App.In the present embodiment, specific to preset fault-tolerant page transmission page return instruction
May include:
Step S1053 searches the homepage face at stack bottom in the memory page in navigation storehouse.
The preset fault-tolerant page can be the homepage face i.e. first order page.From first order page jump to the N grades of pages
Afterwards, the first order page is stored in navigation storehouse.Processing routine obtains the identifier of memory page and M grades by comparing
The identifier of the page is inconsistent, and when can not determine target pages, processing routine can be in the memory page in navigation storehouse
Search homepage face.
The homepage face at step S1054, Xiang Suoshu stack bottom sends page return instruction.
After processing routine finds homepage face, page return instruction can be sent to homepage face, so that the page is from current
Realize fault-tolerant in N grades of page jumps to homepage face.
In the present embodiment, processing routine obtains the mark of the identifier and the M grades of pages of memory page by comparing
Accord with it is inconsistent, when can not determine target pages, by navigation storehouse in memory page in search homepage face, to the head
The page sends page return instruction, so that the page be made to be back to homepage face from the N grades of pages, to avoid because identifier it is inconsistent,
Interface clamping stagnation when the page being caused to return, the problem of reducing the experience of user.
Referring to Fig. 7, being a kind of structural block diagram of page return mechanism provided in an embodiment of the present invention, comprising:
Receiving unit 701, for receiving the request for being back to the M grades of pages from the N grades of pages, M and N are positive integer and N
Greater than M.Acquiring unit 702, for obtaining the identifier of the M grades of pages, the identifier of the M grades of pages is at M grades
The M grades of pages are added into when page jump to the M+1 grades of pages, the identifier is used for the addition identifier
The page carries out uniquely tagged.Comparing unit 703, for compare navigation storehouse in the identifier of memory page with described M grades
Whether the identifier of the page is consistent.Transmission unit 704, for the identifier and the M grades of pages in the memory page
Identifier it is consistent when, using the memory page as target pages, Xiang Suoshu target pages send page return instruction;?
When the identifier of the memory page and the inconsistent identifier of the M grades of pages, page is sent to the preset fault-tolerant page
Face return instruction.
As a kind of optional implementation of the present embodiment, the transmission unit 704 may include: calling subelement, use
Agreement is jumped in the calling target pages.Transmission sub-unit, for jumping agreement to described in target pages transmission.
As a kind of optional implementation of the present embodiment, the transmission unit 704 also may include: extraction subelement,
When consistent with the identifier of the N grades of pages for the identifier in the memory page, the N grades of pages are extracted
Parameter is adjusted back, the readjustment parameter is added into the N grades of pages in N-1 grades of page jump to the N grades of pages.It sends
Subelement, for sending the readjustment parameter to the target pages.
As a kind of optional implementation of the present embodiment, the transmission unit 704 also may include: lookup subelement,
For in the identifier of the memory page and the inconsistent identifier of the N grades of pages, in navigation storehouse
The N-1 grades of pages are searched in memory page.Transmission sub-unit, for sending page return instruction to the N-1 grades of pages.
As a kind of optional implementation of the present embodiment, the transmission unit 704 also may include: lookup subelement,
For in the identifier of the memory page and the inconsistent identifier of the N grades of pages, in navigation storehouse
The homepage face at stack bottom is searched in memory page.Transmission sub-unit, for sending page return instruction to the homepage face at the stack bottom.
The page return mechanism that inventive embodiments provide, the page that can be used for executing the offer of any of the above embodiment return
Method, realization principle is similar with the principle of the above method, and details are not described herein again.
Referring to Fig. 8, being the hardware structural diagram of a kind of electronic equipment provided by the invention.The electronic equipment includes depositing
Reservoir 1001 and processor 1002.For memory 1001 for storing program instruction, processor 1002 is described for calling and executing
Program instruction in memory, to realize page returning method provided by any of the above embodiment of the method.
The embodiment of the present invention also provides a kind of storage medium, and computer program, the meter are stored in the storage medium
Calculation machine program some or all of realizes in each embodiment of page returning method provided by the invention step when being executed by processor
Suddenly.The storage medium can be magnetic disk, CD, read-only memory (English: Read-Only Memory, abbreviation: ROM)
Or random access memory (English: Random Access Memory, referred to as: RAM) etc..
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software
The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present invention substantially or
Say that the part that contributes to existing technology can be embodied in the form of software products, which can deposit
Storage is in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that computer equipment (can be with
It is personal computer, server or the network equipment etc.) execute certain part institutes of each embodiment of the present invention or embodiment
The method stated.
Same and similar part may refer to each other between each embodiment in this specification.It is returned especially for the page
For Installation practice, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method
Explanation in embodiment.
Invention described above embodiment is not intended to limit the scope of the present invention..
Claims (12)
1. a kind of page returning method characterized by comprising
The request that the M grades of pages are back to from the N grades of pages is received, M and N are positive integer and N is greater than M;
The identifier of the M grades of pages is obtained, the identifier of the M grades of pages is in M grades of page jumps to M+1 grades of pages
The M grades of pages are added into when face, the identifier is used to carry out uniquely tagged to the page for adding the identifier;
Compare in navigation storehouse whether the identifier of memory page is consistent with the identifier of the M grades of pages;
If the identifier of the memory page is consistent with the identifier of the M grades of pages, with the memory page work
For target pages, Xiang Suoshu target pages send page return instruction;
If the identifier of the identifier and the M grades of pages of the memory page is inconsistent, to the preset fault-tolerant page
Send page return instruction.
2. the method as described in claim 1, which is characterized in that using the memory page as target pages, Xiang Suoshu mesh
The mark page sends page return instruction
That calls the target pages jumps agreement;
Agreement is jumped to described in target pages transmission.
3. the method as described in claim 1, which is characterized in that using the memory page as target pages, Xiang Suoshu mesh
The mark page sends page return instruction
Extract the readjustment parameter of the N grades of pages, readjustment parameter quilt in N-1 grades of page jump to the N grades of pages
It is added to the N grades of pages;
The readjustment parameter is sent to the target pages.
4. the method as described in claim 1, which is characterized in that sending page return instruction to the preset fault-tolerant page includes:
The N-1 grades of pages are searched in the memory page in navigation storehouse;
Page return instruction is sent to the N-1 grades of pages.
5. the method as described in claim 1, which is characterized in that sending page return instruction to the preset fault-tolerant page includes:
The homepage face at stack bottom is searched in the memory page in navigation storehouse;
Page return instruction is sent to the homepage face at the stack bottom.
6. a kind of page return mechanism characterized by comprising
Receiving unit, for receiving the request for being back to the M grades of pages from the N grades of pages, M and N are positive integer and N is greater than M;
Acquiring unit, for obtaining the identifier of the M grades of pages, the identifier of the M grades of pages is jumped in the M grades of pages
Be added into the M grades of pages when going to the M+1 grades of pages, the identifier be used for add the page of the identifier into
Row uniquely tagged;
Comparing unit, for compare in navigation storehouse the identifier of the identifier of memory page and the M grades of pages whether
Unanimously;
Transmission unit, when consistent with the identifier of the M grades of pages for the identifier in the memory page, with described
Memory page sends page return instruction as target pages, Xiang Suoshu target pages;In the mark of the memory page
When the identifier of symbol and the M grades of pages is inconsistent, page return instruction is sent to the preset fault-tolerant page.
7. device as claimed in claim 6, which is characterized in that the transmission unit includes:
Subelement is called, jumps agreement for call the target pages;
Transmission sub-unit, for jumping agreement to described in target pages transmission.
8. device as claimed in claim 6, which is characterized in that the transmission unit includes:
Subelement is extracted, when consistent with the identifier of the N grades of pages for the identifier in the memory page, is extracted
The readjustment parameter of the N grades of pages, the readjustment parameter are added into institute in N-1 grades of page jump to the N grades of pages
State the N grades of pages;
Transmission sub-unit, for sending the readjustment parameter to the target pages.
9. device as claimed in claim 6, which is characterized in that the transmission unit includes:
Subelement is searched, in the identifier of the memory page and the inconsistent identifier of the N grades of pages,
The N-1 grades of pages are searched in memory page in navigation storehouse;
Transmission sub-unit, for sending page return instruction to the N-1 grades of pages.
10. device as claimed in claim 6, which is characterized in that the transmission unit includes:
Subelement is searched, in the identifier of the memory page and the inconsistent identifier of the N grades of pages,
The homepage face at stack bottom is searched in memory page in navigation storehouse;
Transmission sub-unit, for sending page return instruction to the homepage face at the stack bottom.
11. a kind of electronic equipment characterized by comprising
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, to realize described in any one of Claims 1 to 5
Method.
12. a kind of storage medium, which is characterized in that be stored with computer program, the computer program in the storage medium
Claims 1 to 5 described in any item methods are realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811570904.2A CN109814960A (en) | 2018-12-21 | 2018-12-21 | A kind of page returning method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811570904.2A CN109814960A (en) | 2018-12-21 | 2018-12-21 | A kind of page returning method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109814960A true CN109814960A (en) | 2019-05-28 |
Family
ID=66602211
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811570904.2A Pending CN109814960A (en) | 2018-12-21 | 2018-12-21 | A kind of page returning method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109814960A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110594946A (en) * | 2019-09-19 | 2019-12-20 | 珠海格力电器股份有限公司 | Equipment model setting method and device, storage medium and equipment |
CN110673772A (en) * | 2019-10-10 | 2020-01-10 | 北京无限光场科技有限公司 | Page returning method and device, electronic equipment and computer readable medium |
CN110717123A (en) * | 2019-09-30 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Page response method and device, electronic equipment and storage medium |
CN111459481A (en) * | 2020-03-26 | 2020-07-28 | 平安普惠企业管理有限公司 | Page sideslip method and device, electronic equipment and storage medium |
CN111625741A (en) * | 2020-04-30 | 2020-09-04 | 贝壳技术有限公司 | Page data interaction method and device, storage medium and electronic equipment |
CN112163143A (en) * | 2020-10-29 | 2021-01-01 | 百度时代网络技术(北京)有限公司 | Page switching method, device, equipment and storage medium |
CN113360239A (en) * | 2021-06-29 | 2021-09-07 | 平安普惠企业管理有限公司 | Page updating method and device, computer equipment and storage medium |
CN113486274A (en) * | 2021-07-13 | 2021-10-08 | 中原银行股份有限公司 | Front-end page routing method, terminal equipment and computer medium |
CN114662023A (en) * | 2020-12-23 | 2022-06-24 | 深圳顺丰快运科技有限公司 | Page returning method and device, mobile terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106502646A (en) * | 2016-09-23 | 2017-03-15 | 北京五八信息技术有限公司 | The page info processing method and processing device of application |
CN107515948A (en) * | 2017-09-12 | 2017-12-26 | 武汉斗鱼网络科技有限公司 | Method for page jump, device and readable storage medium storing program for executing |
CN107679061A (en) * | 2017-07-26 | 2018-02-09 | 上海壹账通金融科技有限公司 | Mix APP page navigation method, device, terminal and storage medium |
CN107729014A (en) * | 2017-09-06 | 2018-02-23 | 北京五八到家信息技术有限公司 | A kind of method for page jump and structure based on Android |
-
2018
- 2018-12-21 CN CN201811570904.2A patent/CN109814960A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106502646A (en) * | 2016-09-23 | 2017-03-15 | 北京五八信息技术有限公司 | The page info processing method and processing device of application |
CN107679061A (en) * | 2017-07-26 | 2018-02-09 | 上海壹账通金融科技有限公司 | Mix APP page navigation method, device, terminal and storage medium |
CN107729014A (en) * | 2017-09-06 | 2018-02-23 | 北京五八到家信息技术有限公司 | A kind of method for page jump and structure based on Android |
CN107515948A (en) * | 2017-09-12 | 2017-12-26 | 武汉斗鱼网络科技有限公司 | Method for page jump, device and readable storage medium storing program for executing |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110594946A (en) * | 2019-09-19 | 2019-12-20 | 珠海格力电器股份有限公司 | Equipment model setting method and device, storage medium and equipment |
CN110717123A (en) * | 2019-09-30 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Page response method and device, electronic equipment and storage medium |
CN110717123B (en) * | 2019-09-30 | 2022-04-22 | 北京字节跳动网络技术有限公司 | Page response method and device, electronic equipment and storage medium |
CN110673772A (en) * | 2019-10-10 | 2020-01-10 | 北京无限光场科技有限公司 | Page returning method and device, electronic equipment and computer readable medium |
CN110673772B (en) * | 2019-10-10 | 2021-07-02 | 北京无限光场科技有限公司 | Page returning method and device, electronic equipment and computer readable medium |
CN111459481A (en) * | 2020-03-26 | 2020-07-28 | 平安普惠企业管理有限公司 | Page sideslip method and device, electronic equipment and storage medium |
CN111625741A (en) * | 2020-04-30 | 2020-09-04 | 贝壳技术有限公司 | Page data interaction method and device, storage medium and electronic equipment |
CN112163143A (en) * | 2020-10-29 | 2021-01-01 | 百度时代网络技术(北京)有限公司 | Page switching method, device, equipment and storage medium |
CN112163143B (en) * | 2020-10-29 | 2024-02-27 | 百度时代网络技术(北京)有限公司 | Page switching method, device, equipment and storage medium |
CN114662023A (en) * | 2020-12-23 | 2022-06-24 | 深圳顺丰快运科技有限公司 | Page returning method and device, mobile terminal and storage medium |
CN113360239A (en) * | 2021-06-29 | 2021-09-07 | 平安普惠企业管理有限公司 | Page updating method and device, computer equipment and storage medium |
CN113486274A (en) * | 2021-07-13 | 2021-10-08 | 中原银行股份有限公司 | Front-end page routing method, terminal equipment and computer medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109814960A (en) | A kind of page returning method, device, electronic equipment and storage medium | |
CN108345485A (en) | identification method and device for interface view | |
KR20180038539A (en) | A method and system for implementing data tracking with a software development kit | |
CN110287696B (en) | Detection method, device and equipment for rebound shell process | |
CN104216724B (en) | A kind of method and system of web application interface upgrade | |
US20190146777A1 (en) | Method and apparatus for generating patch | |
CN106095528B (en) | A method of detection virtual machine drive | |
JP2019505028A (en) | Transaction system error detection method, apparatus, storage medium, and computer device | |
CN104346195B (en) | Software installation method and system | |
CN110975293A (en) | Method, device, server and medium for establishing resource reference relation table | |
US7949610B2 (en) | Method and system for discovering dependencies in project plans of distributed system | |
CN110019444B (en) | Operation request processing method, device, equipment and system | |
CN115576600A (en) | Code change-based difference processing method and device, terminal and storage medium | |
CN116560683A (en) | Software updating method, device, equipment and storage medium | |
CN107608873A (en) | Method for testing software and system and test platform | |
KR100717242B1 (en) | Error management system providing debugging information and method using the same | |
CN110262870A (en) | Utilize method, apparatus, computer equipment and the storage medium of dump document alignment exception | |
CN111488286B (en) | Method and device for independently developing Android modules | |
CN112860507A (en) | Method and device for controlling sampling rate of distributed link tracking system | |
CN105787359B (en) | Process guard method and device | |
US20160342544A1 (en) | Dynamic path linking method, device and mobile terminal | |
CN106528411A (en) | Method and device for coverage rate detection and equipment | |
CN111552956A (en) | Role authority control method and device for background management | |
US9342530B2 (en) | Method for skipping empty folders when navigating a file system | |
CN110019448A (en) | A kind of data interactive method and 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |
|
RJ01 | Rejection of invention patent application after publication |