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

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

Info

Publication number
CA3058070A1
CA3058070A1 CA3058070A CA3058070A CA3058070A1 CA 3058070 A1 CA3058070 A1 CA 3058070A1 CA 3058070 A CA3058070 A CA 3058070A CA 3058070 A CA3058070 A CA 3058070A CA 3058070 A1 CA3058070 A1 CA 3058070A1
Authority
CA
Canada
Prior art keywords
page
uniform resource
resource locator
tab page
original
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
CA3058070A
Other languages
French (fr)
Inventor
Ning Zhang
Guojie Xing
Haowei Yang
Jinxin ZHAO
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.)
10353744 Canada Ltd
Original Assignee
10353744 Canada 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 10353744 Canada Ltd filed Critical 10353744 Canada Ltd
Publication of CA3058070A1 publication Critical patent/CA3058070A1/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present invention provide a page switching method and device, an electronic device, and a storage medium, and relate to the field of software engineering technologies. The method includes: before switching an original tab page to a target tab page, determining whether it is necessary to adjust a uniform resource locator bound to the original tab page; if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted, binding the original tab page to a uniform resource locator of a current display page of the original tab page; if it is determined that the uniform resource locator bound the original tab page does not need adjustment, switching the original tab page directly to the target tab page; upon receiving a switching instruction to jump back to the original tab page, displaying a page corresponding to the uniform resource locator bound to the original tab page on the original tab page. The technical solution of the embodiments of the present invention enables a user to quickly return to the previously browsed position when switching tab pages, thereby improving the operation convenience of a single page web application.

Description

PAGE SWITCHING METHOD AND DEVICE, ELECTRONIC DEVICE AND
STORAGE MEDIUM
Technical Field [0001] The present invention relates to the field of software engineering technologies, and in particular, to a page switching method, a page switching device, an electronic device, and a computer readable storage medium.
Background
[0002] With the development of Internet technology, the use of single page web applications (SPA) becomes increasingly broad. A single page web application is an application that has only one web page, and is a web application that loads a single HTML (Hypertext Markup Language) page and dynamically updates the page when a user interacts with the application.
[0003] It should be noted that the information disclosed in the Background Art section is only to facilitate understanding the background of the present invention, and thus may include information that does not constitute prior art known to a person of ordinary skill in the art.
Summary
[0004] An object of the embodiments of the present invention is to provide a page switching method, a page switching device, an electronic device, and a computer readable storage medium, which may at least to a certain degree overcome the problem due to limitations and deficiencies of the related art, that a single page application may lose the last display page when switching back and forth between tabs.
[0005] According to a first aspect of the embodiments of the present invention, the present invention provides a page switching method applied to a single page web application comprising a plurality of tab pages, characterized in that the method comprises:
determining, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page; binding the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted;
switching the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound to the original tab page does not need adjustment; displaying on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page.
[0006] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the determining whether it is necessary to adjust a uniform resource locator bound to the original tab page comprises: determining whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page; determining that the uniform resource locator binding to the original tab page does not need to be adjusted, if it is determined that the uniform resource locator is the uniform resource locator of the last display page; determining that the uniform resource locator binding to the original tab page needs to be adjusted, if it is determined that the uniform resource locator is not the uniform resource locator of the last display page.
[0007] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the determining whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page comprises:
obtaining a timestamp of a display page corresponding to the uniform resource locator bound to the original tab page;
determining, on the basis of the timestamp, whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page.
[0008] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the page switching method further comprises: recording page status data of the current display page, when the original tab page is bound to the uniform resource locator of the current display page of the original tab page.
[0009] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the binding of the original tab page to a uniform resource locator of a current display page of the original tab page comprises binding the original tab page to the uniform resource locator of the current display page Of the original tab page through a JavaScript script.
[0010] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the page switching method further comprises storing the uniform resource locator corresponding to the tab page in the single page application in a browser memory in a form of an array in a sequence so as to form a binding relationship.

