Ecological intercommunication method and device for multiple visual scenes of same browser and storage medium

By using model learning and browser storage technology, information sharing between multiple visual scenarios in the browser is realized, solving information synchronization and security issues, improving user experience and reducing costs.

CN118708271APending Publication Date: 2024-09-27SHANGHAI TELECOM SCI & TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410729898.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The inability to effectively share information between multiple visual scenes in a browser leads to information loss, resource waste, poor user experience, and security vulnerabilities. Existing technologies require additional costs and complexity by relying on backend and hardware.

Method used

By learning pointer correspondences through model learning and using browser storage to achieve front-end information sharing, an ecological interoperability method for visual scenes is established using AI classification models and browser storage technology, without the need for back-end and hardware support.

Benefits of technology

It enables information synchronization between multiple visual scenes, reduces the impact of external factors, improves user experience, reduces costs and complexity, and provides a secure information sharing mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708271A
    Figure CN118708271A
Patent Text Reader

Abstract

The invention relates to an ecological intercommunication method and device for multiple visual scenes of the same browser and a storage medium, and the method comprises the steps: taking each visual scene which needs to carry out information sharing with other visual scenes as a main vision, and carrying out ecological intercommunication one by one according to a logic line which needs intercommunication, according to the ecological intercommunication, pointer correspondence is obtained through model learning, front-end information sharing is achieved through browser storage, a user only needs to conduct unified configuration once according to a logic line by means of the logic line established in advance according to the needed situation, and then information synchronization is achieved; and when the information is changed or other information is needed, the open end only needs to open the information for intercommunication. The method can be realized without the aid of a rear end and hardware, and a series of problems caused by the influence of external factors are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet software technology, and in particular to an ecological intercommunication method, device and storage medium for multiple visual scenes of the same browser. Background Art

[0002] There will be multiple visual scenes when using the browser, and there may be cross-use of front-end information between multiple visual scenes, such as: visual embedding, information exchange between sub-visuals, etc. Due to browser policies and security mechanisms, communication between visions is not allowed. Therefore, the traditional way of front-end information communication basically relies on background databases or interfaces, networks and other media. However, relying on the background and hardware will inevitably increase costs, and it is easy to be affected by external factors, resulting in problems in performance, data consistency, browser compatibility, security, status, etc. Without the help of the background and hardware, it is difficult to achieve information sharing between visions only through front-end software. If information cannot be shared, it will lead to problems such as easy loss of saved information, consumption of resources, poor user experience, and information confusion, which may lead to security vulnerabilities.

[0003] At present, for the visual scenes of the same project, the same framework and the same entrance can be used to achieve front-end information sharing. However, when encountering complex scenes that cannot be integrated into a project at all, adding a business requirement requires all page data to be interconnected and changed, which not only consumes time and cost and requires a lot of repetitive work, but may also lead to a lack of interoperability and is not friendly to external connections. Summary of the invention

[0004] In order to solve the above problems, the present invention provides an ecological intercommunication method, device and storage medium for multiple visual scenes of the same browser. Pointer correspondence is obtained through model learning, and browser storage is used to achieve the purpose of front-end information sharing. It does not require the help of the back-end and hardware, reducing a series of problems caused by external factors.

[0005] The present invention is implemented by the following scheme: an ecological intercommunication method for multiple visual scenes of the same browser, comprising the steps of:

[0006] Each visual scene that needs to share information with other visual scenes is used as the main visual scene, and ecological intercommunication is performed one by one according to the logical lines that need to be intercommunication. The steps of ecological intercommunication include:

[0007] A generation button for generating a main visual pointer is encapsulated in the front-end software of the main visual, external information in the main visual is encapsulated, a relationship is established between the main visual pointer and the external information, and the relationship is stored in the browser storage;

[0008] Establishing a sub-visual relationship network that has a logical context with the main vision, using a model to learn how the main vision triggers each sub-visual scene, obtaining a sub-pointer representing each sub-visual scene through model training, and recording it in the browser storage;

[0009] Creating an external pointer corresponding to the main visual pointer for the main visual in the browser storage, and then storing the sub-pointers of each sub-visual under the external pointer to achieve the same root effect;

[0010] Establishing the model training in the main vision on each of the secondary visions, and training a pointer pattern that obtains the same result as that obtained in the main vision;

