CN109446459A - Page switching method and device, electronic equipment and storage medium - Google Patents

Page switching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109446459A
CN109446459A CN201811185131.6A CN201811185131A CN109446459A CN 109446459 A CN109446459 A CN 109446459A CN 201811185131 A CN201811185131 A CN 201811185131A CN 109446459 A CN109446459 A CN 109446459A
Authority
CN
China
Prior art keywords
page
shipping options
resource locator
uniform resource
former
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.)
Granted
Application number
CN201811185131.6A
Other languages
Chinese (zh)
Other versions
CN109446459B (en
Inventor
张宁
邢国杰
杨浩为
赵金鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201811185131.6A priority Critical patent/CN109446459B/en
Publication of CN109446459A publication Critical patent/CN109446459A/en
Priority to CA3058070A priority patent/CA3058070A1/en
Application granted granted Critical
Publication of CN109446459B publication Critical patent/CN109446459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment provides a kind of page switching method and devices, electronic equipment and storage medium, are related to technical field of software engineering.This method comprises: before former Shipping Options Page is switched to target labels page, it is determined whether need to adjust the uniform resource locator of former Shipping Options Page binding;If it is determined that needing to adjust the uniform resource locator of former Shipping Options Page binding, then former Shipping Options Page and the uniform resource locator of the current display page of former Shipping Options Page are bound;If it is determined that not needing to adjust the uniform resource locator that former Shipping Options Page is bound, then former Shipping Options Page is directly switched to target labels page;If receiving the switching command for jumping back to former Shipping Options Page, the page corresponding with the uniform resource locator of former Shipping Options Page binding is shown in former Shipping Options Page.The technical solution of the embodiment of the present invention is able to use family in switch labels page, is quickly returning to the position previously browsed, promotes the operation convenience of single page application.

Description

Page switching method and device, electronic equipment and storage medium
Technical field
The present invention relates to technical field of software engineering, fill in particular to a kind of page switching method, page switching It sets, electronic equipment and computer readable storage medium.
Background technique
With the development of internet technology, the use of single page application (Single Page Web Application, SPA) It is more and more extensive.Single page application is exactly the application of an only Web page, is single HTML (the HyperText Markup of load Language, hypertext markup language) page and dynamic updates the Web application journey of the page when user interacts with application program Sequence.
It should be noted that information is only used for reinforcing the reason to background of the present invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention be designed to provide a kind of page switching method, page switching device, electronic equipment and Computer readable storage medium, and then list caused by the limitation and defect due to the relevant technologies is overcome at least to a certain extent Page applies the problem of last display page is lost when toggling between Shipping Options Page.
According to a first aspect of the embodiments of the present invention, a kind of page switching method is provided, comprising: cut by former Shipping Options Page It is changed to before target labels page, it is determined whether need to adjust the uniform resource locator of the former Shipping Options Page binding;If it is determined that needing The uniform resource locator of the original Shipping Options Page binding is adjusted, then is shown the former Shipping Options Page and the current of former Shipping Options Page Show that the uniform resource locator of the page is bound;If it is determined that the unified resource for not needing to adjust the former Shipping Options Page binding positions The former Shipping Options Page is then directly switched to the target labels page by symbol;If receiving the switching for jumping back to the former Shipping Options Page Instruction then shows the page corresponding with the uniform resource locator of the former Shipping Options Page binding in the former Shipping Options Page.
In some example embodiments of the present invention, it is based on aforementioned schemes, it is determined whether need to adjust the former Shipping Options Page The uniform resource locator of binding, comprising: whether the uniform resource locator for judging the former Shipping Options Page binding is finally to show The page uniform resource locator;If it is determined that being the uniform resource locator of the page finally shown, it is determined that do not need to adjust The uniform resource locator of the whole former Shipping Options Page binding;If it is determined that be not the uniform resource locator of the page finally shown, Then determine the uniform resource locator for needing to adjust the former Shipping Options Page binding.
In some example embodiments of the present invention, aforementioned schemes are based on, judge the unified money of the former Shipping Options Page binding Source finger URL whether be the page finally shown uniform resource locator, comprising: obtain the system with the former Shipping Options Page binding The timestamp of the corresponding display page of one Resource Locator;The unified money of the former Shipping Options Page binding is judged based on the timestamp Source finger URL whether be the page finally shown uniform resource locator.
In some example embodiments of the present invention, it is based on aforementioned schemes, the page switching method further include: by institute When stating the uniform resource locator of the current display page of former Shipping Options Page and the former Shipping Options Page and being bound, record described current Show the page status data of the page.
In some example embodiments of the present invention, aforementioned schemes are based on, by the former Shipping Options Page and the former Shipping Options Page The uniform resource locator of current display page bound, comprising: by JavaScript script by the former Shipping Options Page It is bound with the uniform resource locator of the current display page of the former Shipping Options Page.
In some example embodiments of the present invention, it is based on aforementioned schemes, the page switching method further include: will be described Uniform resource locator corresponding to Shipping Options Page in single page application is stored in browser memory shape in the form of array in sequence At binding relationship.
In some example embodiments of the present invention, it is based on aforementioned schemes, the page switching method further include: if current The displaying content of Shipping Options Page changes, then dynamically adjusts unified resource corresponding to current label page described in the array Symbol, and update the binding relationship.
According to a second aspect of the embodiments of the present invention, a kind of communication device is provided, comprising: judging unit, for inciting somebody to action Former Shipping Options Page is switched to before target labels page, it is determined whether needs to adjust the unified resource positioning of the former Shipping Options Page binding Symbol;Binding unit is determined, for if it is determined that needing to adjust the uniform resource locator of the former Shipping Options Page binding, then by the original Shipping Options Page and the uniform resource locator of the current display page of the former Shipping Options Page are bound;Direct switch unit, is used for If it is determined that not needing to adjust the uniform resource locator that the former Shipping Options Page is bound, then the former Shipping Options Page is directly switched to institute State target labels page;Page recovery unit, if for receiving the switching command for jumping back to the former Shipping Options Page, in the original Shipping Options Page shows the page corresponding with the uniform resource locator of the former Shipping Options Page binding.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: processor;And memory, Computer-readable instruction is stored on the memory, the computer-readable instruction realizes basis when being executed by the processor Page switching method described in above-mentioned any one.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, meter is stored thereon with Calculation machine program realizes the page switching method according to above-mentioned any one when the computer program is executed by processor.
Technical solution provided in an embodiment of the present invention can include the following benefits:
Page switching method in exemplary embodiment of the present invention, by former Shipping Options Page be switched to target labels page it Before, first determine the need for the uniform resource locator of adjustment original tag page binding;If it is determined that needing to adjust the former mark The uniform resource locator of page binding is signed, then by the uniform resource locator of the current display page of former Shipping Options Page and former Shipping Options Page It is bound;If it is determined that not needing to adjust the uniform resource locator that former Shipping Options Page is bound, then directly former Shipping Options Page is switched For target labels page;If receiving the switching command for restoring former Shipping Options Page, shown and former Shipping Options Page binding in former Shipping Options Page The corresponding page of uniform resource locator.When being switched to new Shipping Options Page, according to page status locating for current label page into The binding again of row uniform resource locator, when returning to original tag page, according to the uniform resource locator bound again Page status before loading switch labels page, can be realized and quickly and accurately return to previous browsing pages, simplify operation, be promoted The operation convenience of single page application.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the flow diagram of page switching method according to some embodiments of the present invention;
Fig. 2 diagrammatically illustrates the signal that uniform resource locator according to some embodiments of the present invention is bound again Figure;
Fig. 3 diagrammatically illustrates the schematic diagram of recovery original tag page according to some embodiments of the present invention;
Fig. 4 diagrammatically illustrates the schematic diagram of page switching device according to some embodiments of the present invention;
Fig. 5 diagrammatically illustrates the schematic diagram of the computer system of electronic equipment according to some embodiments of the present invention;
Fig. 6 diagrammatically illustrates the schematic diagram of computer readable storage medium according to some embodiments of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the present invention will be comprehensively and complete It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
Currently, large-scale single page application is usually the tissue page by way of Tab Shipping Options Page, each Shipping Options Page includes one Or multiple pages, when user browses the page under Shipping Options Page 1, the page generation in Shipping Options Page 1 is continuously jumped, after jumping such as Fruit user is switched to Shipping Options Page 2 from Shipping Options Page 1, since the lower page defaulted of Shipping Options Page 1 is the initial display page, then switches back to mark Still the initial display page that default can be shown when signing page 1 can lose the content of the display of previous label page 1, and user is if it is desired to look into It sees the content previously browsed, needs to re-start selection, it is cumbersome.
Inventor notices this problem, has investigated a kind of page switching method, and Fig. 1 is diagrammatically illustrated according to this hair The schematic process flow diagram of the page switching method of bright some embodiments.Refering to what is shown in Fig. 1, the page switching method includes as follows Step:
Step S110, before former Shipping Options Page is switched to target labels page, it is determined whether need to adjust the former label The uniform resource locator of page binding;
Step S120, however, it is determined that need to adjust the uniform resource locator of the former Shipping Options Page binding, then by the former mark Label page and the uniform resource locator of the current display page of the former Shipping Options Page are bound;
Step S130, however, it is determined that do not need to adjust the uniform resource locator of the former Shipping Options Page binding, then directly by institute It states former Shipping Options Page and is switched to the target labels page;
Step S140, if receiving the switching command for jumping back to the former Shipping Options Page, show in the former Shipping Options Page and The corresponding page of uniform resource locator of the original Shipping Options Page binding.
According to the page switching method in this example embodiment, when being switched to new Shipping Options Page, according to current label page Locating page status carries out the binding again of uniform resource locator, when returning to original tag page, according to binding again Uniform resource locator load switch labels page before page status, can be realized and quickly and accurately return to previous browsing position It sets, simplifies operation, promote the operation convenience of single page application.
In the following, by the page switching method of this example embodiment is further detailed.
Refering to what is shown in Fig. 1, in step s 110, before former Shipping Options Page is switched to target labels page, it is determined whether need Adjust the uniform resource locator of the former Shipping Options Page binding.
In some example embodiments of the present invention, uniform resource locator (Uniform Resource Locator, URL) be standard resource on internet address, may be used to determine the position of specific file included in resource.Work as needs The instruction for executing switch labels page is to judge whether to need to adjust former Shipping Options Page before former Shipping Options Page is switched to target labels page The uniform resource locator of binding.
In some example embodiments of the present invention, when needing to be implemented the instruction of switch labels page, former Shipping Options Page is detected The display page whether change with uniform resource locator, if the display page of original Shipping Options Page is when changing every time, All the uniform resource locator of former Shipping Options Page and the page after change is bound, thinks adjusted excessively former mark at this time The uniform resource locator of page binding is signed, therefore can directly execute the instruction of switch labels page, does not need to adjust former mark again Sign the uniform resource locator of page binding.
In some example embodiments of the present invention, when needing to be implemented the instruction of switch labels page, former Shipping Options Page is detected The display page whether change with uniform resource locator, if the display page of original Shipping Options Page is when changing every time, The uniform resource locator of former Shipping Options Page binding does not change, thinks the uniform resource locator pair of former Shipping Options Page binding at this time What is answered is the history display page, it is therefore desirable to which the uniform resource locator for readjusting former Shipping Options Page binding can position To the current display page.
In some example embodiments of the present invention, in the unified money for determining the need for adjusting the former Shipping Options Page binding When the finger URL of source, can also by judge former Shipping Options Page binding uniform resource locator whether be the page finally shown system One Resource Locator determines.If it is determined that being the uniform resource locator of the page finally shown, it is determined that adjusted mistake The uniform resource locator of former Shipping Options Page binding, does not need to adjust again;If it is determined that not being the unification of the page finally shown Resource Locator, it is determined that the corresponding uniform resource locator of former Shipping Options Page binding is the history display page, needs to adjust again The uniform resource locator of whole original Shipping Options Page binding.
Further, when showing that the page changes, for the display page setup timestamp of former Shipping Options Page.Obtain former mark The timestamp for signing the corresponding display page of uniform resource locator of page binding, according to the timestamp it may determine that former Shipping Options Page The uniform resource locator of binding whether be the page finally shown uniform resource locator.
In the step s 120, however, it is determined that the uniform resource locator for needing to adjust the former Shipping Options Page binding, then it will be described Former Shipping Options Page and the uniform resource locator of the current display page of the former Shipping Options Page are bound.
In some example embodiments of the present invention, if it is determined that need to adjust the unified resource positioning of former Shipping Options Page binding Symbol changes in the display page of former Shipping Options Page and the uniform resource locator of former Shipping Options Page binding does not change, It, will be former or when determining that the uniform resource locator of former Shipping Options Page binding is not the uniform resource locator of the page finally shown Shipping Options Page and the uniform resource locator of the current display page of former Shipping Options Page are bound.
Further, when determining the uniform resource locator for needing to adjust the former Shipping Options Page binding, can pass through JavaScript script binds former Shipping Options Page and the uniform resource locator of the current display page of former Shipping Options Page.
In step s 130, however, it is determined that do not need to adjust the uniform resource locator of the former Shipping Options Page binding, then directly The former Shipping Options Page is switched to the target labels page.
In some example embodiments of the present invention, if it is determined that the unified resource for not needing to adjust former Shipping Options Page binding is fixed Position symbol, i.e., the display page of each former Shipping Options Page, which changes, all determines the unified resource of the page after former Shipping Options Page and change Position symbol is bound, or determine former Shipping Options Page binding uniform resource locator be the page finally shown unified resource it is fixed When the symbol of position, former Shipping Options Page is directly switched to target labels page.
It is aobvious in the former Shipping Options Page if receiving the switching command for jumping back to the former Shipping Options Page in step S140 Show the page corresponding with the uniform resource locator of the former Shipping Options Page binding.
In some example embodiments of the present invention, if receiving the switching command for being restored to former Shipping Options Page, weight is obtained The uniform resource locator for the former Shipping Options Page newly bound loads the page status data of the uniform resource locator corresponding record, The page status data are shown in former Shipping Options Page, restore the page finally shown before original tag switching.
Further, it is bound by former Shipping Options Page and the uniform resource locator of the current display page of former Shipping Options Page While, record the page status data such as logging state data of current display page.Restore former Shipping Options Page receiving When order, the corresponding page status data of uniform resource locator bound again are loaded, it will be able to complete to former Shipping Options Page most The recovery of the page is shown afterwards, additionally it is possible to keep the logging state of the last display page.
In addition, in some embodiments, it, can also be by former Shipping Options Page before former Shipping Options Page is switched to target labels page All the elements of current display page be all loaded into browser, by HTML (HyperText Markup Language, HyperText Markup Language) display property control hide the current display page.Restore cutting for former Shipping Options Page receiving When changing instruction, which is shown by the display property control of HTML.
Further, in the exemplary embodiment, unified resource corresponding to the Shipping Options Page in single page application is positioned Symbol is stored in browser memory in sequence in the form of array and forms binding relationship.If the displaying content of current label page becomes Change, then dynamically adjusts unified resource corresponding to current label page in the array and accord with, and update the binding relationship.By browsing The binding relationship of buffer tag page and same Resource Locator in device more acurrate can quickly return to previous browsing position, Further promote the operation convenience of single page application.
Fig. 2 diagrammatically illustrates the signal that uniform resource locator according to some embodiments of the present invention is bound again Figure.Refering to what is shown in Fig. 2, it is Tab1, Shipping Options Page 2 i.e. Tab2 and Shipping Options Page 3 i.e. Tab3 that current single page, which is applied comprising Shipping Options Page 1, It is www.meituan.com/Tab1, the unified money that Shipping Options Page 2 is bound that Shipping Options Page 1, which binds uniform resource locator, before handover operation Source finger URL is www.meituan.com/Tab2, and the uniform resource locator that Shipping Options Page 3 is bound is www.meituan.com/ Tab3;When being switched to " list of entries 2 ", detecting that the display page is changed, log history shows the timestamp of the page, Such as " 9:30AM " passes through JavaScript wscript.exe again binding tab page 1 according to the display state of current display page URL be " www.meituan.com/Tab1/detail ", execute the next switching page instruction when, storage currently show page The page status data in face record the timestamp of the page, such as " 9:40AM ";When being switched to Shipping Options Page 2 from Shipping Options Page 1, mark The uniform resource locator that the display page of label page 1 changes and former Shipping Options Page is bound is bound again, and according to when Between the uniform resource locator bound again of Shipping Options Page 1 known to stamp be the page finally shown, therefore do not need to adjust mark again Sign the uniform resource locator that page 1 is bound.The page status data of the current display page of record, are switched to the binding of Shipping Options Page 2 The corresponding display page of uniform resource locator " www.meituan.com/Tab2 ".
Fig. 3 diagrammatically illustrates the schematic diagram of recovery original tag page according to some embodiments of the present invention.With reference to Fig. 3 Shown, it is " www.meituan.com/Tab2 " that Shipping Options Page 2, which binds uniform resource locator, before operating, and execution is cut from Shipping Options Page 2 When changing to the instruction of Shipping Options Page 1, according to the display state of current display page, bound again by JavaScript wscript.exe The uniform resource locator of Shipping Options Page 2 records the timestamp of the page, such as " 9:42AM ";Detect the finger for restoring Shipping Options Page 1 It enables, obtains the uniform resource locator for the Shipping Options Page 1 bound again in Fig. 2, load the corresponding display of the uniform resource locator The page and page status data restore the browse state before Shipping Options Page 1 switches.
In addition, in an embodiment of the present invention, additionally providing a kind of page switching device.Referring to shown in Fig. 4, which is cut Changing device 400 includes: judging unit 410, determines binding unit 420, direct switch unit 430 and page recovery unit 440. Wherein: judging unit 410 is used for before former Shipping Options Page is switched to target labels page, it is determined whether needs to adjust the former mark Sign the uniform resource locator of page binding;Determine binding unit 420 for if it is determined that needing to adjust the former Shipping Options Page binding Uniform resource locator, then by the uniform resource locator of the current display page of the former Shipping Options Page and the former Shipping Options Page into Row binding;Direct switch unit 430 is used for if it is determined that not needing to adjust the uniform resource locator that the former Shipping Options Page is bound, then The former Shipping Options Page is directly switched to the target labels page;If page recovery unit 440 for receive jump back to it is described The switching command of former Shipping Options Page is then shown in the former Shipping Options Page corresponding with the uniform resource locator of the former Shipping Options Page binding The page.
In some example embodiments of the present invention, it is based on aforementioned schemes, judging unit 410 further include: unified resource is fixed Position symbol judging unit, for judge the former Shipping Options Page binding uniform resource locator whether be the page finally shown system One Resource Locator;First judging unit, for if it is determined that being the uniform resource locator of the page finally shown, it is determined that no Need to adjust the uniform resource locator of the former Shipping Options Page binding;Second judging unit, for if it is determined that not being finally to show The page uniform resource locator, it is determined that need to adjust the uniform resource locator of the former Shipping Options Page binding.
In some example embodiments of the present invention, aforementioned schemes are based on, uniform resource locator judging unit is configured Are as follows: obtain the timestamp of the display page corresponding with the uniform resource locator of the former Shipping Options Page binding;Based on the time Stamp judge uniform resource locator that the former Shipping Options Page is bound whether be the page finally shown uniform resource locator.
In some example embodiments of the present invention, aforementioned schemes are based on, page switching device is configured as: will be described When the uniform resource locator of the current display page of former Shipping Options Page and the former Shipping Options Page is bound, record described current aobvious Show the page status data of the page.
In some example embodiments of the present invention, aforementioned schemes are based on, are marked the original by JavaScript script Label page and the uniform resource locator of the current display page of the former Shipping Options Page are bound.
In some example embodiments of the present invention, it is based on aforementioned schemes, the page switching device further include: binding is closed System forms unit, for uniform resource locator corresponding to the Shipping Options Page in applying the single page in sequence with array Form is stored in browser memory and forms binding relationship.
In some example embodiments of the present invention, it is based on aforementioned schemes, the page switching device further include: binding is closed It is updating unit, if the displaying content for current label page changes, dynamically adjusts and currently marked described in the array The symbol of unified resource corresponding to page is signed, and updates the binding relationship.
The detail of each module of page switching device has carried out in corresponding page switching method in detail among the above Thin description, therefore details are not described herein again.
It should be noted that although being referred to several modules or unit of page switching device in the above detailed description, It is that this division is not enforceable.In fact, embodiment according to the present invention, two or more above-described modules or The feature and function of person's unit can embody in a module or unit.Conversely, an above-described module or The feature and function of unit can be to be embodied by multiple modules or unit with further division.
In addition, in an exemplary embodiment of the disclosure, additionally providing a kind of can be realized above-mentioned page switching method Electronic equipment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, completely Software implementation (including firmware, microcode etc.) or hardware and software in terms of combine embodiment, may be collectively referred to as here Circuit, " module " or " system ".
The electronic equipment 500 of this embodiment according to the present invention is described referring to Fig. 5.Electronics shown in fig. 5 is set Standby 500 be only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 is showed in the form of universal computing device.The component of electronic equipment 500 can wrap It includes but is not limited to: at least one above-mentioned processing unit 510, at least one above-mentioned storage unit 520, the different system components of connection The bus 530 of (including storage unit 520 and processing unit 510), display unit 540.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510 Row, so that various according to the present invention described in the execution of the processing unit 510 above-mentioned " illustrative methods " part of this specification The step of exemplary embodiment.For example, the processing unit 510 can execute step S110 as shown in fig. 1, marked by original Label page is switched to before target labels page, it is determined whether needs to adjust the uniform resource locator of the former Shipping Options Page binding;Step Rapid S120, however, it is determined that need to adjust the uniform resource locator of the former Shipping Options Page binding, then by the former Shipping Options Page with it is described The uniform resource locator of the current display page of former Shipping Options Page is bound;Step S130, however, it is determined that do not need described in adjustment The former Shipping Options Page is then directly switched to the target labels page by the uniform resource locator of former Shipping Options Page binding;Step S140 is shown and the former Shipping Options Page if receiving the switching command for jumping back to the former Shipping Options Page in the former Shipping Options Page The corresponding page of the uniform resource locator of binding.
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 5201 and/or cache memory unit 5202, it can further include read-only memory unit (ROM) 5203.
Storage unit 520 can also include program/utility with one group of (at least one) program module 5205 5204, such program module 5205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 500 can also be with one or more external equipments 570 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 500 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 500 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, electronic equipment 500 can be with By network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 560 is communicated by bus 530 with other modules of electronic equipment 500. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 500, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can To be personal computer, server, terminal installation or network equipment etc.) it executes according to the page switching of the embodiment of the present disclosure Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium 600 is additionally provided, is stored thereon with It can be realized the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various exemplary embodiments.
Refering to what is shown in Fig. 6, describing the program for realizing above-mentioned page switching method of embodiment according to the present invention Product 600, can be using portable compact disc read only memory (CD-ROM) and including program code, and can set in terminal It is standby, such as run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can To be personal computer, server, touch control terminal or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of page switching method, applied to the single page application including multiple Shipping Options Pages characterized by comprising
Before former Shipping Options Page is switched to target labels page, it is determined whether need to adjust the unified money of the former Shipping Options Page binding Source finger URL;
If it is determined that needing to adjust the uniform resource locator of the former Shipping Options Page binding, then the former Shipping Options Page and the original are marked The uniform resource locator for signing the current display page of page is bound;
If it is determined that not needing to adjust the uniform resource locator that the former Shipping Options Page is bound, then directly the former Shipping Options Page is switched For the target labels page;
If receiving the switching command for jumping back to the former Shipping Options Page, shows in the former Shipping Options Page and tied up with the former Shipping Options Page The corresponding page of fixed uniform resource locator.
2. page switching method according to claim 1, which is characterized in that determine the need for adjusting the former Shipping Options Page The uniform resource locator of binding, comprising:
Judge the former Shipping Options Page binding uniform resource locator whether be the page finally shown uniform resource locator;
If it is determined that being the uniform resource locator of the page finally shown, it is determined that do not need to adjust the former Shipping Options Page binding Uniform resource locator;
If it is determined that not being the uniform resource locator of the page finally shown, it is determined that need to adjust the former Shipping Options Page binding Uniform resource locator.
3. page switching method according to claim 2, which is characterized in that judge the unified money of the former Shipping Options Page binding Source finger URL whether be the page finally shown uniform resource locator, comprising:
Obtain the timestamp of the display page corresponding with the uniform resource locator of the former Shipping Options Page binding;
Whether the uniform resource locator that the former Shipping Options Page binding is judged based on the timestamp is the page finally shown Uniform resource locator.
4. page switching method according to claim 1, the page switching method further include:
When the uniform resource locator of the current display page of the former Shipping Options Page and the former Shipping Options Page is bound, note Record the page status data of the current display page.
5. page switching method according to any one of claim 1 to 4, which is characterized in that by the former Shipping Options Page with The uniform resource locator of the current display page of the original Shipping Options Page is bound, comprising:
The former Shipping Options Page and the unified resource of the current display page of the former Shipping Options Page are determined by JavaScript script Position symbol is bound.
6. page switching method according to claim 5, which is characterized in that the page switching method further include:
Uniform resource locator corresponding to Shipping Options Page in single page application is stored in the form of array in sequence clear Device memory of looking at forms binding relationship.
7. page switching method according to claim 6, which is characterized in that the page switching method further include:
If the displaying content of current label page changes, dynamically adjust corresponding to current label page described in the array Unified resource symbol, and update the binding relationship.
8. a kind of page switching device characterized by comprising
Judging unit, for before former Shipping Options Page is switched to target labels page, it is determined whether need to adjust the former label The uniform resource locator of page binding;
Determine binding unit, it, then will be described for if it is determined that need to adjust the uniform resource locator of the former Shipping Options Page binding Former Shipping Options Page and the uniform resource locator of the current display page of the former Shipping Options Page are bound;
Direct switch unit, for if it is determined that not needing to adjust the uniform resource locator of the former Shipping Options Page binding, then directly The former Shipping Options Page is switched to the target labels page;
Page recovery unit, if for receiving the switching command for jumping back to the former Shipping Options Page, it is aobvious in the former Shipping Options Page Show the page corresponding with the uniform resource locator of the former Shipping Options Page binding.
9. a kind of electronic equipment characterized by comprising processor;And memory, computer is stored on the memory Readable instruction is realized as described in any one of claims 1 to 7 when the computer-readable instruction is executed by the processor Page switching method.
10. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is executed by processor Page switching method of the Shi Shixian as described in any one of claims 1 to 7.
CN201811185131.6A 2018-10-11 2018-10-11 Page switching method and device, electronic equipment and storage medium Active CN109446459B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811185131.6A CN109446459B (en) 2018-10-11 2018-10-11 Page switching method and device, electronic equipment and storage medium
CA3058070A CA3058070A1 (en) 2018-10-11 2019-10-09 Page switching method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811185131.6A CN109446459B (en) 2018-10-11 2018-10-11 Page switching method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109446459A true CN109446459A (en) 2019-03-08
CN109446459B CN109446459B (en) 2021-08-27