10011] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the page switching method further comprises dynamically adjusting the uniform resource locator corresponding to the current tab page in the array if the display content of the current tab page changes, and updating the binding relationship thereof [0012] According to a second aspect of the embodiments of the present invention, a communication device is provided, which comprises: a determining unit, which is used for determining, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page; a binding determining unit, which is used for binding the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted; a direct switching unit, which is used for switching the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound the original tab page does not need adjustment; a page recovering unit, which is used for displaying on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page.
[0013] According to a third aspect of the embodiments of the present invention, an electronic device is provided, and the device comprises: a processor; and a memory having computer readable instructions stored thereon, the computer readable instructions being executed by the processor to implement the page switching method according to any one of the foregoing descriptions.
[0014] According to a fourth aspect of the embodiments of the present invention, a computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the page switching method according to any one of the foregoing descriptions.
[0015] The technical solutions provided by the embodiments of the present invention may have the following beneficial effects:
[0016] The page switching method according to the exemplary embodiments of the present invention includes: firstly determining, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page;
binding the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted; switching the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound the original tab page does not need adjustment; and displaying on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page. In this way, when switching to a new tab page, the uniform resource locator is re-bound according to the page state of the current tab page; and when returning to the original tab page, the page state before switching the tab page is loaded on the basis of the re-bound uniform resource locator. The present invention can accurately and quickly return to the previous browsed web page, thereby simplifying the operations and improving the convenience of operation of a single page web application.
[0017] The above general description and the following detailed description of this disclosure are merely illustrative and explanative. They do not limit the present invention.
Brief Description of the Drawin2s [0018] The drawings herein are incorporated into the description of the present disclosure and thus form a part of this description. Some embodiments consistent with the present invention have been shown herein, which, together with the description, are used to explain the principles of the present invention. Obviously, the drawings in the following description are only for some embodiments of the present invention. For a person of ordinary skill in the art, other drawings may also be obtained from these figures without inventive skills. In the drawing:
[0019] FIG. 1 is a schematic flow chart showing a page switching method according to some embodiments of the present invention.
[0020] FIG. 2 is a schematic diagram showing rebinding a uniform resource locator in accordance with some embodiments of the present invention.
[0021] FIG. 3 is a schematic diagram showing recovering an original tab page in accordance with some embodiments of the present invention.
[0022] FIG. 4 is a schematic illustration of a page switching device in accordance with some embodiments of the present invention.
[0023] FIG. 5 is a schematic illustration of a computer system of an electronic device in accordance with some embodiments of the present invention.