[0011] Configure the import information pointer in the front-end software of each sub-vision to select the path for reading information inside the vision and complete the configuration of the vision page structure;

[0012] The visual page structure is rendered and presented in the browser, so that changes in the external information of the main vision are synchronized and presented on the corresponding sub-visual screen.

[0013] A further improvement of the ecological intercommunication method of multiple visual scenes in the same browser of the present invention is that a model is used to learn the situation of the main vision triggering each sub-visual scene, and the step of obtaining a sub-pointer representing each sub-visual scene through model training includes: selecting an Ai classification model, learning the situation of the main vision triggering each sub-visual scene through code and manual triggering, inputting code and trigger, performing model correction, and recording the results of the model training, that is, the sub-pointer representing each sub-visual scene.

[0014] A further improvement of the ecological intercommunication method of multiple visual scenes in the same browser of the present invention is that when the sub-pointers of each sub-vision are stored under the external pointer, the storage complies with the behavior and policy specifications of the visual loader, meets the scalability and supports the loading of other different visions.

[0015] A further improvement of the ecological intercommunication method of multiple visual scenes of the same browser of the present invention is that the path selection for reading information inside the visual is adjusted by adding and editing configurations.

[0016] A further improvement of the ecological intercommunication method of multiple visual scenes in the same browser of the present invention is that the pointer mode that obtains the same result as that in the main vision means that each sub-vision is directly opened in the browser to obtain the corresponding sub-pointers.

[0017] A further improvement of the ecological intercommunication method of multiple visual scenes of the same browser of the present invention is that the way of configuring the import information pointer is a parameter configuration way or a fixed code way.

[0018] A further improvement of the ecological intercommunication method of multiple visual scenes in the same browser of the present invention is that the method for rendering the visual page structure is: using the rendering engine of the browser front end to convert the multi-visual page structure into a visible visual page, and rendering the information seen on the visual page using a framework.

[0019] A further improvement of the ecological intercommunication method of multiple visual scenes in the same browser of the present invention is that after all the logical lines that need to be intercommunication are ecologically intercommunication, a multi-visual page structure including multi-visual intercommunication blocks is obtained, and the multi-visual ecological intercommunication effect is optimized by fine-tuning the position adjustment or parameter editing of each visual intercommunication block on the multi-visual page structure.

[0020] The present invention also provides an ecological intercommunication device, comprising:

[0021] at least one processor; and,

[0022] a memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the steps in the ecological intercommunication method of multiple visual scenes in the same browser as described in any of the above items.

[0024] The present invention further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the ecological intercommunication method for multiple visual scenes of the same browser as described in any one of the above items.

[0025] The present invention obtains pointer correspondence through model learning and uses browser storage to achieve the purpose of front-end information sharing. Users only need to combine the needs and use the pre-established logic lines to uniformly configure once according to the logic lines, and then achieve information synchronization. If there is a change in information or other information is needed, only the open end needs to open the information for intercommunication. It opens the closed barriers that are only used by the front end in multiple visions, provides strategies and bridges for isolated island scenes that require interaction and communication, connects multiple visions in series through code placeholders, and does not need to be realized by the back end and hardware, reducing the problem of being unable to meet the needs of business scenarios due to external reasons, network reasons, browser reasons, project reasons and other policy control. The present invention can not only protect the security of the original data, but also receive the delivery of external data, increase the ability to aggregate and process each visual information, reduce the cumbersome configuration and technical implementation steps, and can solve the data sharing in two, three, or even multiple visions, better control the degree of shared data, and realize diverse intercommunication. It has the advantages of less code, less configuration, no medium, and forming an ecosystem, which changes the defects and dead ends in the original scene. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 The flowchart of the implementation of the ecological intercommunication method of the present invention is shown. DETAILED DESCRIPTION

[0027] In order to solve the problem that the traditional front-end information sharing method that requires the use of back-end and hardware is subject to the influence of external factors, the present invention provides an ecological intercommunication method, device and storage medium for multiple visual scenes of the same browser, which obtains pointer correspondence through model learning and uses browser storage to achieve the purpose of front-end information sharing without the need for back-end and hardware, thus reducing a series of problems caused by external factors. The ecological intercommunication method, device and storage medium for multiple visual scenes of the same browser are further described below with specific embodiments and accompanying drawings.