Family

ID=65545236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811185131.6A Active CN109446459B (en) 2018-10-11 2018-10-11 Page switching method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109446459B (en)
CA (1) CA3058070A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275517A (en) * 2020-01-14 2020-06-12 拉扎斯网络科技(上海)有限公司 Link information display method and device, storage medium and terminal
CN111596832A (en) * 2020-05-20 2020-08-28 北京搜狗科技发展有限公司 Page switching method and device
CN111625167A (en) * 2020-05-28 2020-09-04 上海哔哩哔哩科技有限公司 Page switching method and device and computer equipment
CN111752699A (en) * 2019-03-27 2020-10-09 北京沃东天骏信息技术有限公司 Page switching method and device and computer readable storage medium
CN112100476A (en) * 2020-09-01 2020-12-18 武汉华盛美业科技有限公司 Dynamic data acquisition method and system for single-page multi-state object
CN112579934A (en) * 2021-02-03 2021-03-30 杭州普数软件有限公司 Method and equipment for skipping and updating view of website application
CN112632920A (en) * 2020-11-16 2021-04-09 腾讯科技(深圳)有限公司 Link processing method, link processing device, terminal equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685663B (en) * 2020-12-21 2023-05-12 福建新大陆软件工程有限公司 SPA multi-tab management method based on VUE
CN114741149B (en) * 2022-04-15 2024-02-27 北京懿医云科技有限公司 Page switching method and device for single-page application, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984686A (en) * 2013-02-07 2014-08-13 阿里巴巴集团控股有限公司 Page-switching method and device
CN104978385A (en) * 2015-03-19 2015-10-14 腾讯科技(深圳)有限公司 Information processing method, browser client and terminal
CN105550187A (en) * 2014-11-03 2016-05-04 阿里巴巴集团控股有限公司 Method and device for managing browsing history in single page application
CN106201562A (en) * 2015-04-30 2016-12-07 深圳市腾讯计算机系统有限公司 A kind of page switching method and device
US20170052853A1 (en) * 2015-08-17 2017-02-23 Sap Portals Israel Ltd. System and method of data loss prevention

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984686A (en) * 2013-02-07 2014-08-13 阿里巴巴集团控股有限公司 Page-switching method and device
CN105550187A (en) * 2014-11-03 2016-05-04 阿里巴巴集团控股有限公司 Method and device for managing browsing history in single page application
CN104978385A (en) * 2015-03-19 2015-10-14 腾讯科技(深圳)有限公司 Information processing method, browser client and terminal
CN106201562A (en) * 2015-04-30 2016-12-07 深圳市腾讯计算机系统有限公司 A kind of page switching method and device
US20170052853A1 (en) * 2015-08-17 2017-02-23 Sap Portals Israel Ltd. System and method of data loss prevention

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HANS FINDEL等: "A Test Environment for Web Single Page Applications (SPA)", 《IN PROCEEDINGS OF THE 11TH INTERNATIONAL CONFERENCE ON WEB INFORMATION SYSTEMS AND TECHNOLOGIES (WEBIST-2015)》 *
刘白林等: "PhoneGap+HTML5+SPA微信公众平台实现", 《西安工业大学学报》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752699A (en) * 2019-03-27 2020-10-09 北京沃东天骏信息技术有限公司 Page switching method and device and computer readable storage medium
CN111752699B (en) * 2019-03-27 2024-04-09 北京沃东天骏信息技术有限公司 Page switching method, device and computer readable storage medium
CN111275517A (en) * 2020-01-14 2020-06-12 拉扎斯网络科技(上海)有限公司 Link information display method and device, storage medium and terminal
CN111275517B (en) * 2020-01-14 2021-02-19 拉扎斯网络科技(上海)有限公司 Link information display method and device, storage medium and terminal
CN111596832A (en) * 2020-05-20 2020-08-28 北京搜狗科技发展有限公司 Page switching method and device
CN111625167A (en) * 2020-05-28 2020-09-04 上海哔哩哔哩科技有限公司 Page switching method and device and computer equipment
CN111625167B (en) * 2020-05-28 2021-08-24 上海哔哩哔哩科技有限公司 Page switching method and device and computer equipment
CN112100476A (en) * 2020-09-01 2020-12-18 武汉华盛美业科技有限公司 Dynamic data acquisition method and system for single-page multi-state object
CN112632920A (en) * 2020-11-16 2021-04-09 腾讯科技(深圳)有限公司 Link processing method, link processing device, terminal equipment and storage medium
CN112579934A (en) * 2021-02-03 2021-03-30 杭州普数软件有限公司 Method and equipment for skipping and updating view of website application

