CN112579934A - Method and equipment for skipping and updating view of website application - Google Patents
Method and equipment for skipping and updating view of website application Download PDFInfo
- Publication number
- CN112579934A CN112579934A CN202110146592.8A CN202110146592A CN112579934A CN 112579934 A CN112579934 A CN 112579934A CN 202110146592 A CN202110146592 A CN 202110146592A CN 112579934 A CN112579934 A CN 112579934A
- Authority
- CN
- China
- Prior art keywords
- resource
- resource locator
- locator
- routing
- route
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 239000011159 matrix material Substances 0.000 claims abstract description 14
- 230000006870 function Effects 0.000 claims description 9
- 238000009877 rendering Methods 0.000 claims description 6
- 238000011161 development Methods 0.000 claims description 4
- 238000004891 communication Methods 0.000 claims description 3
- 230000009191 jumping Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2393—Updating materialised views
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to a method for skipping and updating a view of a website application, which associates and binds a plurality of groups of resource locators and resources in advance and forms a resource locator matrix. When a resource locator input in an address bar of a website application program is received, the position of the resource locator in a resource locator matrix is determined according to a routing name space of the resource locator, resources related and bound by the resource locator are obtained, the resources related and bound by the resource locator are rendered layer by layer, and routing control and skipping of multiple view contents on a website page are achieved.
Description
Technical Field
The present application relates to the field of front-end routing technologies, and in particular, to a method and an apparatus for web application skip and view update.
Background
At present, the front-end routing matches the required routing resources with a single uniform resource locator, and each resource locator is matched with a group of resources, namely, a resource locator and a website page are in a one-to-one correspondence relationship. When complex interface requirements appear in software services, the situation that the complex requirements cannot be met can occur in the one-to-one corresponding resource matching mode of the current front-end routing. Such as: multiple groups of view resources are required to be displayed simultaneously on the same interface, each group of views needs to be skipped and updated independently, and the uniform resource locator used in the current front-end routing design can only express the state of one group of resources, so that the multi-resource matching requirement under a complex scene cannot be met.
Disclosure of Invention
In order to overcome the problem that complex requirements cannot be met in a resource matching mode of front-end routing one-to-one correspondence in the related art at least to a certain extent, the application provides a method and equipment for web application skip and view update.
The scheme of the application is as follows:
according to a first aspect of the embodiments of the present application, a method for web application jump and view update is provided, including:
when a resource locator input in an address bar of a website application program is received, determining the position of the resource locator in a resource locator matrix according to the routing name space of the resource locator; the resource locator matrix comprises a plurality of groups of resource locators and resources which are associated and bound in advance;
and acquiring the resources associated and bound by the resource locator, and rendering the resources associated and bound by the resource locator layer by layer.
Preferably, in an implementation manner of the present application, the method further includes:
and performing template-type routing configuration on the resource locator and the resource component of the resource according to the routing configuration label, so that the resource locator can be matched with the resource which is subjected to the associated binding in the template-type configuration.
Preferably, in an implementation manner of the present application, the method further includes:
and based on the resource locator and the resource component of the resource, configuring nested sub-routes in a template mode, so that the resource component of the resource can recursively configure the sub-routes through the route configuration tags.
Preferably, in an implementation manner of the present application, the method further includes:
and splitting a resource component of the resource bound by the resource locator in a manner of dynamically introducing the resource based on the associated binding of the resource locator and the resource.
Preferably, in an implementation manner of the present application, the method further includes:
and describing a resource path by using a path locator on the route configuration label, configuring a regular expression in the resource path, and expressing the path locator by the regular expression.
Preferably, in an implementation manner of the present application, the method further includes:
and inserting a corresponding life cycle function into the route configuration label, and performing logic control on the route before and after the route jump.
Preferably, in an implementation manner of the present application, the method further includes:
analyzing the current resource path based on the association binding of the resource locator and the resource, and converting the resource locator into a designated abstract syntax tree;
and converting the specific abstract syntax tree into the resource locator based on the binding relation between the configuration resource locator and the resource.
Preferably, in an implementation manner of the present application, the method further includes:
and performing instruction type navigation skip through the routing configuration label based on the association binding of the resource locator and the resource.
Preferably, in an implementation manner of the present application, the method further includes:
and based on the association binding of the resource locator and the resource, carrying out programmed navigation skip through the development kit.
According to a second aspect of the embodiments of the present application, there is provided an apparatus for website application jump and view update, including:
a processor and a memory;
the processor and the memory are connected through a communication bus:
the processor is used for calling and executing the program stored in the memory;
the memory for storing a program for at least performing a method of web site application hopping and view updating as described in any one of the above.
The technical scheme provided by the application can comprise the following beneficial effects: according to the method for website application skip and view update, multiple groups of resource locators and resources are associated and bound in advance to form a resource locator matrix. When a resource locator input in an address bar of a website application program is received, the position of the resource locator in a resource locator matrix is determined according to a routing name space of the resource locator, resources related and bound by the resource locator are obtained, the resources related and bound by the resource locator are rendered layer by layer, and routing control and skipping of multiple view contents on a website page are achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flowchart illustrating a method for website application jump and view update according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for web site application jump and view update according to an embodiment of the present application.
Reference numerals: a processor-21; a memory-22.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
A method for web site application skip and view update, referring to fig. 1, includes:
s11: when a resource locator input in an address bar of a website application program is received, determining the position of the resource locator in a resource locator matrix according to the routing name space of the resource locator; the resource locator matrix comprises a plurality of groups of resource locators and resources which are associated and bound in advance;
s12: and acquiring the resources associated and bound by the resource locator, and rendering the resources associated and bound by the resource locator layer by layer.
In the embodiment, the route is configured in a self-defined manner, and then the route instance is registered into a corresponding development framework;
configuring a routing component based on the resource locator matrix, and determining the relation between the resource locator matrix and the view component resource;
the resource locator entered in the address bar of the received web application may be resource locator information for a plurality of sub-routes entered by the user as desired.
Further, the method further comprises:
and performing template-type routing configuration on the resource locator and the resource component of the resource according to the routing configuration label, so that the resource locator can be matched with the resource which is subjected to the associated binding in the template-type configuration.
Specifically, for a complex multi-view scenario, the present embodiment further includes a route configuration:
placing a plurality of route configuration labels on the components at the same level, and marking the route configuration labels by using different route naming spaces;
each routing label has its own resource locator configuration, which will be passed into the path attribute;
nesting component resources within the routing configuration label to complete the relationship binding of the resource locator and the resource.
The method for website application jumping and view updating in some embodiments further includes:
and based on the resource locator and the resource component of the resource, configuring nested sub-routes in a template mode, so that the resource component of the resource can recursively configure the sub-routes through the route configuration tags.
The method for website application jumping and view updating in some embodiments further includes:
and splitting a resource component of the resource bound by the resource locator in a manner of dynamically introducing the resource based on the associated binding of the resource locator and the resource.
The method for website application jumping and view updating in some embodiments further includes:
and describing a resource path by using a path locator on the route configuration label, configuring a regular expression in the resource path, and expressing the path locator by the regular expression.
The method for website application jumping and view updating in some embodiments further includes:
and inserting a corresponding life cycle function into the route configuration label, and performing logic control on the route before and after the route jump.
The method for website application jumping and view updating in some embodiments further includes:
analyzing the current resource path based on the association binding of the resource locator and the resource, and converting the resource locator into a designated abstract syntax tree;
and converting the specific abstract syntax tree into the resource locator based on the binding relation between the configuration resource locator and the resource.
The method for website application jumping and view updating in some embodiments further includes:
and performing instruction type navigation skip through the routing configuration label based on the association binding of the resource locator and the resource.
The method for website application jumping and view updating in some embodiments further includes:
and based on the association binding of the resource locator and the resource, carrying out programmed navigation skip through the development kit.
In order to solve the problem that the prior art cannot meet the conditions of multiple routing and dynamic routing, the method for web application hopping and view updating in the embodiment is integrated, and the method for web application hopping and view updating is preferably provided, so that stronger web application routing capability can be provided. The system has the capability of sub-routing and named routing, and can simultaneously and independently control and jump the routing of a plurality of view contents on a page; and the method has the capability of dynamic routing resource allocation, and can dynamically perform routing matching according to the state of the component. Has strong functions and flexibility.
The website application constructed according to the website application skip and view update method in the application has the following routing capabilities, including:
configuring the designated identifier and the application resource in a correlation mode, and rendering the view interface of the application layer by layer when the identifier is matched by the routing component;
further, after the current layer view resource is rendered, the subsequent identifier is continuously matched with the routing component of the next layer for rendering;
further, if the named sub-route exists, the named sub-route can be matched with the named route component of the current view layer, so that the multi-routing capability and effect are achieved;
based on the configured route label component, a tangent plane function of a life cycle can be used for logically injecting before and after route skipping;
further, when the lifecycle function is used for execution, specific information and context content of the current route can be acquired;
the method for skipping and updating the view of the website application can meet the functional requirements of multiple routes, can allocate the sub-route namespaces according to requirements, and can control rendering of multiple resources in a single view.
In summary, the present embodiment relates to a method for web application jump and view update, including: registering the routing instance of the software into a corresponding framework; nesting and configuring corresponding component resources by using the routing components; expressing a group of path locators by a regular expression using a path configuration supporting the regular expression; the logic control can be carried out on route skipping uniformly facing the section by using section programming supporting a life cycle hook mode; the resource locator described by the uniform locator of the support matrix resource can enhance the expression capability of the routing parameter, and a plurality of routing segments can have independent routing parameters; using a route label representation mode supporting multiple route outlets to independently render resources, wherein multiple route outlet labels can simultaneously render multiple groups of view resources; the label mode supporting decentralized configuration is used, and the label mode can dynamically change the corresponding relation between the configuration and the resource through the internal state of the component; the routing configuration is enhanced in expressive ability and dynamic ability by using the matrix resource uniform locator and the decentralized tag.
An apparatus for website application jumping and view updating, referring to fig. 2, includes:
a processor 21 and a memory 22;
the processor 21 is connected to the memory 22 by a communication bus:
the processor 21 is configured to call and execute a program stored in the memory 22;
a memory for storing a program for at least performing a method of web site application hopping and view updating as described in any of the above embodiments.
The embodiment of the present invention may further include a storage medium, where the storage medium stores a computer program, and when the computer program is executed by a processor, the storage medium implements the steps of the above-mentioned method for skipping and updating a view of a website application.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (10)
1. A method for web site application skip and view update is characterized by comprising the following steps:
when a resource locator input in an address bar of a website application program is received, determining the position of the resource locator in a resource locator matrix according to the routing name space of the resource locator; the resource locator matrix comprises a plurality of groups of resource locators and resources which are associated and bound in advance;
and acquiring the resources associated and bound by the resource locator, and rendering the resources associated and bound by the resource locator layer by layer.
2. The method of claim 1, further comprising:
and performing template-type routing configuration on the resource locator and the resource component of the resource according to the routing configuration label, so that the resource locator can be matched with the resource which is subjected to the associated binding in the template-type configuration.
3. The method of claim 2, further comprising:
and based on the resource locator and the resource component of the resource, configuring nested sub-routes in a template mode, so that the resource component of the resource can recursively configure the sub-routes through the route configuration tags.
4. The method of claim 2, further comprising:
and splitting a resource component of the resource bound by the resource locator in a manner of dynamically introducing the resource based on the associated binding of the resource locator and the resource.
5. The method of claim 3, further comprising:
and describing a resource path by using a path locator on the route configuration label, configuring a regular expression in the resource path, and expressing the path locator by the regular expression.
6. The method of claim 2, further comprising:
and inserting a corresponding life cycle function into the route configuration label, and performing logic control on the route before and after the route jump.
7. The method of claim 5, further comprising:
analyzing the current resource path based on the association binding of the resource locator and the resource, and converting the resource locator into a designated abstract syntax tree;
and converting the specific abstract syntax tree into the resource locator based on the binding relation between the configuration resource locator and the resource.
8. The method of claim 2, further comprising:
and performing instruction type navigation skip through the routing configuration label based on the association binding of the resource locator and the resource.
9. The method of claim 2, further comprising:
and based on the association binding of the resource locator and the resource, carrying out programmed navigation skip through the development kit.
10. An apparatus for web site application jump and view update, comprising:
a processor and a memory;
the processor and the memory are connected through a communication bus:
the processor is used for calling and executing the program stored in the memory;
the memory for storing a program for performing at least a method of web site application hopping and view updating as claimed in any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110146592.8A CN112579934A (en) | 2021-02-03 | 2021-02-03 | Method and equipment for skipping and updating view of website application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110146592.8A CN112579934A (en) | 2021-02-03 | 2021-02-03 | Method and equipment for skipping and updating view of website application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112579934A true CN112579934A (en) | 2021-03-30 |
Family
ID=75145363
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110146592.8A Pending CN112579934A (en) | 2021-02-03 | 2021-02-03 | Method and equipment for skipping and updating view of website application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112579934A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150161152A1 (en) * | 2013-12-10 | 2015-06-11 | At&T Intellectual Property I, L.P. | Content aggregator for synchronous content distribution |
CN104798072A (en) * | 2012-09-25 | 2015-07-22 | 欧普拉软件公司 | Information management and display in web browsers |
CN108255870A (en) * | 2016-12-29 | 2018-07-06 | 中国移动通信集团浙江有限公司 | A kind of website data crawling method and device |
CN109446459A (en) * | 2018-10-11 | 2019-03-08 | 北京三快在线科技有限公司 | Page switching method and device, electronic equipment and storage medium |
CN109933737A (en) * | 2019-03-22 | 2019-06-25 | 中国工商银行股份有限公司 | Webpage processing method, apparatus and system |
-
2021
- 2021-02-03 CN CN202110146592.8A patent/CN112579934A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104798072A (en) * | 2012-09-25 | 2015-07-22 | 欧普拉软件公司 | Information management and display in web browsers |
US20150161152A1 (en) * | 2013-12-10 | 2015-06-11 | At&T Intellectual Property I, L.P. | Content aggregator for synchronous content distribution |
CN108255870A (en) * | 2016-12-29 | 2018-07-06 | 中国移动通信集团浙江有限公司 | A kind of website data crawling method and device |
CN109446459A (en) * | 2018-10-11 | 2019-03-08 | 北京三快在线科技有限公司 | Page switching method and device, electronic equipment and storage medium |
CN109933737A (en) * | 2019-03-22 | 2019-06-25 | 中国工商银行股份有限公司 | Webpage processing method, apparatus and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110109659A (en) | A kind of system that realizing front end applications scaffold and server | |
CN108279882B (en) | Framework generation method, device, equipment and computer readable medium | |
CN111399835B (en) | Service stripping method and device for WEB front-end project | |
CN106648563B (en) | Dependency decoupling processing method and device for shared module in application program | |
CN108885564A (en) | Resource in network virtualization scene places control | |
CN107133064A (en) | The hot update method of the page and device of native applications | |
CN111068328A (en) | Game advertisement configuration table generation method, terminal device and medium | |
CN103123660B (en) | A kind of method to software and hardware system CAD mathematics library | |
CN108279979A (en) | A kind of method and device for binding CPU for Application Container | |
CN108804100B (en) | Method and device for creating interface element, storage medium and mobile terminal | |
CN112631649A (en) | Intelligent contract management method, device, terminal equipment and medium | |
CN115586935A (en) | Data processing method and device, electronic equipment and medium | |
CN105975329B (en) | A kind of creation method and device of virtual machine | |
CN106126595A (en) | A kind of document down loading method and device | |
CN108370329B (en) | Management method and device for management function object | |
CN112579934A (en) | Method and equipment for skipping and updating view of website application | |
CN115586896B (en) | Page project development method, equipment and storage medium based on template engine | |
CN112882685A (en) | Object extension method and device of object-oriented programming language | |
KR101414795B1 (en) | Instant Web App composing device and method | |
CN115665231A (en) | Service creation method, device and computer-readable storage medium | |
CN113434119B (en) | Service processing method and device based on flow control | |
CN109522507A (en) | A kind of method of web pages component unified management | |
KR20050066281A (en) | Descriptor file architecture based on sca system and file parsing method thereof | |
CN111158684B (en) | System creation method, device, electronic equipment and readable storage medium | |
CN114647473A (en) | Page display method and device and terminal 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210330 |
|
RJ01 | Rejection of invention patent application after publication |