CN108984641A - A kind of method for page jump based on WEB terminal - Google Patents

A kind of method for page jump based on WEB terminal Download PDF

Info

Publication number
CN108984641A
CN108984641A CN201810650209.0A CN201810650209A CN108984641A CN 108984641 A CN108984641 A CN 108984641A CN 201810650209 A CN201810650209 A CN 201810650209A CN 108984641 A CN108984641 A CN 108984641A
Authority
CN
China
Prior art keywords
page
application program
client side
web client
web
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
CN201810650209.0A
Other languages
Chinese (zh)
Inventor
蔡剑研
邵隆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Linewell Software Co Ltd
Linewell Software Co Ltd
Original Assignee
Fujian Linewell Software 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 Fujian Linewell Software Co Ltd filed Critical Fujian Linewell Software Co Ltd
Priority to CN201810650209.0A priority Critical patent/CN108984641A/en
Publication of CN108984641A publication Critical patent/CN108984641A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method for page jump based on WEB terminal, for improve to page jump can maintenance efficiency, jump problem suitable for handle complicated business.The present invention provides a kind of method for page jump based on WEB terminal, it include: the page being accessed in WEB client side detection application program, and the corresponding local profile of the application program is loaded into caching, the local profile is used to configure all pages in the application program, and the application program is mounted in the WEB client side;The WEB client side reads the local profile from the caching;The WEB client side parses the local profile, obtains page jump information;The WEB client side controls the application program according to the page jump information and carries out page jumping operation.

Description