Also Published As

Publication number Publication date
CA3058070A1 (en) 2020-04-11
CN109446459B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN109446459A (en) Page switching method and device, electronic equipment and storage medium
EP3134807B1 (en) Pre-fetching grid blocks by user intent
CN104102643B (en) A kind of method and apparatus for carrying out page snapshot
CN103135879B (en) Display packing, display device and electronic equipment
CN103746782B (en) Method and apparatus for obtaining feedback information of application
CN109522500B (en) Webpage display method, device, terminal and storage medium
CN104657201A (en) Method, device, equipment and system for pushing application program
US20160170592A1 (en) Transitioning browser tabs from one environment context to another
CN109684573A (en) Target Photo display methods and device, storage medium, electronic equipment
CN108023940B (en) Information updating method, device, server and readable storage medium
CN109783355A (en) Page elements acquisition methods, system, computer equipment and readable storage medium storing program for executing
CN106126197A (en) Make the method and device of the mobile terminal application page and PC end application page synchronization
CN104580378A (en) Installation package processing method and device
CN106157109A (en) price comparing method, device and terminal
KR20140025501A (en) Redirecting requests to secondary location during temporary outage
CN104050218A (en) Method and system for providing information to be displayed in user interface
EP2998885A1 (en) Method and device for information search
CN110020235A (en) Web browser threedimensional model localization method, device, medium and electronic equipment
WO2013036461A1 (en) Visualization and editing of composite layouts
CN107562852B (en) Method, medium, device and computing equipment for displaying page in browser
CN106126517A (en) The PC end application page is converted to the method and device of the mobile terminal application page
US20110138296A1 (en) Method and device for browsing web page securely
CN104239322A (en) Webpage browsing method and device
US11663193B2 (en) Identifying incorrect links
CN114741149B (en) Page switching method and device for single-page application, storage medium and electronic equipment

Legal Events

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