CN111191225B - Method, device, medium and electronic equipment for switching isolated objects - Google Patents

Method, device, medium and electronic equipment for switching isolated objects Download PDF

Info

Publication number
CN111191225B
CN111191225B CN202010006689.4A CN202010006689A CN111191225B CN 111191225 B CN111191225 B CN 111191225B CN 202010006689 A CN202010006689 A CN 202010006689A CN 111191225 B CN111191225 B CN 111191225B
Authority
CN
China
Prior art keywords
node
switching
information
object information
isolated
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.)
Active
Application number
CN202010006689.4A
Other languages
Chinese (zh)
Other versions
CN111191225A (en
Inventor
艾石光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010006689.4A priority Critical patent/CN111191225B/en
Publication of CN111191225A publication Critical patent/CN111191225A/en
Application granted granted Critical
Publication of CN111191225B publication Critical patent/CN111191225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself

Abstract

The disclosure provides a method, a device, a medium and an electronic device for switching an isolated object. The method comprises the following steps: acquiring a switching object node; wherein the switching object node is an object node of the initial node object in an object node model tree; acquiring the isolated object information; and replacing the initial node object information of the switching object node by the isolation object information. According to the method, when the sandbox is switched, the sandbox returns to a virtual initial state, the field is recovered, the sandbox state which is activated is entered, and only one sandbox information is recorded during each switching. The problem that the comparison and the storage of sandbox switching information are overlarge due to the fact that the Cartesian product is calculated by a switching algorithm is solved.

Description

Method, device, medium and electronic equipment for switching isolated objects
Technical Field
The present disclosure relates to the field of computer security, and in particular, to a method, an apparatus, a medium, and an electronic device for switching an isolated object.
Background
The microservice architecture is a new technology for deploying applications and services in the cloud. The microservice may run in its own program and communicate with an HTTP-type application program interface (API for short) through "lightweight devices". Service exposure can be distinguished from microservice architecture (e.g., exposing an HTTP-type API in existing systems) by the above-described features. In service publishing, many services may be restricted by internal independent processes. If any of the services requires some functionality to be added, the process must be narrowed. In the micro-service architecture, only the required functions need to be added in a specific certain service, and the architecture of the whole process is not influenced. For example, the local modules may be only a part of the project, and may also include horizontal modules (including other modules) and vertical modules (site architecture) to manage, combine, outside the project. Different modules need to be dynamically loaded during running, and the modules in different systems are integrated into one page to run. Therefore, strict isolation is required for modules in the microservice.
In the field of computer security, a sandbox (also known as a sandbox) is a security mechanism that provides an isolated environment for running programs. Often, the process is used as a source of uncertainty, damage, or failure to determine the intent of the process.
Sandboxes may tightly control the resources that programs can access, e.g., sandboxes may provide disk and memory space that is reclaimed soon after use. In sandboxes, network access, access to real systems, reading of input devices are typically prohibited or severely limited. From this perspective, sandboxes are one type of virtualization. And all changes in the sandbox do not cause any loss to the operating system.
Therefore, the sandbox is applied to the update test of the module in the micro service, so that effective module isolation and a real module test environment can be provided. However, if there are N sandboxes, any two sandboxes may have active state exchange, and the possibility of switching these sandboxes is factorial to N, that is, the switching algorithm is required to calculate the cartesian product, and compare and record the change of the information of the two sandbox switching parties, thereby resulting in a very large memory space required for recording the information.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
An object of the present disclosure is to provide a method, an apparatus, a medium, and an electronic device for switching an isolated object, which can solve at least one of the above-mentioned technical problems. The specific scheme is as follows:
according to a specific embodiment of the present disclosure, in a first aspect, the present disclosure provides a method for switching an isolated object, including:
acquiring a switching object node; wherein the switching object node is an object node of the initial node object in an object node model tree;
acquiring the isolated object information;
and replacing the initial node object information of the switching object node by the isolation object information.
According to a second aspect, an apparatus for switching an isolated object is provided, including:
a switching object node acquiring unit for acquiring a switching object node; wherein the switching object node is an object node of the initial node object in an object node model tree;
an isolated object information acquiring unit, configured to acquire the isolated object information;
and the switching unit is used for replacing the initial node object information of the switching object node by the isolation object information.
According to a third aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of switching an isolated object according to any of the first aspects.
According to a fourth aspect thereof, the present disclosure provides an electronic device, comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of switching an isolated object as claimed in any of the first aspects.
Compared with the prior art, the scheme of the embodiment of the disclosure at least has the following beneficial effects:
the disclosure provides a method, a device, a medium and an electronic device for switching an isolated object. The method comprises the following steps: acquiring a switching object node; wherein the switching object node is an object node of the initial node object in an object node model tree; acquiring the isolated object information; and replacing the initial node object information of the switching object node by the isolation object information. According to the method, when the sandbox is switched, the sandbox returns to a virtual initial state, the field is recovered, the sandbox state which is activated is entered, and only one sandbox information is recorded during each switching. The problem that the comparison and the storage of sandbox switching information are overlarge due to the fact that the Cartesian product is calculated by a switching algorithm is solved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 shows a flow diagram of a method of switching an isolated object according to an embodiment of the present disclosure;
FIG. 2 illustrates a switching relationship diagram of an initial node object and an isolated object of a method of switching an isolated object according to an embodiment of the disclosure;
FIG. 3 illustrates a block diagram of elements of an apparatus for switching isolated objects, in accordance with an embodiment of the present disclosure;
fig. 4 shows an electronic device connection structure schematic according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Alternative embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The first embodiment provided by the present disclosure, that is, an embodiment of a method for switching an isolated object.
The following describes an embodiment of the present disclosure in detail with reference to fig. 1 and fig. 2, where fig. 1 is a flowchart of a method for switching an isolated object according to an embodiment of the present disclosure; fig. 2 shows a switching relationship diagram of an initial node object and an isolated object of a method for switching an isolated object according to an embodiment of the present disclosure.
Step S101, acquiring a switching object node.
Wherein the switching object node is an object node of the initial node object in the object node model tree.
The object node model tree is an access model for the whole program document, the whole program document is represented by a tree structure, each object node of the tree represents a subprogram document, and the connection relation between the object nodes represents the relation of the subprogram documents. The structure of the object node model tree describes the interrelationships of the sub-program documents. The process of converting a program document into an object node model tree is called parsing. After being parsed, the program document is converted into an object node model tree, so that the processing of the program document can be realized through the operation on the object node model tree. The object node model tree not only describes the structure of the document, but also comprises the method and the attribute of the object, and the object nodes and the content of the object node model tree can be conveniently accessed, modified, added and deleted. The object node model tree includes a document object model.
An object node model tree comprising: a document object model or a JavaScript object model. Wherein the document object model comprises a style sheet object model.
The Document Object Model (DOM for short) is a standard programming interface for processing extensible markup language. The method is an Application Program Interface (API) independent of a platform and a language, and can dynamically access programs and scripts and update the content, the structure and the style of www documents.
The DOM is a standard API that handles HTML and XML documents. The DOM provides an access model to the entire document as a tree structure, with each object node of the tree representing an HTML tag or text item within the tag. The DOM tree structure accurately describes the interrelationship between tags in an HTML document. The process of converting an HTML or XML document into a DOM tree is called parsing. The HTML document is converted into a DOM tree after being analyzed, so that the HTML document can be processed through the operation of the DOM tree. The DOM model not only describes the structure of the document, but also defines the behavior of the node object, and the object nodes and contents of the DOM tree can be conveniently accessed, modified, added and deleted by using the method and the attribute of the object.
The style sheet object model is the DOM generated by the style sheet. For example, the style sheet is a cascading style sheet.
Cascading Style Sheets (CSS) is a computer language used to represent file styles such as HTML (an application of standard generalized markup language) or XML (a subset of standard generalized markup language). The CSS can not only statically modify the web page, but also dynamically format elements of the web page in coordination with various scripting languages. The CSS can accurately control the typesetting of element positions in the webpage at a pixel level, supports almost all font and font styles and has the capability of editing webpage objects and model styles.
The JavaScript object model has prototype chains, and each node object can find members in the prototype through the chains.
The embodiment of the disclosure switches the function of the object node at the front end by using the characteristics of the object node model tree.
The initial node object is the node object before switching in the object node model tree.
For example, the object node information of the DOM tree, that is, the attribute of the object node, includes: a tag name, a node type, a node content, a set of parent node objects, a set of child node objects, and a set of sibling node objects. The attributes of the DOM tree nodes give the basic content and structural information of the page.
That is, the isolation object will replace the initial node object of the switch object node after switching, so as to achieve the purpose of switching the node object.
Because modules in the micro-service need strict isolation, the isolation object is adopted to isolate node objects in the embodiment of the disclosure, and the isolation object protects the objects to prevent mutual interference between the objects. For example, the isolated object employs a sandbox to protect the object.
In the field of computer security, a sandbox (also called a sandbox) is a security mechanism, and can provide an isolation environment for running programs. Often, the process is used as a source of uncertainty, damage, or failure to determine the intent of the process.
Sandboxes may tightly control the resources that programs can access. In sandboxes, network access, access to real systems, reading of input devices are typically prohibited or severely limited. From this perspective, sandboxes are one type of virtualization. And all changes in the sandbox do not cause any loss to the operating system.
Therefore, the sandbox is applied to the micro-service, so that the front-end module can be effectively isolated. Avoiding mutual interference.
The switch object information includes information describing the contents of the front-end display, representing an HTML tag or a text item within a tag.
Optionally, after the node of the handover object is obtained, the method further includes the following steps:
in step S101A, the initial node object information is saved.
I.e. to save the attribute information of the original node object. For example, the object node model tree is traversed in a snapshot manner to obtain a switching object node of the initial node object, so that the attribute information of the initial node object is obtained based on the switching object node.
Step S102, obtaining the isolation object information.
Step S103, replacing the initial node object information of the switching object node with the isolation object information.
Each switching is started from the initial node object, so that the system resource consumption caused by the calculation of Cartesian product by a switching algorithm is avoided.
Optionally, the replacing, by the isolated object information, the initial node object information of the switch object node includes the following steps:
step S103-1, removing the initial node object information from the switching object node.
That is, the whole operation of the initial node object information of the switching object node is realized, and the initial node object information is completely removed from the switching object node.
Step S103-2, inserting the isolation object information into the switching object node.
Namely, the whole operation of the subordinate information of the switching object node is realized, and the isolation object information is completely inserted into the switching object node.
Optionally, after replacing the initial node object of the switch object node with the isolation object, the method further includes the following steps:
and step S104, enabling the isolated object to be in an activated state.
The embodiment of the disclosure can realize the switching process under the condition that the front end dynamically operates.
Optionally, after replacing the initial node object information of the switch object node with the isolation object information, the method further includes the following steps:
step S105, obtaining the initial node object information.
And step S106, replacing the isolated object information of the switching object node with the initial node object information.
For step S106, the embodiment of the present disclosure provides two application scenarios.
Scene one
Optionally, the replacing, by the initial node object information, the isolated object information of the switch object node includes the following steps:
step S106-11, the isolation object information is removed from the switching object node.
Namely, the whole operation of the isolation object information of the switching object node is realized, and the isolation object information is completely removed from the switching object node.
Step S106-12, inserting the initial node object information into the switching object node.
That is, the whole operation of the subordinate information of the switching object node is realized, and the initial node object information is completely inserted into the switching object node, so that the aim of restoring is realized.
Scene two
Optionally, the replacing, by the initial node object information, the isolated object information of the switch object node includes the following steps:
and S106-21, acquiring the isolation object information.
Since the isolated object information is stored under the switching object node of the object node model tree at this time, the obtaining of the isolated object information is to obtain the attribute information of the node object under the switching object node from the switching object node of the object node model tree. For example, the object node model tree is traversed by using a snapshot mode, and a switching object node is obtained, so that the attribute information of the isolated object under the switching object node is obtained.
Wherein the isolated object information includes switching object information.
And S106-22, comparing the difference between the initial node object information and the isolation object information to acquire difference information.
The distinguishing information is information that the initial node object information is different from the isolated object information. For example, the difference information is obtained by comparing the snapshot information of the initial node object with the snapshot information of the isolated object.
Step S106-23, the isolation object information of the switching object node is modified based on the difference information, and the initial node object information is generated.
The scene is only to modify different information, but to retain the same information. When the isolated object information is very large and the discrimination information is very small, the efficiency of handover can be significantly improved.
When the sandbox is switched, the sandbox switching method returns to a virtual initial state first, restores to the field, then enters an activated sandbox state, and only records sandbox information during each switching. The problem that the comparison and the storage of sandbox switching information are overlarge due to the fact that the Cartesian product is calculated by a switching algorithm is solved.
Corresponding to the first embodiment provided by the present disclosure, the present disclosure also provides a second embodiment, that is, an apparatus for switching an isolated object. Since the second embodiment is basically similar to the first embodiment, the description is simple, and the relevant portions should be referred to the corresponding description of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 3 shows an embodiment of an apparatus for switching an isolated object provided by the present disclosure. Fig. 3 is a block diagram of a unit of an apparatus for switching an isolated object according to an embodiment of the present disclosure.
Referring to fig. 3, the present disclosure provides an apparatus for switching an isolated object, including: an acquisition switching object node unit 301, an acquisition isolation object information unit 302 and a switching unit 303.
An acquisition switching object node unit 301 configured to acquire a switching object node; wherein the switching object node is an object node of the initial node object in an object node model tree;
an obtain isolated object information unit 302, configured to obtain the isolated object information;
a switching unit 303, configured to replace initial node object information of the switching object node with the isolation object information.
Optionally, the switching unit 303 includes:
a first removal subunit configured to remove the initial node object information from the handover object node;
a first inserting subunit, configured to insert the isolated object information into the switch object node.
Optionally, in the apparatus, the apparatus further includes:
and the storage unit is used for storing the initial node object information.
Optionally, in the apparatus, the apparatus further includes:
an initial node object information obtaining unit, configured to obtain the initial node object information;
and the restoring unit is used for replacing the isolated object information of the switching object node by the initial node object information.
Optionally, in the reduction unit, the method includes:
a second removal subunit configured to remove the isolated object information from the switch object node;
a second inserting subunit, configured to insert the initial node object information into the handover object node.
Optionally, in the reduction unit, the method includes:
an isolated object information acquiring subunit, configured to acquire the isolated object information;
the comparison subunit is configured to compare differences between the initial node object information and the isolation object information to obtain difference information;
and the modifying subunit is configured to modify, based on the distinguishing information, the isolated object information of the switch object node, and generate the initial node object information.
Optionally, in the switching unit 303, the method further includes:
and the activation subunit is used for enabling the isolation object to be in an activated state.
When the sandbox is switched, the method and the device return to a virtual initial state first, recover the site, then enter the activated sandbox state, and only record one sandbox information during each switching. The problem that the comparison and the storage of the sandbox switching information are overlarge due to the fact that the Cartesian product is calculated by a switching algorithm is solved.
The embodiment of the present disclosure provides a third embodiment, that is, an electronic device, where the device is used in a method for switching an isolated object, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of switching isolated objects as described in the first embodiment.
The disclosed embodiments provide a fourth embodiment, which is a computer storage medium for switching an isolated object, where the computer storage medium stores computer-executable instructions that can execute the method for switching an isolated object as described in the first embodiment.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method of switching isolated objects, comprising:
acquiring a switching object node; the switching object node is an object node of an initial node object in an object node model tree, the object node model tree is an access model for a program document, each object node in the object node model tree is used for representing a subprogram document, and the connection relation among the object nodes in the object node model tree is used for describing the correlation among the represented subprogram documents;
obtaining isolation object information;
and replacing the initial node object information of the switching object node by the isolation object information.
2. The method of claim 1, wherein replacing initial node object information of the switch object node with the isolated object information comprises:
removing the initial node object information from the handover object node;
and inserting the isolation object information into the switching object node.
3. The method of claim 1, further comprising, after the obtaining the handover object node:
and saving the initial node object information.
4. The method according to claim 3, further comprising, after replacing the initial node object information of the switch object node with the isolated object information:
acquiring the initial node object information;
and replacing the isolated object information of the switching object node by the initial node object information.
5. The method of claim 4, wherein replacing the isolated object information of the switch object node with the initial node object information comprises:
removing the isolated object information from the switch object node;
and inserting the initial node object information into the switching object node.
6. The method of claim 4, wherein replacing the isolated object information of the switch object node with the initial node object information comprises:
acquiring the isolated object information;
comparing the difference between the initial node object information and the isolation object information to obtain difference information;
and modifying the isolation object information of the switching object node based on the distinguishing information to generate the initial node object information.
7. The method according to any of claims 1-6, further comprising, after said replacing an initial node object of said switch object node with said isolated object:
the isolated object is placed in an active state.
8. An apparatus for switching isolated objects, comprising:
a unit for acquiring a node to be switched, configured to acquire a node to be switched; the switching object node is an object node of an initial node object in an object node model tree, the object node model tree is an access model for a program document, each object node in the object node model tree is used for representing a subprogram document, and the connection relation among the object nodes in the object node model tree is used for describing the correlation among the represented subprogram documents;
an isolated object information acquiring unit for acquiring isolated object information;
and the switching unit is used for replacing the initial node object information of the switching object node by the isolation object information.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1 to 7.
CN202010006689.4A 2020-01-03 2020-01-03 Method, device, medium and electronic equipment for switching isolated objects Active CN111191225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010006689.4A CN111191225B (en) 2020-01-03 2020-01-03 Method, device, medium and electronic equipment for switching isolated objects

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010006689.4A CN111191225B (en) 2020-01-03 2020-01-03 Method, device, medium and electronic equipment for switching isolated objects

Publications (2)

Publication Number Publication Date
CN111191225A CN111191225A (en) 2020-05-22
CN111191225B true CN111191225B (en) 2022-05-27

Family

ID=70709773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010006689.4A Active CN111191225B (en) 2020-01-03 2020-01-03 Method, device, medium and electronic equipment for switching isolated objects

Country Status (1)

Country Link
CN (1) CN111191225B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084491A (en) * 2020-08-26 2020-12-15 天津七一二通信广播股份有限公司 Sandbox mechanism-based cluster virtual user system implementation method
CN113641988B (en) * 2021-05-26 2022-09-16 荣耀终端有限公司 Sandbox initialization method, graphical interface and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10204826A1 (en) * 2002-02-06 2003-08-14 Siemens Ag System and method for analyzing a network and / or generating the topology of a network
US6732175B1 (en) * 2000-04-13 2004-05-04 Intel Corporation Network apparatus for switching based on content of application data
CN101587488A (en) * 2009-05-25 2009-11-25 深圳市腾讯计算机系统有限公司 Method and device for detecting re-orientation of page in search engine
CN103368989A (en) * 2012-03-28 2013-10-23 上海商派网络科技有限公司 Webpage node updating method
CN104008328A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Resource loading method and device
CN107291449A (en) * 2017-05-22 2017-10-24 北京奇艺世纪科技有限公司 A kind of page rendering method, device and equipment
CN108830077A (en) * 2018-06-14 2018-11-16 腾讯科技(深圳)有限公司 A kind of script detection method, device and terminal
CN108920618A (en) * 2018-06-28 2018-11-30 泰康保险集团股份有限公司 A kind of store method, device, medium and the electronic equipment of object reference relationship

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732175B1 (en) * 2000-04-13 2004-05-04 Intel Corporation Network apparatus for switching based on content of application data
DE10204826A1 (en) * 2002-02-06 2003-08-14 Siemens Ag System and method for analyzing a network and / or generating the topology of a network
CN101587488A (en) * 2009-05-25 2009-11-25 深圳市腾讯计算机系统有限公司 Method and device for detecting re-orientation of page in search engine
CN103368989A (en) * 2012-03-28 2013-10-23 上海商派网络科技有限公司 Webpage node updating method
CN104008328A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Resource loading method and device
CN107291449A (en) * 2017-05-22 2017-10-24 北京奇艺世纪科技有限公司 A kind of page rendering method, device and equipment
CN108830077A (en) * 2018-06-14 2018-11-16 腾讯科技(深圳)有限公司 A kind of script detection method, device and terminal
CN108920618A (en) * 2018-06-28 2018-11-30 泰康保险集团股份有限公司 A kind of store method, device, medium and the electronic equipment of object reference relationship

Also Published As

Publication number Publication date
CN111191225A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
CN111324342B (en) Method, device, medium and electronic equipment for generating interface layer code
CN111240767A (en) Component and page loading method and device, electronic equipment and storage medium
CN111191225B (en) Method, device, medium and electronic equipment for switching isolated objects
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN112631590A (en) Component library generation method and device, electronic equipment and computer readable medium
CN115731313A (en) SVG format picture processing method, device, equipment, medium and product
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
CN113127000A (en) Compiling method, device and equipment of application program assembly and storage medium
CN110704050B (en) Module initializing method and device, electronic equipment and computer readable storage medium
CN116860286A (en) Page dynamic update method, device, electronic equipment and computer readable medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN114327453B (en) Page display method, device, equipment and storage medium
CN111221513B (en) Method, device, medium and electronic equipment for adjusting cascading style sheet
CN112732979B (en) Information writing method, information writing device, electronic equipment and computer readable medium
CN113807056A (en) Method, device and equipment for correcting error of document name sequence number
CN111241538B (en) Method, device, medium and electronic equipment for protecting node object variable
CN112965713B (en) Development method, device, equipment and storage medium of visual editor
CN117389690B (en) Mirror image package construction method, device, equipment and storage medium
CN110780898A (en) Page data upgrading method and device and electronic equipment
CN112445820A (en) Data conversion method and device
CN112487339B (en) Response method, device, equipment and storage medium for Web page request
CN117130752A (en) Data processing method and device and electronic equipment
CN112965713A (en) Development method, device and equipment of visual editor and storage medium
CN114706998A (en) Information processing method, device, terminal and storage medium

Legal Events

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