A kind of method for page jump based on WEB terminal
Technical field
The present invention relates to.A kind of technical field, and in particular to method for page jump based on WEB terminal.
Background technique
In recent years, with the continuous development of internet, various Internet technologies are constantly presented, are updated, and are just promptly changed Become our daily exchanges and life style.Network (WEB) is used in order to facilitate user, network-side is applied with class application program The form of (Application, APP) appears in our PC (Personal Computer, PC), mobile phone browser In.
In order to enrich the function of website, the page amount of website is increasing, and page jump is weight in WEB terminal application control The ring wanted is entire WEB terminal using a clearly logic line is provided, in the prior art mainly by jumping function (location.href) and return browsed the previous page (such as go (- 1)) default behavior processing page jump ask Topic.
But the above-mentioned prior art at least has the following technical problems: when page address is replaced, code maintenance needs weight All-links position is write, maintenance efficiency is low.In addition, can not be customized in the page when jumping and retracting, it is especially complicated in processing There is low-response when jumping problem in business.
Summary of the invention
The purpose of the present invention is to provide a kind of method for page jump based on WEB terminal, for improving to page jump Can maintenance efficiency, jump problem suitable for handle complicated business.
In order to achieve the above object, the present invention uses such following technical solution:
The present invention provides a kind of method for page jump based on WEB terminal, comprising:
The page being accessed in WEB client side detection application program, and the corresponding local of the application program is matched It sets file to be loaded into caching, the local profile is used to configure all pages in the application program, the application Program is mounted in the WEB client side;
The WEB client side reads the local profile from the caching;
The WEB client side parses the local profile, obtains page jump information;
The WEB client side controls the application program according to the page jump information and carries out page jumping operation.
After adopting the above technical scheme, technical solution provided by the invention will have the following advantages:
The page that is being accessed in WEB client side detection application program, and text is locally configured by application program is corresponding Part is loaded into caching, and local profile is used to configure all pages in application program, and application program is mounted on WEB client In end, WEB client side reads local profile from caching, and WEB client side parses local profile, obtains page jump Information, WEB client side control application program according to page jump information and carry out page jumping operation.Pass through in the embodiment of the present invention By WEB terminal application local profile reading be loaded into caching, using the page jump information in local profile come The page jump for realizing WEB terminal application, directly realizes page by location.href combination address in the prior art to replace Face jumps mode, it is ensured that reduces the coupling of page jump logic during page development, mitigates the page in later maintenance and jump Turn the maintenance workload of logical gate, improve to page jump can maintenance efficiency, asked suitable for handling jumping for complicated business Topic.
Detailed description of the invention
Fig. 1 provides a kind of process blocks schematic diagram of method for page jump based on WEB terminal for the embodiment of the present invention;
Fig. 2 provides the flow diagram in WEB terminal application page jump method for the embodiment of the present invention;
Fig. 3 is the flow diagram for carrying out page jump in the embodiment of the present invention according to page jump information.
Specific embodiment
The embodiment of the invention provides a kind of method for page jump based on WEB terminal, for improve to page jump can Maintenance efficiency jumps problem suitable for handle complicated business.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, this field Technical staff's every other embodiment obtained, shall fall within the protection scope of the present invention.
Term " includes " in description and claims of this specification and above-mentioned attached drawing and " having " and they Any deformation, it is intended that covering non-exclusive includes so as to a series of process, method comprising units, system, product or to set It is standby to be not necessarily limited to those units, but be not clearly listed or these process, methods, product or equipment are consolidated The other units having.
It is described in detail separately below.
The present invention is based on one embodiment of the method for page jump of WEB terminal, the page that can be applied to WEB terminal shows scene In.WEB client side also refers to the WEB page processing front end for being mounted on terminal in the embodiment of the present invention.It is straight in the prior art That connected location.href combination address to realize the page jumps mode, when needing repeatedly replacement there are page address The low problem of maintenance efficiency, and it is not suitable for complicated business.It is a set of right to be integrated into the embodiment of the present invention using front-end technology The management method of the page, to can quickly be jumped when realizing page jump.The embodiment of the present invention provides the page of a WEB terminal Jump method come realize the page quickly jump problem, to improve the fluency and user experience that use the product by the user.
Refering to Figure 1, the method for page jump of WEB terminal provided by the invention, may include steps of:
101, the page being accessed in WEB client side detection application program, and the corresponding local of application program is matched It sets file to be loaded into caching, local profile is used to configure all pages in application program, and application program is mounted on WEB In client.
In embodiments of the present invention, application program is installed, such as the application program can be WEB net in WEB client side Page search engine or WEB game APP etc..In WEB client side real-time detection application program which or which page by with Family access.When having detected that the page is accessed, the corresponding local profile of application program is loaded into caching.Wherein, Local profile is used to configure all pages in application program, i.e., the page that user can be shown in application program all may be used It is completed with being configured by local profile.
In the embodiment of the present invention, the caching of WEB client side also refers to the dedicated memory of WEB client side, or refers to Be free address in the memory of WEB client side.Include the configuration information of the page in local profile, this is locally configured File is loaded into caching, is also convenient for user and is needed to use the local profile when page switching.
In some embodiments of the invention, local profile, comprising: the corresponding mark of each page of application program Accord with configuration information, the corresponding page-describing configuration information of each page, the corresponding uniform resource locator of each page (Uniform Resource Locator, URL) path configuration information.
Wherein, identifier configurations information is used to indicate the identifier configurations of each page, and page-describing configuration information is used for Indicate the page-describing configuration of each page, URL path configuration information is used to indicate the URL address configuration of each page.
In some embodiments of the invention, the configuration information of local profile storage using JAVASCRIPT format or Person's JSON format.
It not limiting, the configuration information of local profile storage only needs to use unified data format, Practical application can use JAVASCRIPT format or JSON format according to scene.
In some embodiments of the invention, the page being accessed in step 101WEB client detection application program Before, method provided in an embodiment of the present invention further include:
The installation file packet of WEB client side acquisition application program:
WEB client side installs application program using installation file packet in WEB client side;And
WEB client side extracts the configuration information of application program from installation file packet, and according to the configuration of application program Information generates the corresponding local profile of application program.
Wherein, application program is installed in WEB client side by installation file packet in WEB client side, in installation file packet All start files configured with application program, when the application is installed can be from installation file packet in the embodiment of the present invention In extract the configuration information of application program, it is corresponding that application program can be generated in the configuration information based on the application program extracted Local profile.For all application programs in WEB client side, just directly generated when the application program is installed Local profile, consequently facilitating extracting the local profile when subsequent page jumps.
102, WEB client side reads local profile from caching.
In embodiments of the present invention, when running application program in WEB client side, WEB client side has detected that the page is interviewed When asking, the available local profile that application program is read from caching of WEB client side, which is to answer With the configuration information record file of program, local profile can also referred to as " configuration file " in subsequent embodiment.
103, WEB client side parses local profile, obtains page jump information.
In embodiments of the present invention, WEB client side is solved from local profile after reading out local profile The page jump information of target pages is precipitated.Wherein, page jump information is according to local profile page object generated The jump information in face can realize the page jump of application program by page jump information.
In some embodiments of the invention, page jump information, comprising: the corresponding mark of the target pages for needing to jump to Know symbol, the corresponding page-describing information of target pages and the corresponding address URL of target pages.
Wherein, identifier indicates the unique value of current page, not reproducible.Page-describing information is current page summary. The file path of the address page URL expression corresponding page resource.
104, WEB client side controls application program according to page jump information and carries out page jumping operation.
In embodiments of the present invention, WEB client side can be believed after generating page jump information according to the page jump Documented page jump mode completes page jumping operation in breath.
In some embodiments of the invention, step 104WEB client according to page jump information control application program into Row page jumping operation, comprising:
WEB client side determines the identifier for needing the target pages jumped to according to page jump information;
WEB client side reads target pages pair according to the corresponding target pages of page-describing information searching identifier The address URL answered;
The current page of WEB client side control application program jumps to the corresponding address URL of target pages.
Wherein, WEB client side can be based on page jump information when carrying out page jumping operation in the embodiment of the present invention In entrained target pages identifier, page-describing information and the corresponding address URL of target pages.In the embodiment of the present invention The Universal page that offer can be applied to WEB terminal application jumps configuration method, has maintainability height, using unified configuration crossing, envelope Dress jump with rollback event, the identifier of target pages is directly obtained by page jump information, without passing through industry again Logical layer be engaged in get target pages.
It is high in order to solve development cost present in the page jump mode of WEB terminal application in the prior art, it is not easy to The technical issues of maintenance of WEB terminal application, processing complicated business jumps, present embodiments provides a kind of page of WEB terminal application Jump method, in order to the maintenance of WEB terminal application.To achieve the goals above, the present invention provides a kind of applied to WEB terminal application Page configuration jumps management method, by loading on WEB terminal application Javascript configuration file in caching, utilizes configuration text Page jump information in part realizes that WEB page jumps, replacing in the prior art by directly by location and ground Location need to only be updated configuration file, when updating without entering each business come the page jump mode realized Logical layer updates, consequently facilitating the maintenance of WEB terminal application, and reduce the use cost of user.
Referring to fig. 2, the method for page jump of the WEB terminal application of the embodiment of the present invention, comprising:
Step 1, the local profile for reading the correspondence WEB terminal application being loaded into caching.
Wherein, local profile can be the data description clear in structure such as Javascript format or JSON format Format introduces caching when accessing the WEB terminal page for the local profile of each WEB terminal application it is necessary to load In
Specifically, step 1 local profile includes:
1.1, each target pages have a unique identifier;
1.2, the corresponding value of identifier has corresponding page-describing and the specific address URL of the page.
Step 2, parsing obtain the page jump information in the local profile.Wherein, in local profile The content and structure that page jump information includes are as follows:
" identifier ": { name: " description of the page 1 ", url: " page address " },
" identifier ": { name: " description of the page 2 ", url: " page address " }.
For example, above-mentioned identifier indicates the unique value of current page, it is not reproducible.Page-describing refers to current page Face summary.The file path of page address expression corresponding page resource.
Step 3, according to the page jump information, control the operation that the WEB terminal application carries out page jump.
Referring in particular to Fig. 3, which includes:
3.1. the identifier for needing the target pages jumped is specified;
3.2. the corresponding target pages of the identifier are searched, and read the address target pages URL;
3.3. it controls the WEB terminal application program and jumps to the target pages.
A kind of page configuration based on WEB terminal application provided by the invention jumps management method, passes through apply WEB terminal Configuration file reading is loaded into caching, realizes that the page of WEB terminal application is jumped using the page jump information in configuration file Turn, come replace directly realize the page by location.href combination address in the prior art jump mode, it is ensured that in page The coupling of page jump logic is reduced in the development process of face, mitigates the maintenance work of page jump logical gate in later maintenance Amount.
By the aforementioned illustration to the embodiment of the present invention it is found that being interviewed in WEB client side detection application program The page asked, and the corresponding local profile of application program is loaded into caching, local profile is for configuring application All pages in program, application program are mounted in WEB client side, and WEB client side reads local profile from caching, WEB client side parses local profile, obtains page jump information, and WEB client side is controlled according to page jump information and applied Program carries out page jumping operation.It is loaded into the embodiment of the present invention by the reading of the local profile of applying WEB terminal slow In depositing, the page jump of WEB terminal application is realized, using the page jump information in local profile to replace the prior art In directly realize the page by location.href combination address jump mode, it is ensured that reduced during page development The coupling of page jump logic, mitigates the maintenance workload of page jump logical gate in later maintenance, improves to page jump Can maintenance efficiency, jump problem suitable for handle complicated business.
In addition it should be noted that, the apparatus embodiments described above are merely exemplary, wherein described as separation The unit of part description may or may not be physically separated, component shown as a unit can be or It can not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to reality Border needs to select some or all of the modules therein to achieve the purpose of the solution of this embodiment.In addition, provided by the invention In Installation practice attached drawing, the connection relationship between module indicates there is communication connection between them, specifically can be implemented as one Item or a plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can It understands and implements.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow Help software that the mode of required common hardware is added to realize, naturally it is also possible to by specialized hardware include specific integrated circuit, specially It is realized with CPU, private memory, special components and parts etc..Under normal circumstances, all functions of being completed by computer program are ok It is easily realized with corresponding hardware, moreover, being used to realize that the specific hardware structure of same function is also possible to a variety of more Sample, such as analog circuit, digital circuit or special circuit etc..But software program is real in situations more for the purpose of the present invention It is now more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words makes the prior art The part of contribution can be embodied in the form of software products, which is stored in the storage medium that can be read In, such as the floppy disk of computer, USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), magnetic or disk etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
In conclusion the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to upper Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to upper Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (6)