[0028] See also Figure 1 As shown, a method for ecological intercommunication of multiple visual scenes in the same browser includes the following steps:

[0029] Step S1: Multiple visual software projects need to be prepared, such as Figure 1 The visual A, B, C, ... G, ... shown in the figure, and the logical lines that need to be interconnected are specified according to the specific conditions of multiple visual software projects. Each visual scene that needs to share information with other visual scenes is used as the main visual, and the ecological interconnection is performed one by one according to the logical lines that need to be interconnected. Taking visual A as the main visual as an example, the steps for the ecological interconnection include:

[0030] Step S11: Integrate and prepare all the information existing in vision A and that can be used by other vision software, and encapsulate it into an external data information source.

[0031] Step S12: Use code to encapsulate a generation button in the visual A front-end software to generate the main visual pointer, which serves as the external direction of visual A and also as the corresponding associated symbol of other visual software such as visual B, C, etc. The user can obtain the desired information through it.

[0032] Step S13, encapsulate the external information in vision A, establish a relationship between the main vision pointer and the encapsulated external information, and put it into the browser storage, so that when there is any change in the information in vision A, the code execution prompts the external information to be integrated, differentiates the information that needs to be processed and changed, and synchronizes and changes the information stored in the browser, and reflects the change results on the external pointer. The relevant code is as follows:

[0033] External information packaging:

[0034] let outinfo = {};

[0035] / / Bring the logo in

[0036] outinfo={tag1:{}}

[0037] / / Put the required information in the mark

[0038] outinfo.tag1.name = '123'

[0039] / / Add other information ......

[0041] Step S14, establish a relationship network with the sub-visuals B, C... on the logical lines before and after vision A, select the Ai classification model, learn the situation of vision A triggering various sub-visual scenes through code and manual, input the code, input the trigger, and correct the model, record the results of the model training, that is, the sub-pointers representing various sub-visual scenes, and record them in the browser storage of time A.

[0042] Step S15, create an external pointer for vision A in the browser storage, and store the sub-pointer obtained from the previous training step under the external pointer of vision A. This storage complies with the behavior and policy specifications of the vision loader, and is extensible, supports other different vision loading, and can be under the same root as time A. For example, vision A setting information is in the first-level domain name, divided into vision B, C... through the second-level domain name or mounted under the routing of the first-level domain name, or multiple visions are mounted through the same IP but different ports, and nginx is mounted to achieve the same root effect. The relevant code is as follows:

[0043] Decompose whether they are of the same root:

[0044]

[0045] Run the command:

[0046] Let setdomain=resultDomain; / / Use the above disassembly result to get the root

[0047] Cookies.set(name, outinfo, setdomain?{domain:setdomain}:null); / / Set information for the root

[0048] Step S16, establish the model training in vision A on the sub-visions B, C..., and train a pointer mode that obtains the same result as that obtained in vision A, that is, directly open visions B, C... in the browser to obtain the corresponding sub-pointers.

[0049] Step S17, in the vision itself that needs other vision software information, configure the import information pointer. This configuration can be in the form of parameters or in the form of hard-coded code, which is used to select the path for reading information inside the vision and complete the configuration of the vision page structure. The relevant code is as follows:

[0050] Here is the configuration identifier obtained through parameters:

[0051] ......

[0053] Get information command:

[0054] value = Cookies.get(TokenKey)

[0055] / / value is applied to the place where you need to see it in vision

[0056] Use command: ...

[0058] The visual page structure that has completed the ecological intercommunication can be rendered and presented in the user's browser. The front-end rendering engine (such as React, Vue.js, Angular, etc.) can be used to convert the visual page structure into a visible visual page. You only need to add, edit or delete any information in Visual A. The same browser receives the changes on the sub-visual screen at the other end of the corresponding logic line, and uses the framework to update and render the information seen on the interface to obtain the intercommunication between the two ends. Through the above steps, a visual intercommunication path is realized, and the path can be created and changed by adding and editing configurations.

[0059] Step S2, loop through steps S11 to S17 to obtain a multi-visual page structure including a variety of visual intercommunication blocks. After rendering the multi-visual page structure, a variety of visual intercommunication blocks are presented on the visual page. The multi-visual ecological intercommunication effect can be optimized by fine-tuning the position of the visual intercommunication blocks or editing the parameters.

