CN110020274A - Page returning method and device under browser environment are applied in mixing - Google Patents

Page returning method and device under browser environment are applied in mixing Download PDF

Info

Publication number
CN110020274A
CN110020274A CN201710723025.8A CN201710723025A CN110020274A CN 110020274 A CN110020274 A CN 110020274A CN 201710723025 A CN201710723025 A CN 201710723025A CN 110020274 A CN110020274 A CN 110020274A
Authority
CN
China
Prior art keywords
page
browser
mixing
distance
target pages
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
CN201710723025.8A
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710723025.8A priority Critical patent/CN110020274A/en
Publication of CN110020274A publication Critical patent/CN110020274A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of mixing to apply page returning method and device under browser environment.This method comprises: intercepting the first operation if the first operation is to return to operation, wherein mixing application is opened in a browser, and the first operation is the operation to the page of mixing application, and the first operation carries the identification information of current page and the identification information of target pages;The identification information of the current page carried according to the first operation and the identification information of target pages calculate first page distance, wherein first page distance is the page distance between current page and target pages;Page return operation is carried out according to first page distance, wherein after carrying out the page and returning to operation, the page for mixing application returns to target pages.By the application, target pages can not be returned under browser environment by solving the problems, such as that mixing is applied in the related technology.

Description

Page returning method and device under browser environment are applied in mixing
Technical field
This application involves mixing application fields, apply the page under browser environment in particular to a kind of mixing Return method and device.
Background technique
In mixing application framework, such as ionic, they all voluntarily maintain a history stack for tracking user's browsing History.Different from the historical record behavior of browser, browser tracks a history stack in a linear fashion, and mixes and answer With tracking in a non-linear fashion.One problem of bring is if mixing application is grafted directly under browser environment in this way Access will appear page routing and not navigate by way of expectations.
For example, successively accessing A- > B- > C- > B page by mixing application routing navigation, the history of itself is applied in mixing It is AB now in storehouse, and is ABCB in browser history recording stack.Therefore C can be return back to by clicking browser's back button at this time The page, the case where thus will appear routing error, correctly routing is to click browser's back button at this time to return to A pages Face.
Aiming at the problem that mixing in the related technology, which is applied, can not return to target pages under browser environment, not yet mention at present Effective solution scheme out.
Summary of the invention
The main purpose of the application is that providing a kind of mix applies page returning method and dress under browser environment It sets, target pages can not be returned under browser environment to solve the problems, such as that mixing is applied in the related technology.
To achieve the goals above, it according to the one aspect of the application, provides a kind of mix and applies in browser environment Under page returning method.This method comprises: intercepting first operation, wherein mixing if the first operation is to return to operation Using opening in a browser, first operation is the operation to the page of the mixing application, and first operation carries The identification information of current page and the identification information of target pages;According to the mark for the current page that first operation carries The identification information for knowing information and the target pages calculates first page distance, wherein the first page distance is described works as Page distance between the preceding page and the target pages;The page, which is carried out, according to the first page distance returns to operation, wherein After carrying out the page and returning to operation, the page of the mixing application returns to the target pages.
Further, the page is carried out according to the first page distance and returns to operation, comprising: by the first page distance It substitutes into the predetermined registration operation function of the browser;The predetermined registration operation function of the browser is called, page return is carried out Operation.
Further, the identification information and the target pages of the current page carried according to first operation Identification information calculates first page distance, comprising: searches the current page in the historical record stack of the browser, obtains First position, wherein the historical record stack of the browser successively has recorded the page that the mixing application access is crossed, institute State the position that first position is used to indicate in multiple pages that the current page records in the historical record stack;Described The target pages are searched in the historical record stack of browser, obtain the second position, the second position is used to indicate institute State position of the target pages in multiple pages in the historical record stack;According to the first position and the second position Calculate the first page distance.
Further, first operation is returns to operation or forward operation, before intercepting first operation, institute State method further include: carry out routing monitoring in the page of the mixing application, wherein if to the page of the mixing application First operation is carried out, routing can change;If listening to routing to change, whether first operation is judged To return to operation.
To achieve the goals above, it according to the another aspect of the application, provides a kind of mix and applies in browser environment Under page return mechanism.The device includes: interception unit, for intercepting institute in the case where the first operation is to return to operation State the first operation, wherein mixing application is opened in a browser, and first operation is the behaviour to the page of the mixing application Make, first operation carries the identification information of the identification information and target pages of current page;Computing unit, for according to institute State the first operation carrying the current page identification information and the target pages identification information calculate first page away from From, wherein the first page distance is the page distance between the current page and the target pages;Operating unit, Operation is returned for carrying out the page according to the first page distance, wherein after carrying out the page and returning to operation, the mixing The page of application returns to the target pages.
Further, the operating unit includes: substitution subelement, described clear for substituting into the first page distance It lookes in the predetermined registration operation function of device;Subelement is called, for calling the predetermined registration operation function of the browser, carries out the page Return to operation.
Further, the computing unit includes: the first lookup subelement, for the historical record stack in the browser It is middle to search the current page, obtain first position, wherein the historical record stack of the browser successively has recorded described The page that mixing application access is crossed, the first position is used to indicate what the current page recorded in the historical record stack Position in multiple pages;Second searches subelement, for searching the mesh in the historical record stack of the browser The page is marked, obtains the second position, it is multiple in the historical record stack that the second position is used to indicate the target pages Position in the page;Computation subunit, for according to the first position and the second position calculate the first page away from From.
Further, first operation is return operation or forward operation, described device further include: monitoring unit, For carrying out routing monitoring in the page of the mixing application before the interception unit intercepts first operation, In, if having carried out first operation to the page of the mixing application, routing can change;Judging unit, for such as Fruit listens to routing and changes, and judges whether first operation is to return to operation.
To achieve the goals above, according to the another aspect of the application, a kind of storage medium is provided.The storage medium packet Include the program of storage, wherein described program executes above-mentioned mixing and applies the page returning method under browser environment.
To achieve the goals above, according to the another aspect of the application, a kind of processor is provided.The processor is for transporting Line program, wherein described program executes above-mentioned mixing when running and applies the page returning method under browser environment.
In the embodiment of the present application, mixing application is opened in a browser, and user grasps the page of mixing application Make and (indicated with the first operation), the first operation can be forward operation or return to operation, and the first operation carries the mark of current page Know the identification information of information and target pages.First judge whether the first operation is to return to operation, if the first operation is the behaviour that advances Make, then without any processing;If the first operation is to return to operation, the first operation is intercepted, extracts the first operation carrying Current page identification information and target pages identification information, according to the identification information and target of the current page extracted The identification information of the page calculates the page distance between current page and target pages, carries out page according to calculated page distance Face returns to operation, so that the page of mixing application returns to target pages.By calculating between current page and target pages Page distance, and according to the page distance carry out the page return operation so that browser return operation can return to it is any one A target pages solve to mix in the prior art and apply the technical issues of can not returning to target pages under browser environment, Reach mixing and applies the technical effect that can return to target pages under browser environment.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, the schematic reality of the application Example and its explanation are applied for explaining the application, is not constituted an undue limitation on the present application.In the accompanying drawings:
Fig. 1 is the process that the page returning method under browser environment is applied according to a kind of mixing of the embodiment of the present application Figure;
Fig. 2 is the stream that the page returning method under browser environment is applied according to another mixing of the embodiment of the present application Cheng Tu;And
Fig. 3 is the signal that the page return mechanism under browser environment is applied according to the mixing of the embodiment of the present application one kind Figure.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
According to an embodiment of the present application, it provides a kind of mix and applies the page returning method under browser environment.
Fig. 1 is the process that the page returning method under browser environment is applied according to a kind of mixing of the embodiment of the present application Figure.As shown in Figure 1, method includes the following steps:
Step S102 intercepts the first operation if the first operation is to return to operation, wherein mixing application is in a browser It opens, the first operation is the operation to the page of mixing application, and the first operation carries the identification information and page object of current page The identification information in face.
Step S104, the identification information of the current page carried according to the first operation and the identification information of target pages calculate First page distance, wherein first page distance is the page distance between current page and target pages.
Step S106 carries out the page according to first page distance and returns to operation, wherein returns to operation carrying out the page Afterwards, the page for mixing application returns to target pages.
In the embodiment of the present application, mixing application is opened in a browser, and user grasps the page of mixing application Make and (indicated with the first operation), the first operation can be forward operation or return to operation, and the first operation carries the mark of current page Know the identification information of information and target pages.First judge whether the first operation is to return to operation, if the first operation is the behaviour that advances Make, then without any processing;If the first operation is to return to operation, the first operation is intercepted, extracts the first operation carrying Current page identification information and target pages identification information, according to the identification information and target of the current page extracted The identification information of the page calculates the page distance between current page and target pages, carries out page according to calculated page distance Face returns to operation, so that the page of mixing application returns to target pages.By calculating between current page and target pages Page distance, and according to the page distance carry out the page return operation so that browser return operation can return to it is any one A target pages solve to mix in the prior art and apply the technical issues of can not returning to target pages under browser environment, Reach mixing and applies the technical effect that can return to target pages under browser environment.
Optionally, it is applied in the page returning method under browser environment in mixing provided by the embodiments of the present application, root The page is carried out according to first page distance and returns to operation, comprising: substitutes into first page distance in the predetermined registration operation function of browser; The predetermined registration operation function of browser is called, the page is carried out and returns to operation.
Mixing application is opened in a browser, and user operates (with the first operation table the page of mixing application Show), the first operation can be forward operation or return to operation, and the first operation carries the identification information and target pages of current page Identification information.If the first operation is to return to operation, the first operation is intercepted, the current page of the first operation carrying is extracted Identification information and target pages identification information, according to the mark of the identification information of the current page extracted and target pages Information calculates the page distance between current page and target pages, obtains first page distance, and first page distance is substituted into In the predetermined registration operation function of browser, the predetermined registration operation function of browser is called, the page is carried out and returns to operation, so that mixing is applied The page return to target pages.
Predetermined registration operation function can be history.go (x).Under default situations, x=1.
X=first page distance is enabled, history.go (x) is called to carry out return operation.
In the embodiment of the present application, by intercepting to any return operation, current page is then calculated to page object The page distance in face carries out return operation using the predetermined registration operation function of browser.Historical record in this way in browser and mixed The historical record closed in application can synchronize, and can correctly be routed in browser environment to mix and apply.
Optionally, it is applied in the page returning method under browser environment in mixing provided by the embodiments of the present application, root The identification information of the current page carried according to the first operation and the identification information of target pages calculate first page distance, comprising: Current page is searched in the historical record stack of browser, obtains first position, wherein the historical record stack of browser is successively remembered The page that mixing application access is crossed is recorded, first position is used to indicate multiple pages that current page records in historical record stack In position;Target pages are searched in the historical record stack of browser, obtain the second position, the second position is used to indicate target Position of the page in multiple pages in historical record stack;First page distance is calculated according to first position and the second position.
For example, A- > D- > C- > B page is successively accessed by mixing application routing navigation, in browser history recording stack It is ADCB.Current page is the B page, it is assumed that target pages are the A page (i.e. user want the page returned), then going through in browser The current page B page is searched in history recording stack to get first position is arrived, first position is the 4th record in historical record stack. The target pages A page is searched in the historical record stack of browser, obtains the second position, the second position is in historical record stack 1st record.It is according to the detailed process that first position and the second position calculate first page distance then: 4-1=3, i.e., first Page distance is 3.First page distance is substituted into the predetermined registration operation function of browser;Call the predetermined registration operation letter of browser Number carries out the page and returns to operation.For example, it is assumed that predetermined registration operation function is history.go (x).X=3 is enabled, is called History.go (3) carries out return operation, that is, can return to the target pages A page.
For another example A- > B- > C- > B page is successively accessed by mixing application routing navigation, in browser history recording stack In be ABCB.Current page is the B page, it is assumed that target pages are the A page (i.e. user want the page returned), then in browser The current page B page is searched in historical record stack, finds 2 B pages, the previous B page is accessed before accessing the C page , it is not current page therefore;The latter B page is current page.First position is the 4th record in historical record stack. The target pages A page is searched in the historical record stack of browser, obtains the second position, the second position is in historical record stack 1st record.It is according to the detailed process that first position and the second position calculate first page distance then: 4-1=3, i.e., first Page distance is 3.First page distance is substituted into the predetermined registration operation function of browser;Call the predetermined registration operation letter of browser Number carries out the page and returns to operation.For example, it is assumed that predetermined registration operation function is history.go (x).X=3 is enabled, is called History.go (3) carries out return operation, that is, can return to the target pages A page.
In the embodiment of the present application, any return operation is intercepted, then calculates current page to target pages Page distance x carries out return operation using history.go (x) method.Historical record and mixing application in this way in browser In historical record can synchronize, to mix using can correctly be routed in browser environment.
Optionally, it is applied in the page returning method under browser environment in mixing provided by the embodiments of the present application, the One operation is returns to operation or forward operation, before the operation of interception first, method further include: in the page of mixing application Carry out routing monitoring, wherein if having carried out the first operation to the page of mixing application, routing can change;If monitored It changes to routing, judges whether the first operation is to return to operation.
After operating to the page of mixing application, either forward operation still returns to operation, and routing can all occur Variation.If listening to routing to change, judge that the page to mixing application carries out according to the case where changing is routed Operation is forward operation or returns to operation.If it is forward operation, then without intercepting;It operates, then intercepts if it is returning Operation is returned, the page distance between current page and target pages is calculated according to the information for returning to operation carrying, obtains first First page distance is substituted into the predetermined registration operation function of browser, calls the predetermined registration operation function of browser by page distance, into The row page returns to operation, to return to target pages.
By monitoring page routing, intercepts and return to operation, then calculate current page to needing back page (page object Face) distance, returned using the history.go () of browser, achieve the purpose that browser and mixing using route synchronization.
Fig. 2 is the stream that the page returning method under browser environment is applied according to another mixing of the embodiment of the present application Cheng Tu.
As shown in Fig. 2, this method comprises the following steps:
Step S202 opens mixing application in browser environment.
Step S204, setting routing monitoring event.
Step S206 judges whether it is to return to operation according to routing variation.If it is judged that being yes, execution step S210;If it is judged that being no, execution step S208.
Record is pressed into historical record storehouse by step S208.
Step S210 calculates the page distance x for the page (target pages) that current page is returned to needs.
Step S212 calls browser history.go (x) to be returned.
Into mixing application page, setting routing monitoring event.Judge whether it is to return to behaviour when page routing changes Make.If it is page up is returned to, the history.go () of browser is called to carry out return operation.That is, under default situations, x= 1.If it is other pages (target pages) are returned to, current page is calculated to the distance between target pages x, is called History.go (x) carries out return operation.
By monitoring page routing, intercepts and return to operation, then calculate current page to target pages distance x, utilize History.go (x) method, carries out return operation.The historical record in historical record and mixing application in this way in browser is just Can be synchronous, it can correctly be routed in browser environment to mix and apply.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not The sequence being same as herein executes shown or described step.
The embodiment of the present application also provides a kind of mixing to apply the page return mechanism under browser environment, needs to illustrate , the mixing of the embodiment of the present application apply the page return mechanism under browser environment can be used for executing the application implementation For mixing the page returning method applied under browser environment provided by example.Below to provided by the embodiments of the present application mixed Conjunction applies the page return mechanism under browser environment to be introduced.
Fig. 3 is the signal that the page return mechanism under browser environment is applied according to the mixing of the embodiment of the present application one kind Figure.As shown in figure 3, the device includes: interception unit 10, computing unit 20, operating unit 30.
Interception unit 10, for intercepting the first operation, wherein mixing is answered in the case where the first operation is to return to operation With opening in a browser, the first operation is the operation to the page of mixing application, and the first operation carries the mark of current page The identification information of information and target pages.
Computing unit 20, the identification information of the current page for being carried according to the first operation and the mark of target pages are believed Breath calculates first page distance, wherein first page distance is the page distance between current page and target pages.
Operating unit 30, returns to operation for carrying out the page according to first page distance, wherein returns to behaviour carrying out the page After work, the page for mixing application returns to target pages.
Optionally, it is applied in the page return mechanism under browser environment in mixing provided by the embodiments of the present application, behaviour Making unit 30 includes: to substitute into subelement, call subelement.Subelement is substituted into, for first page distance to be substituted into browser In predetermined registration operation function.Subelement is called, for calling the predetermined registration operation function of browser, the page is carried out and returns to operation.
Optionally, it is applied in the page return mechanism under browser environment in mixing provided by the embodiments of the present application, meter Calculating unit 20 includes: the first lookup subelement, the second lookup subelement, computation subunit.First searches subelement, for clear Look at device historical record stack in search current page, obtain first position, wherein the historical record stack of browser successively has recorded The page that mixing application access is crossed, first position is used to indicate in multiple pages that current page records in historical record stack Position.Second searches subelement, for searching target pages in the historical record stack of browser, obtains the second position, and second Position is used to indicate position of the target pages in multiple pages in historical record stack.Computation subunit, for according to first Position and the second position calculate first page distance.
Optionally, it is applied in the page return mechanism under browser environment in mixing provided by the embodiments of the present application, the One operation is return operation or forward operation, device further include: monitoring unit, judging unit.Monitoring unit, for intercepting Before unit 10 intercepts the first operation, routing monitoring is carried out in the page of mixing application, wherein if to the page of mixing application Face has carried out the first operation, and routing can change.Judging unit judges first if changed for listening to routing Whether operation is to return to operation.
It includes processor and memory, above-mentioned interception list that the page return mechanism under browser environment is applied in the mixing Member 10, computing unit 20, operating unit 30 etc. store in memory as program unit, are stored in by processor execution Above procedure unit in reservoir realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, apply the page under browser environment to return to carry out mixing by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flas RAM), memory include at least one storage Chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The page returning method under browser environment is applied in the existing mixing.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The page returning method under browser environment is applied in mixing described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
If the first operation is to return to operation, the first operation is intercepted, wherein mixing application is opened in a browser, and first Operation is the operation to the page of mixing application, and the first operation carries the identification information of current page and the mark letter of target pages Breath;The identification information of the current page carried according to the first operation and the identification information of target pages calculate first page distance, Wherein, first page distance is the page distance between current page and target pages;The page is carried out according to first page distance Return operation, wherein after carrying out the page and returning to operation, the page for mixing application returns to target pages.
First page distance is substituted into the predetermined registration operation function of browser;The predetermined registration operation function for calling browser, into The row page returns to operation.
Current page is searched in the historical record stack of browser, obtains first position, wherein the historical record of browser Stack successively has recorded the page that mixing application access is crossed, and first position is used to indicate what current page recorded in historical record stack Position in multiple pages;Target pages are searched in the historical record stack of browser, obtain the second position, the second position is used for Indicate position of the target pages in multiple pages in historical record stack;First page is calculated according to first position and the second position Identity distance from.
Routing monitoring is carried out in the page of mixing application, wherein if having carried out the first behaviour to the page of mixing application Make, routing can change;If listening to routing to change, judge whether the first operation is to return to operation.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
If the first operation is to return to operation, the first operation is intercepted, wherein mixing application is opened in a browser, and first Operation is the operation to the page of mixing application, and the first operation carries the identification information of current page and the mark letter of target pages Breath;The identification information of the current page carried according to the first operation and the identification information of target pages calculate first page distance, Wherein, first page distance is the page distance between current page and target pages;The page is carried out according to first page distance Return operation, wherein after carrying out the page and returning to operation, the page for mixing application returns to target pages.
First page distance is substituted into the predetermined registration operation function of browser;The predetermined registration operation function for calling browser, into The row page returns to operation.
Current page is searched in the historical record stack of browser, obtains first position, wherein the historical record of browser Stack successively has recorded the page that mixing application access is crossed, and first position is used to indicate what current page recorded in historical record stack Position in multiple pages;Target pages are searched in the historical record stack of browser, obtain the second position, the second position is used for Indicate position of the target pages in multiple pages in historical record stack;First page is calculated according to first position and the second position Identity distance from.
Routing monitoring is carried out in the page of mixing application, wherein if having carried out the first behaviour to the page of mixing application Make, routing can change;If listening to routing to change, judge whether the first operation is to return to operation.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. the page returning method under browser environment is applied in a kind of mixing characterized by comprising
If the first operation is to return to operation, first operation is intercepted, wherein mixing application is opened in a browser, described First operation is the operation to the page of the mixing application, and first operation carries the identification information and target of current page The identification information of the page;
The identification information of the current page and the identification information of the target pages carried according to first operation calculates First page distance, wherein the first page distance is the page distance between the current page and the target pages;
The page, which is carried out, according to the first page distance returns to operation, wherein after carrying out the page and returning to operation, the mixing The page of application returns to the target pages.
2. the method according to claim 1, wherein carrying out the page according to the first page distance returns to behaviour Make, comprising:
The first page distance is substituted into the predetermined registration operation function of the browser;
The predetermined registration operation function of the browser is called, the page is carried out and returns to operation.
3. the method according to claim 1, wherein according to the current page of the first operation carrying The identification information of identification information and the target pages calculates first page distance, comprising:
The current page is searched in the historical record stack of the browser, obtains first position, wherein the browser The historical record stack successively has recorded the page that the mixing application access is crossed, and the first position is used to indicate described current The position in multiple pages that the page records in the historical record stack;
The target pages are searched in the historical record stack of the browser, obtain the second position, the second position It is used to indicate position of the target pages in multiple pages in the historical record stack;
The first page distance is calculated according to the first position and the second position.
4. the method according to claim 1, wherein it is described first operation for return operation or forward operation, Before intercepting first operation, the method also includes:
Routing monitoring is carried out in the page of the mixing application, wherein if having carried out institute to the page of the mixing application The first operation is stated, routing can change;
If listening to routing to change, judge whether first operation is to return to operation.
5. the page return mechanism under browser environment is applied in a kind of mixing characterized by comprising
Interception unit, for intercepting first operation, wherein mixing application in the case where the first operation is to return to operation It opens in a browser, first operation is the operation to the page of the mixing application, and first operation carries current The identification information of the page and the identification information of target pages;
Computing unit, the identification information and the target pages of the current page for being carried according to first operation Identification information calculates first page distance, wherein the first page distance be the current page and the target pages it Between page distance;
Operating unit returns to operation for carrying out the page according to the first page distance, wherein return to operation carrying out the page Later, the page of the mixing application returns to the target pages.
6. device according to claim 5, which is characterized in that the operating unit includes:
Subelement is substituted into, for substituting into the first page distance in the predetermined registration operation function of the browser;
Subelement is called, for calling the predetermined registration operation function of the browser, the page is carried out and returns to operation.
7. device according to claim 5, which is characterized in that the computing unit includes:
First lookup subelement obtains first for searching the current page in the historical record stack of the browser It sets, wherein the historical record stack of the browser successively has recorded the page crossed of mixing application access, and described first Position is used to indicate the position in multiple pages that the current page records in the historical record stack;
Second searches subelement, for searching the target pages in the historical record stack of the browser, obtains the Two positions, the second position are used to indicate position of the target pages in multiple pages in the historical record stack;
Computation subunit, for calculating the first page distance according to the first position and the second position.
8. device according to claim 5, which is characterized in that first operation operates for return or forward operation, Described device further include:
Monitoring unit, for the interception unit intercept it is described first operation before, it is described mixing application the page in into Walking along the street is by monitoring, wherein if having carried out first operation to the page of the mixing application, routing can change;
Judging unit judges whether first operation is to return to operation if changed for listening to routing.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein described program right of execution Benefit require any one of 1 to 4 described in mixing apply the page returning method under browser environment.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 4 described in mixing apply the page returning method under browser environment.
CN201710723025.8A 2017-08-21 2017-08-21 Page returning method and device under browser environment are applied in mixing Pending CN110020274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710723025.8A CN110020274A (en) 2017-08-21 2017-08-21 Page returning method and device under browser environment are applied in mixing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710723025.8A CN110020274A (en) 2017-08-21 2017-08-21 Page returning method and device under browser environment are applied in mixing