1. a kind of method for page jump based on WEB terminal characterized by comprising
The page that is being accessed in WEB client side detection application program, and text is locally configured by the application program is corresponding Part is loaded into caching, and the local profile is used to configure all pages in the application program, the application program It is mounted in the WEB client side;
The WEB client side reads the local profile from the caching;
The WEB client side parses the local profile, obtains page jump information;
The WEB client side controls the application program according to the page jump information and carries out page jumping operation.
2. a kind of method for page jump based on WEB terminal according to claim 1, which is characterized in that described to be locally configured File, comprising: the corresponding identifier configurations information of each page of the application program, the corresponding page-describing of each page are matched Confidence breath, the corresponding uniform resource position mark URL path configuration information of each page.
3. a kind of method for page jump based on WEB terminal according to claim 1, which is characterized in that the page jump Information, comprising: the corresponding page-describing information of the corresponding identifier of the target pages for needing to jump to, the target pages and institute State the corresponding address URL of target pages.
4. a kind of method for page jump based on WEB terminal according to claim 3, which is characterized in that the WEB client side The application program, which is controlled, according to the page jump information carries out page jumping operation, comprising:
The WEB client side determines the identifier for needing the target pages jumped to according to the page jump information;
The WEB client side corresponding target pages of identifier according to the page-describing information searching, and read institute State the corresponding address URL of target pages;
The current page that the WEB client side controls the application program jumps to the corresponding address URL of the target pages.
5. a kind of method for page jump based on WEB terminal according to any one of claim 1 to 4, which is characterized in that institute The configuration information of local profile storage is stated using JAVASCRIPT format or JSON format.
6. a kind of method for page jump based on WEB terminal according to any one of claim 1 to 4, which is characterized in that institute Before stating the page being accessed in WEB client side detection application program, the method also includes:
The WEB client side obtains the installation file packet of the application program:
The WEB client side installs the application program using the installation file packet in the WEB client side;And
The WEB client side extracts the configuration information of the application program from the installation file packet, and is answered according to described The corresponding local profile of the application program is generated with the configuration information of program.
CN201810650209.0A 2018-06-22 2018-06-22 A kind of method for page jump based on WEB terminal Pending CN108984641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810650209.0A CN108984641A (en) 2018-06-22 2018-06-22 A kind of method for page jump based on WEB terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810650209.0A CN108984641A (en) 2018-06-22 2018-06-22 A kind of method for page jump based on WEB terminal