[0024] FIG. 6 is a schematic illustration of a schematic diagram of a computer readable storage medium in accordance with some embodiments of the present invention.
Detailed Description [0025] The embodiments of the present invention will be further described in detail in reference to the accompanying drawings. However, the exemplary embodiments can be implemented in many forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be complete.
The same reference numerals in the drawings denote the same or similar parts, and the repeated description thereof will be omitted.
[0026] Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, a number of specific details will be provided. However, one skilled in the art will appreciate that the technical solutions of the present invention may be implemented without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed.
In other cases, certain well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring the aspects of the present invention.
[0027] The block diagrams shown in the figures are merely functional entities and do not necessarily have to correspond to physically separate entities. That is, these functional entities may be implemented in software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices.
[0028] The flowcharts shown in the figures are merely illustrative, and some of the contents and operations/steps may not be necessary, and they are not necessarily performed in the order described herein. For example, some operations/steps may be divided, and some operations/steps may be combined or partially combined, so the actual execution order may vary depending on the actual situation.
[0029] Currently, large single web page applications usually organize their pages by tab pages.
Each tab page includes one or more pages. When a user browses a page under tab page 1, the pages in tab 1 continuously jump. After the jump, if the user switches from tab page 1 to tab page 2, since the default page under tab page 1 is its initial display page, the default initial display page will still be displayed when it switches back to tab page 1, and the content displayed on the previous tab page 1 will be lost. In such a case, if the user wants to view the previously browsed content, the user needs to re-select it, which is cumbersome.
[0030] The inventors have noticed this problem and accordingly have developed a page switching method. FIG. 1 is a schematic flow chart showing a page switching method according to some embodiments of the present invention. In reference to FIG. 1, the page switching method includes the following steps:
[0031] step 5110, determining, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page;
[0032] step S120, binding the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted;
[0033] step S130, switching the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound the original tab page does not need adjustment;
[0034] step S140, displaying on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page.
[0035] According to the page switching method in the present exemplary embodiment, when switching to a new tab page, the uniform resource locator is re-bound according to the page state of the current tab page; and when returning to the original tab page, the page state before switching the tab page is loaded on the basis of the re-bound uniform resource locator.
[0036] The present invention can accurately and quickly return to the previous browsed web page, thereby simplifying the operations and improving the convenience of operation of a single page web application.
[0037] In reference to FIG. 1, in step S110, determine, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page.
[0038] In some example embodiments of the present invention, a Uniform Resource Locator (URL) is an address of a standard resource on the Internet, and may be used to determine the location of a specific file included in the resource. Before switching an original tab page to a target tab page, that is, before executing an instruction of switching a tab page, determining whether it is necessary to adjust a uniform resource locator bound to the original tab page.
[0039] In some exemplary embodiments of the present invention, when executing an instruction to switch a tab page, it is needed to check whether the display page of the original tab page and the uniform resource locator are changed, and each time when the display page of the original tab page changes, the original tab page will be bound to the uniform resource locator of the changed page. In such a case, it is considered that the uniform resource locator bound to the original tab page has been adjusted, so that the instruction for switching the tab page can be directly executed without re-adjusting the uniform resource locator bound to the original tab page.
[0040] In some exemplary embodiments of the present invention, when executing an instruction to switch a tab page, it is needed to check whether the display page of the original tab page and the uniform resource locator are changed, and each time when the display page of the original tab page changes, the uniform resource locator bound to the original tab page does not change. In such a case, it is considered that the uniform resource locator bound to the original tab corresponds to a history display page. Therefore, it is necessary to re-adjust the uniform resource locator bound to the original tab page so that it can be directed to the current display page.
[0041] In some exemplary embodiments of the present invention, in the step of determining whether it is necessary to adjust the uniform resource locator bound to the original tab page, it is performed by determining whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page, determining that the uniform resource locator binding to the original tab page does not need to be adjusted, if it is determined that the uniform resource locator is the uniform resource locator of the last display page, and thus no further adjustment is necessary; and determining that the uniform resource locator binding to the original tab page needs to be adjusted, if it is determined that the uniform resource locator bound to the original tab page corresponds to a history display page, and accordingly, the uniform resource locator bound to the original tab page needs to be adjusted.
[0042] Further, when the display page changes, a timestamp for the display page of the original tab page is set. Accordingly, the method may further include:
obtaining a timestamp of a display page corresponding to the uniform resource locator bound to the original tab page; and determining, on the basis of the timestamp, whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page.
[0043] In step S120, bind the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted.
[0044] In some exemplary embodiments of the present invention, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted, that is, the display page of the original tab page is changed while the uniform resource locator of the original tab page is not changed, or it is determined that the uniform resource location bound to the original tab page is not the uniform resource locator of the last display page, the original tab page should be bound to the uniform resource locator of the current display page of the original tab page.
[0045] Further, in the case where it is determined that the uniform resource locator bound to the original tab page needs to be adjusted, this can be carried out by binding the original tab page to the uniform resource locator of the current display page of the original tab page through a JavaScript script.
[0046] In step S130, switch the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound the original tab page does not need adjustment.
[0047] In some exemplary embodiments of the present invention, if it is determined that it is not necessary to adjust the uniform resource locator bound to the original tab page, that is, each time when the display page of the original tab page is changed, the original tab page is bound to the uniform resource locator of the changed page, or it is determined that the uniform resource locator bound to the original tab is the uniform resource locator of the last display page, the original tab page will be directly switched to the target tab page.
[0048] In step S140, display on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page.
[0049] In some exemplary embodiments of the present invention, in the case where a switching instruction of returning to the original tab page is received, the uniform resource locator of the re-bound original tab page is obtained, the page status data corresponding to the record of the uniform resource locator is loaded, and the page status data is displayed on the original tab page, so as to restore the last display page before the original tab is switched.
100501 Further, while the original tab page is being bound to the uniform resource locator of the current display page of the original tab page, the page status data of the currently display page, such as the login status data, is recorded. In this case, when receiving an instruction to recover the original tab page, by loading the page status data corresponding to the re-bound uniform resource locator, the recovery of the last displayed page of the original tab page can be completed, and the login status of the last display page can be maintained.
[0051] Moreover, in some embodiments, before switching the original tab page to the target tab page, all the contents of the current display page of the original tab page can also be loaded into the browser, and the current display page may be hidden by the display attribution control of HTML (Hypertext Markup Language). In this case, when receiving the switching instruction for recovering the original tab page, the current display page will be displayed by the display attribute of the HTML.
[0052] Furthermore, in some exemplary embodiments, the uniform resource locator corresponding to the tab page in the single page application may be stored in a browser memory in a form of an array in a sequence so as to form a binding relationship. If the display content of the current tab changes, dynamically adjust the uniform resource locator corresponding to the current tab page in the array, and update the binding relationship. By caching the binding relationship between the tab page and the corresponding uniform resource locator in the browser, it is possible to more accurately and quickly return to the previous browsing position, thereby further improving the operation convenience of the single page web application.
[0053] FIG. 2 is a schematic diagram showing rebinding a uniform resource locator in accordance with some embodiments of the present invention. As shown in FIG. 2, the current single page web application includes a tab page 1, i.e., Tab!; a tab page 2, i.e., Tab2; and tab page 3, i.e., Tab3. Before the switching operation, the uniform resource locator bound to the Tab 1 is www.meituan.com/Tabl. The uniform resource locator bound to Tab 2 is wwvv.meituan.com/Tab2. The uniform resource locator bound to Tab 3 is www.meituan.com/Tab3. When switching to "List Item 2," it is detected that the display page has changed, and the timestamp of the history display page is recorded as, for example, "9:30 A.M." According to the display status of the current display page, the uniform resource locator of Tab 1 is re-bound by a JavaScript script tool as www.meituan.com/Tabl/detail. When executing a next page switching instruction, the page state data of the currently display page is stored, and the timestamp of the page is recorded as, for example, "9:40 A.M."
In this case, when switching from Tab 1 to Tab 2, the display page of Tab 1 changes and the uniform resource locator bound to the original tab has been re-bound; according to the timestamp, the uniform resource locator that is re-bound to Tab 1 is the last display page.
Therefore, there is no need to adjust the uniform resource locator bound to Tab 1 again. So, record the page status data of the current display page, and switch to the display page corresponding to the uniform resource locator "www.meituan.com/Tab2" which is bound to Tab 2.
[0054] FIG. 3 is a schematic diagram showing recovering an original tab page in accordance with some embodiments of the present invention. In reference to FIG. 3, before the operation, Tab 2 is bound to the uniform resource locator www.meituan.com/Tab2. When the instruction to switch from Tab 2 to Tab 1 is executed, according to the display status of the current display page, the uniform resource locator of Tab 2 is re-bound by the JavaScript script tool, and the timestamp of the page is recorded as, for example, "9:42 A.M." In this case, when an instruction to recover Tab 1 is received, the uniform resource locator rebound to Tab 1 as shown in FIG. 2 is obtained, the display page corresponding to the uniform resource locator is loaded, and the page status data is loaded, and the browsing status before Tab page 1 is switched and is thus restored.
[0055] In addition, in some embodiments of the present invention, a page switching device is further provided. In reference to FIG. 4, the page switching device 400 may include: a determining unit 410, a binding determining unit 420, a direct switching unit 430 and a page recovering unit 440, in which the determining unit 410 is used for determining, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page; the binding determining unit 420 is used for binding the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted; the direct switching unit 430 is used for switching the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound the original tab page does not need adjustment; and the page recovering unit 440 is used for displaying on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page.