Publications (1)

Publication Number Publication Date
CN110020274A true CN110020274A (en) 2019-07-16

Family

ID=67186128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710723025.8A Pending CN110020274A (en) 2017-08-21 2017-08-21 Page returning method and device under browser environment are applied in mixing

Country Status (1)

Country Link
CN (1) CN110020274A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111339470A (en) * 2020-03-03 2020-06-26 政采云有限公司 Page return alarm method, system, device and readable storage medium
CN115310016A (en) * 2022-10-08 2022-11-08 南京翼辉爱智物联技术有限公司 Webpage interface display method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030066031A1 (en) * 2001-09-28 2003-04-03 Siebel Systems, Inc. Method and system for supporting user navigation in a browser environment
CN105630949A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Page loading and backspacing method and device
CN105975262A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Page management method and device
CN106202244A (en) * 2016-06-28 2016-12-07 深圳中兴网信科技有限公司 Web page message return method and web page message return system
CN106294832A (en) * 2016-08-18 2017-01-04 乐视控股(北京)有限公司 Browser page method for caching and processing and device
CN106339426A (en) * 2016-08-16 2017-01-18 金蝶软件(中国)有限公司 Mobile application page control method and system
CN106990966A (en) * 2017-03-31 2017-07-28 中国科学技术大学苏州研究院 Mobile terminal cross-platform Development Framework and development approach based on front end frame

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030066031A1 (en) * 2001-09-28 2003-04-03 Siebel Systems, Inc. Method and system for supporting user navigation in a browser environment
CN105630949A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Page loading and backspacing method and device
CN105975262A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Page management method and device
CN106202244A (en) * 2016-06-28 2016-12-07 深圳中兴网信科技有限公司 Web page message return method and web page message return system
CN106339426A (en) * 2016-08-16 2017-01-18 金蝶软件(中国)有限公司 Mobile application page control method and system
CN106294832A (en) * 2016-08-18 2017-01-04 乐视控股(北京)有限公司 Browser page method for caching and processing and device
CN106990966A (en) * 2017-03-31 2017-07-28 中国科学技术大学苏州研究院 Mobile terminal cross-platform Development Framework and development approach based on front end frame

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
喻好 等: "对单页Web应用开发探究及应用", 《福建电脑》 *
阿锋佬: "ionic导航之后返回功能的说明", 《HTTPS://WWW.CNBLOGS.COM/FENG18/P/5217680.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111339470A (en) * 2020-03-03 2020-06-26 政采云有限公司 Page return alarm method, system, device and readable storage medium
CN115310016A (en) * 2022-10-08 2022-11-08 南京翼辉爱智物联技术有限公司 Webpage interface display method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109426732A (en) A kind of data processing method and device
KR20190033576A (en) Terminal Rule Engine Device and Terminal Rule Operation Method
CN106155496A (en) A kind of information displaying method and device
CN110033261A (en) Block chain data processing method, apparatus and system
CN109582716A (en) Data visualization treating method and apparatus
CN108874379A (en) The processing method and processing device of the page
CN109683773A (en) Corpus labeling method and device
CN109582452A (en) A kind of container dispatching method, dispatching device and electronic equipment
CN108134812A (en) Data processing method and device
CN110020274A (en) Page returning method and device under browser environment are applied in mixing
CN110262775A (en) Business rule generation method and device
CN109951326A (en) Data processing method, device, storage medium and processor
CN109033365A (en) A kind of data processing method and relevant device
CN110069488A (en) A kind of date storage method, method for reading data and its device
CN110020333A (en) Data analysing method and device, electronic equipment, storage medium
CN112597525B (en) Data processing method and device based on privacy protection and server
CN106204125A (en) A kind of pricing method and device
CN109918118A (en) A kind of register method and relevant device of service line
CN104765775B (en) A kind of log preservation method and device
CN109886723A (en) Obtain the method and device of regional information
CN108566429A (en) A kind of high in the clouds sharing files method and apparatus
CN109201424A (en) Circuit board spraying method and device, storage medium and processor
CN109271453A (en) A kind of determination method and apparatus of database volume
CN108375778A (en) A kind of methods of exhibiting and device of GPS positioning deception
CN110069453A (en) Operation/maintenance data treating method and apparatus

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190716