Publications (1)

Publication Number Publication Date
CN108984641A true CN108984641A (en) 2018-12-11

Family

ID=64538091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810650209.0A Pending CN108984641A (en) 2018-06-22 2018-06-22 A kind of method for page jump based on WEB terminal

Country Status (1)

Country Link
CN (1) CN108984641A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704102A (en) * 2019-09-12 2020-01-17 北京字节跳动网络技术有限公司 Page jump protocol interface document generation method, system, medium and electronic device
CN111611507A (en) * 2020-05-27 2020-09-01 掌阅科技股份有限公司 Modularization-based in-application page jump method and computing device
CN112069435A (en) * 2020-07-27 2020-12-11 北京思特奇信息技术股份有限公司 Method and system for switching nginx configuration files through scripts
CN117130692A (en) * 2023-10-23 2023-11-28 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090241016A1 (en) * 2008-03-24 2009-09-24 Fujitsu Limited Display control apparatus, display control method and computer product
CN106547569A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of page access method and apparatus in application
CN107133053A (en) * 2017-06-05 2017-09-05 上海鋆创信息技术有限公司 Method for page jump and device, the storage medium and terminal of a kind of application program
CN107589949A (en) * 2016-07-07 2018-01-16 北京京东尚科信息技术有限公司 The distribution of application program installation kit and installation method and corresponding intrument
CN107704499A (en) * 2017-08-28 2018-02-16 深圳市华傲数据技术有限公司 A kind of page jump control method and device of application program
CN108052334A (en) * 2017-12-22 2018-05-18 平安养老保险股份有限公司 Method for page jump, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090241016A1 (en) * 2008-03-24 2009-09-24 Fujitsu Limited Display control apparatus, display control method and computer product
CN107589949A (en) * 2016-07-07 2018-01-16 北京京东尚科信息技术有限公司 The distribution of application program installation kit and installation method and corresponding intrument
CN106547569A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of page access method and apparatus in application
CN107133053A (en) * 2017-06-05 2017-09-05 上海鋆创信息技术有限公司 Method for page jump and device, the storage medium and terminal of a kind of application program
CN107704499A (en) * 2017-08-28 2018-02-16 深圳市华傲数据技术有限公司 A kind of page jump control method and device of application program
CN108052334A (en) * 2017-12-22 2018-05-18 平安养老保险股份有限公司 Method for page jump, device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704102A (en) * 2019-09-12 2020-01-17 北京字节跳动网络技术有限公司 Page jump protocol interface document generation method, system, medium and electronic device
CN111611507A (en) * 2020-05-27 2020-09-01 掌阅科技股份有限公司 Modularization-based in-application page jump method and computing device
CN112069435A (en) * 2020-07-27 2020-12-11 北京思特奇信息技术股份有限公司 Method and system for switching nginx configuration files through scripts
CN117130692A (en) * 2023-10-23 2023-11-28 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium
CN117130692B (en) * 2023-10-23 2024-01-23 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108984641A (en) A kind of method for page jump based on WEB terminal
US8645453B2 (en) Method and system of processing cookies across domains
CN104021172A (en) Advertisement filtering method and advertisement filtering device
EP3491544A1 (en) Web page display systems and methods
CN107958016A (en) Function pages method for customizing and application server
CN104866512A (en) Method, device and system for extracting webpage content
CN102663062A (en) Method and device for processing invalid links in search result
CN107807937B (en) Website SEO processing method, device and system
US20150302110A1 (en) Decoupling front end and back end pages using tags
CN111125598A (en) Intelligent data query method, device, equipment and storage medium
CN109359263B (en) User behavior feature extraction method and system
CN110417873B (en) Network information extraction system for realizing recording webpage interactive operation
WO2014153457A1 (en) Merging web page style addresses
CN108681547A (en) A kind of web content converting method and device based on small routine
CN103530429A (en) Webpage content extracting method
CN105812196A (en) WebShell detection method and electronic device
CN108763500A (en) Voice-based Web browser method, device, equipment and storage medium
CN103036910B (en) A kind of user's web access Behavior-Based control method and device
CN106202368B (en) Preloading method and device
CN111538645B (en) Data visualization method and related equipment
CN104615597A (en) Method, device and system for clearing cache file in browser
CN104166545B (en) The sniff method and device of a kind of web page resources
CN103761257A (en) Webpage handling method and system based on mobile browser
CN107870975A (en) The crawling method and application server of network picture
CN110532455A (en) A kind of Web page picture acquisition methods and system based on Chrome browser

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211

RJ01 Rejection of invention patent application after publication