[0056] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the determining unit 410 may further include: a uniform resource locator determining unit, which is used for determining whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page;
a first determining unit, which is used for determining that the uniform resource locator binding to the original tab page does not need to be adjusted, if it is determined that the uniform resource locator is the uniform resource locator of the last display page; and a second determining unit, which is used for determining that the uniform resource locator binding to the original tab page needs to be adjusted, if it is determined that the uniform resource locator is not the uniform resource locator of the last display page.
100571 In some embodiments of the present invention, on the basis of the technical solution mentioned above, the uniform resource locator determining unit is configured to obtain a timestamp of a display page corresponding to the uniform resource locator bound to the original tab page; and determine, on the basis of the timestamp, whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page.
[0058] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the page switching device may be further configured to record the page status data of the current display page, when the original tab page is bound to the uniform resource locator of the current display page of the original tab page.
[0059] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the original tab page is bound to the uniform resource locator of the current display page of the original tab page through a JavaScript script.
[0060] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the page switching device may further comprise a binding relationship forming unit, which is used for storing the uniform resource locator corresponding to the tab page in the single page application in a browser memory in a form of an array in a sequence so as to form a binding relationship.
[0061] In some embodiments of the present invention, on the basis of the technical solution mentioned above, the page switching device may further comprise a binding relationship updating unit, which is configured for dynamically adjusting the uniform resource locator
11 corresponding to the current tab page in the array if the display content of the current tab page changes, and updating the binding relationship thereof.
[0062] The specific details of each module of the above page switching device have been described in detail in the corresponding page switching method, and therefore will not be described again herein.
[0063] It should be noted that although several modules or units of the page switching device are mentioned in the above detailed description, such division is not mandatory. In fact, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with some embodiments of the invention. In contrast, the features and functions of one of the modules or units described above may be further divided into multiple modules or units.
[0064] Further, in some exemplary embodiments of the present disclosure, an electronic device capable of implementing the above-described page switching method is also provided.
[0065] A person skilled in the art will appreciate that various aspects of the present invention can be implemented as a system, a method, or a program product. Accordingly, aspects of the present invention may be embodied in the form of a complete hardware embodiment, a complete software embodiment (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein a "circuit," a "module," or a "system."
[0066] An electronic device 500 in accordance with some embodiments of the present invention will be described below in reference to FIG. 5. The electronic device 500 shown in FIG. 5 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present invention.
[0067] As shown in FIG. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to, at least one processing unit 510, at least one storage unit 520, a bus 530 connecting the different system components (including the storage unit 520 and the processing unit 510), and a display unit 540.
[0068] The storage unit stores program code, which can be executed by the processing unit 510, such that the processing unit 510 performs the steps of various exemplary embodiments according to the present invention described in the "Description of the Embodiments" section of this description. For example, the processing unit 510 can perform step S110 as shown in FIG. 1,
12 determining, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page; step S120, binding the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted;
step S130, switching the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound the original tab page does not need adjustment; and step S140, displaying on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page.
[0069] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and/or a cache storage unit 5202, and can further include a read only storage unit (ROM) 5203.
[0070] The storage unit 520 can also include a program/utility 5204 having a set (at least one) of program modules 5205, such as but not limited to: an operating system, one or more applications, other program modules, and program data. Implementations of the network environment may be included in each or some of these examples.
[0071] The bus 530 may be representative as one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area bus using any of a variety of bus structures.
[0072] The electronic device 500 can also communicate with one or more external devices 570 (for example, a keyboard, a pointing device, a Bluetooth device, and the like), and can also communicate with one or more devices that enable a user to interact with the electronic device 500, and/or with any device (for example, a router, a modem, and the like) that enables the electronic device 500 to communicate with one or more other computing devices.
The communication can take place via an input/output (1/0) interface 550. Also, the electronic device 500 can communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) via a network adapter 560. As shown in the figure, the network adapter 560 can communicate with other modules of the electronic device 500 via a bus 530. It should be understood that although not shown in the figures, other hardware and/or software modules may also be utilized in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant
13 processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
[0073] Through the description of the above embodiments, a person skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software in combination with necessary hardware.
Therefore, the technical solutions according to some embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, and the like) or on a network. A number of instructions may be included to cause a computing device (which may be a personal computer, a server, a terminal device, a network device, or the like) to perform a page switching method in accordance with an embodiment of the present disclosure.
[0074] In some exemplary embodiments of the present disclosure, there is also provided a computer readable storage medium 600 having stored thereon a program product capable of implementing the above method according to the present invention. In some embodiments, certain aspects of the present invention may also be embodied in the form of a program product comprising program code for causing the program product to run on a terminal device when the terminal device performs the steps according to some exemplary embodiments of the present invention as described in the "Description of the Embodiments" section of the present description.
[0075] In reference to FIG. 6, a program product 600 for implementing the above page switching method according to an embodiment of the present invention is described. It can be a portable compact disk read only memory (CD-ROM) and includes program code, and can be run on a terminal device such as a personal computer. However, the program product of the present invention is not limited thereto, and in the present document, the readable storage medium may be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus or device.
[0076] The program product can employ any combination of one or more readable media.
The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media may include:
14 an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0077] The computer readable signal medium may include a data signal that is propagated in a base band or as part of a carrier, carrying readable program code. Such propagated data signals can take a variety of forms including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. The readable signal medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
[0078] The program code embodied on a readable medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
[0079] The program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++, etc., including conventional procedural programming language¨such as the "C" language or a similar programming language. The program code can be executed entirely on a user computing device, partially on a user device, as a stand-alone software package, partially on a remote computing device on a user computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to a user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (for example, a connection via the Internet as provided by an Internet service provider).
[0080] Moreover, the above-described drawings are merely illustrative of the processes included in the method according to some exemplary embodiments of the present invention, and are not intended to limit the present invention. It is easy to understand that the processing shown in the above figures does not indicate or limit the chronological order of these processes. In addition, it is also easy to understand that these processes may be performed, for example, synchronously or asynchronously in a plurality of modules.