[0060] Based on the above-mentioned ecological intercommunication method, an ecological intercommunication device is provided, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the steps in the ecological intercommunication method for multiple visual scenes of the same browser as described in any one of the above items.

[0061] Based on the above ecological intercommunication method, a computer-readable storage medium is also provided, which stores a computer program. When the computer program is executed by a processor, it implements the ecological intercommunication method of multiple visual scenes in the same browser as any of the above items.

[0062] The present invention is described in detail above in conjunction with the embodiments of the accompanying drawings. A person skilled in the art can make various variations of the present invention according to the above description. Therefore, certain details in the embodiments should not constitute a limitation of the present invention, and the scope of protection of the present invention shall be defined by the scope of the attached claims.

Claims

1. A method for ecological intercommunication of multiple visual scenes in the same browser, It is characterized in that Includes steps: Each visual scene that needs to share information with other visual scenes is used as the main visual scene, and ecological intercommunication is performed one by one according to the logical lines that need to be intercommunication. The steps of ecological intercommunication include: A generation button for generating a main visual pointer is encapsulated in the front-end software of the main visual, external information in the main visual is encapsulated, a relationship is established between the main visual pointer and the external information, and the relationship is stored in the browser storage; Establishing a sub-visual relationship network that has a logical context with the main vision, using a model to learn how the main vision triggers each sub-visual scene, obtaining a sub-pointer representing each sub-visual scene through model training, and recording it in the browser storage; Creating an external pointer corresponding to the main visual pointer for the main visual in the browser storage, and then storing the sub-pointers of each sub-visual under the external pointer to achieve the same root effect; Establishing the model training in the main vision on each of the secondary visions, and training a pointer pattern that obtains the same result as that obtained in the main vision; Configure the import information pointer in the front-end software of each sub-vision to select the path for reading information inside the vision and complete the configuration of the vision page structure; The visual page structure is rendered and presented in the browser, so that changes in the external information of the main vision are synchronized and presented on the corresponding sub-visual screen.

2. The ecological intercommunication method for multiple visual scenes in the same browser as claimed in claim 1, It is characterized in that The steps of using a model to learn how the main vision triggers each sub-visual scene, and obtaining sub-pointers representing each sub-visual scene through model training include: selecting an Ai classification model, learning how the main vision triggers each sub-visual scene through code and manual triggering, inputting codes and triggers, performing model correction, and recording the results of the model training, i.e., the sub-pointers representing each sub-visual scene.

3. The ecological intercommunication method for multiple visual scenes in the same browser as claimed in claim 1, Features: When storing the sub-pointers of each sub-vision under the external pointer, the storage is made to comply with the behavior and policy specifications of the vision loader, and meet the scalability and support the loading of other different visions.

4. The ecological intercommunication method for multiple visual scenes in the same browser as claimed in claim 3, It is characterized in that Adjust the path selection used for information reading inside the vision by adding and editing configurations.

5. The ecological intercommunication method for multiple visual scenes in the same browser as claimed in claim 1, Features: The pointer mode that obtains the same result as that in the main vision means that each sub-vision can be opened directly in the browser to obtain the corresponding sub-pointers.

6. The ecological intercommunication method for multiple visual scenes in the same browser as claimed in claim 1, Features: The way to configure the import information pointer is parameter configuration method or fixed code method.

7. The ecological intercommunication method for multiple visual scenes in the same browser as claimed in claim 1, It is characterized in that The method for rendering the visual page structure is: using the rendering engine of the browser front end to convert the multi-visual page structure into a visible visual page, and rendering the information seen on the visual page using a framework.

8. The ecological intercommunication method for multiple visual scenes in the same browser as claimed in claim 7, Features: After all the logical lines that need to be interconnected are ecologically interconnected, a multi-visual page structure including multi-visual interconnection blocks is obtained. The multi-visual ecological intercommunication effect is optimized by fine-tuning the position adjustment or parameter editing of each visual intercommunication block on the multi-visual page structure.

9. An ecological intercommunication device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the steps in the ecological intercommunication method for multiple visual scenes of the same browser as described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the ecological intercommunication method for multiple visual scenes in the same browser as described in any one of claims 1 to 8 is implemented.