[0081] Through the description of the above embodiments, a person skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software in combination with necessary hardware.
Therefore, the technical solutions according to some embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
A number of instructions may be included to cause a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform a method in accordance with some embodiments of the present disclosure.
100821 A person skilled in the art, after considering the description and practicing the invention disclosed herein, may obtain other embodiments of the present disclosure. The present application is intended to cover any variations, uses, or adaptations of the present disclosure, which are in accordance with the general principles of the disclosure and include common general knowledge or common technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as illustrative only. The true scope and spirit of the disclosure are defined by the claims of the present application.
[00831 It should be understood that the present disclosure is not limited to the specific structures that have been described above and illustrated in the drawings.
Various modifications and changes can be made without departing from the scope thereof. The scope of the disclosure is to be limited only by the appended claims.

Claims (10)

What is claimed is:
1. A page switching method applied to a single page web application comprising a plurality of tab pages, characterized in that the method comprises:
determining, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page;
binding the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted;
switching the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound the original tab page does not need adjustment;
displaying on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page.
2. The page switching method according to claim 1, characterized in that the determining whether it is necessary to adjust a uniform resource locator bound to the original tab page comprises:
determining whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page;
determining that the uniform resource locator binding to the original tab page does not need to be adjusted, if it is determined that the uniform resource locator is the uniform resource locator of the last display page;
determining that the uniform resource locator binding to the original tab page needs to be adjusted, if it is determined that the uniform resource locator is not the uniform resource locator of the last display page.
3. The page switching method according to claim 2, characterized in that the determining whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display, page comprises:

obtaining a timestamp of a display page corresponding to the uniform resource locator bound to the original tab page;
determining, on the basis of the timestamp, whether the uniform resource locator bound to the original tab page is a uniform resource locator of the last display page.
4. The page switching method according to claim 1, characterized in that the page switching method further comprises:
recording page status data of the current display page, when the original tab page is bound to the uniform resource locator of the current display page of the original tab page.
5. The page switching method according to any one of claims 1 to 4, characterized in that the binding of the original tab page to a uniform resource locator of a current display page of the original tab page comprises:
binding the original tab page to the uniform resource locator of the current display page of the original tab page through a JavaScript script.
6. The page switching method according to claim 5, characterized in that the page switching method further comprises:
storing the uniform resource locator corresponding to the tab page in the single page application in a browser memory in a form of an array in a sequence so as to form a binding relationship.
7. The page switching method according to claim 6, characterized in that the page switching method further comprises:
dynamically adjusting the uniform resource locator corresponding to the current tab page in the array if the display content of the current tab page changes, and updating the binding relationship thereof.
8. A page switching device, characterized in that the device comprises:

a determining unit, which is used for determining, before switching an original tab page to a target tab page, whether it is necessary to adjust a uniform resource locator bound to the original tab page;
a binding determining unit, which is used for binding the original tab page to a uniform resource locator of a current display page of the original tab page, if it is determined that the uniform resource locator bound to the original tab page needs to be adjusted;
a direct switching unit, which is used for switching the original tab page directly to the target tab page, if it is determined that the uniform resource locator bound the original tab page does not need adjustment;
a page recovering unit, which is used for displaying on the original tab page, upon receiving a switching instruction to jump back to the original tab page, a page corresponding to the uniform resource locator bound to the original tab page.
9. An electronic device, characterized in that the device comprises: a processor; and a memory having computer readable instructions stored thereon, the computer readable instructions being executed by the processor to implement the page switching method according to any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the page switching method according to any one of claims 1 to 7.
CA3058070A 2018-10-11 2019-10-09 Page switching method and device, electronic device and storage medium Pending CA3058070A1 (en)

Applications Claiming Priority (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
CN201811185131.6 2018-10-11

Publications (1)

Publication Number Publication Date
CA3058070A1 true CA3058070A1 (en) 2020-04-11

Family

ID=65545236

Family Applications (1)

Application Number Title Priority Date Filing Date
CA3058070A Pending CA3058070A1 (en) 2018-10-11 2019-10-09 Page switching method and device, electronic device and storage medium

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685663A (en) * 2020-12-21 2021-04-20 福建新大陆软件工程有限公司 SPA multi-page label management method based on VUE
CN114741149A (en) * 2022-04-15 2022-07-12 北京因数健康科技有限公司 Page switching method and device for single-page application, storage medium and electronic equipment

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752699B (en) * 2019-03-27 2024-04-09 北京沃东天骏信息技术有限公司 Page switching method, device and computer readable storage medium
CN111275517B (en) * 2020-01-14 2021-02-19 拉扎斯网络科技(上海)有限公司 Link information display method and device, storage medium and terminal
CN111596832B (en) * 2020-05-20 2022-04-08 北京搜狗智能科技有限公司 Page switching method and device
CN111625167B (en) * 2020-05-28 2021-08-24 上海哔哩哔哩科技有限公司 Page switching method and device and computer equipment
CN112100555B (en) * 2020-08-18 2024-06-25 北京思特奇信息技术股份有限公司 Method and system for realizing single-page application in native HTML5 page
CN112100476A (en) * 2020-09-01 2020-12-18 武汉华盛美业科技有限公司 Dynamic data acquisition method and system for single-page multi-state object
CN112632920B (en) * 2020-11-16 2021-11-23 腾讯科技(深圳)有限公司 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

Family Cites Families (5)

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

Cited By (4)

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

Also Published As

Publication number Publication date
CN109446459B (en) 2021-08-27
CN109446459A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CA3058070A1 (en) Page switching method and device, electronic device and storage medium
US9235451B2 (en) Browser kernel switching method
US8612418B2 (en) Mobile web browser for pre-loading web pages
US20230072428A1 (en) Method, Apparatus, and System for Pushing Application Program, and Device
US10198410B2 (en) Method, device and mobile terminal for restoring page
US9436772B2 (en) Appending a uniform resource identifier (URI) fragment identifier to a uniform resource locator (URL)
US20120011430A1 (en) Infinite Scrolling
US11151212B2 (en) Information analysis method, electronic device, and storage medium
TW201723897A (en) Method, device, and system for displaying information associated with a web page
CN110717030A (en) Method and equipment for presenting detail pages of electronic books
CN106528587B (en) Page display method and device in composite webpage system
KR20110011002A (en) Method and apparatus for web browsing
CN103530160A (en) Page loading method and device
CN103746782A (en) Method and apparatus for obtaining feedback information of application
CN104423991A (en) Webpage loading and webpage data providing method and device of mobile terminal
CN114741149B (en) Page switching method and device for single-page application, storage medium and electronic equipment
KR101462114B1 (en) System, method and computer readable recording medium for synchronous script lazy loading
US20090164903A1 (en) Systems, methods and computer program products for a dynamic display of saved bookmarks based on browsing activity
CN107391534B (en) Page display method, page file return method, page display device, page file return device and computer storage medium
EP3435253A1 (en) Method and device for page display
CN107480218B (en) Webpage display method and device, electronic equipment and storage medium
JP2010079796A (en) Proxy server, and method and program for controlling same
EP2998885A1 (en) Method and device for information search
JP6464031B2 (en) Electronic device, web page display method, and web page display program
US10417296B1 (en) Intelligent bookmarking with URL modification

Legal Events

Date Code Title Description
EEER Examination request

Effective date: 20220916

EEER Examination request

Effective date: 20220916

EEER Examination request

Effective date: 20220916

EEER Examination request

Effective date: 20220916

EEER Examination request

Effective date: 20220916

EEER Examination request

Effective date: 20220916