CN114115871A - Page data embedding method and device, storage medium and electronic equipment - Google Patents

Page data embedding method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114115871A
CN114115871A CN202110070636.3A CN202110070636A CN114115871A CN 114115871 A CN114115871 A CN 114115871A CN 202110070636 A CN202110070636 A CN 202110070636A CN 114115871 A CN114115871 A CN 114115871A
Authority
CN
China
Prior art keywords
data
page
page data
loaded
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110070636.3A
Other languages
Chinese (zh)
Inventor
邱金龙
左白
张鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information 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 Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110070636.3A priority Critical patent/CN114115871A/en
Publication of CN114115871A publication Critical patent/CN114115871A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a page data embedding method, a page data embedding device, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring page data corresponding to the data identifier to be loaded based on the data identifier to be loaded; packaging the page data into a closure; and calling a preset page data rendering method, and rendering the page data in the closure to a target node of the embedded system. The method has the advantages that the page data to be embedded are isolated from the parent page in a closure packaging mode and are independent from each other, technical conflict does not exist between the page data and the parent page when the page data is rendered in the closure, parameters during rendering of the page data can be freely adjusted, user permission of the parent page can be acquired, self-adaptive rendering and permission control of the data page are achieved, and flexibility of rendering of the page data is provided.

Description

Page data embedding method and device, storage medium and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a page data embedding method and device, a storage medium and electronic equipment.
Background
In the system development process, the condition that a plurality of systems are embedded into the same page often exists, the page can be reused in a page embedding mode, and the development cost of the systems is reduced.
Currently, page embedding is generally realized in an iframe mode, however, in the process of implementing the present invention, the inventors find that at least the following technical problems exist in the prior art: the page embedded in the iframe mode can only be displayed according to the original size, style and the like of the page, and the page cannot be adjusted according to needs.
Disclosure of Invention
The invention provides a page data embedding method, a page data embedding device, a storage medium and electronic equipment, which are used for realizing self-adaptive adjustment embedding of a page.
In a first aspect, an embodiment of the present invention provides a page data embedding method, including:
acquiring page data corresponding to the data identifier to be loaded based on the data identifier to be loaded;
packaging the page data into a closure;
and calling a preset page data rendering method, and rendering the page data in the closure to a target node of the embedded system.
In a second aspect, an embodiment of the present invention further provides a page data embedding apparatus, including:
the page data extraction module is used for acquiring page data corresponding to the data identifier to be loaded based on the data identifier to be loaded;
the page data packaging module is used for packaging the page data into a closure;
and the page data rendering module is used for calling a preset page data rendering method and rendering the page data in the closure to a target node of the embedded system.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the page data embedding method according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page data embedding method provided in any embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, the engine for executing page embedding is arranged, the engine extracts page data based on the data identifier to be loaded, the page data is packaged into a closed packet, the page data to be embedded is isolated from a parent page in a closed packet packaging mode and is independent from the parent page, technical conflict does not exist between the page data and the parent page when the page data is rendered in the closed packet, parameters during rendering of the page data can be freely adjusted, the user authority of the parent page can be acquired, the self-adaptive rendering and authority control of the data page are realized, and the flexibility of page data rendering is provided.
Drawings
Fig. 1 is a schematic flowchart of a page data embedding method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a page provided by an embodiment of the invention;
fig. 3 is a flowchart of a method for determining page data according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for embedding page data according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a page data embedding method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a page data embedding apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a page data embedding method according to an embodiment of the present invention, where the method is applicable to a case of adaptively embedding page data, and the method can be executed by a page data embedding apparatus according to an embodiment of the present invention, and the apparatus can be integrated in an electronic device such as a computer or a server.
The page data embedding method provided by the embodiment specifically comprises the following steps:
s110, acquiring page data corresponding to the to-be-loaded data identifier based on the to-be-loaded data identifier.
And S120, packaging the page data into a closure.
S130, calling a preset page data rendering method, and rendering the page data in the closure to a target node of the embedded system.
The page embedding is carried out in an iframe mode, usually in a mode that an iframe label is nested in a parent page, the embedded form of the label limits that the embedded page data cannot carry out self-adaptive modification on the size and the page style, and meanwhile, due to the fact that domain names of a system embedded into the page and a system embedded into the page are different, authority control cannot be carried out on the embedded page. The present embodiment provides a jssdk engine, where the page data embedding device provided in the embodiment of the present invention may be integrated in the jssdk engine, and the jssdk engine is configured to obtain page data according to a page embedding requirement, embed the page data into a target page, and render the page data.
The jssdk engine acquires a to-be-loaded data identifier to be loaded and a target node to be rendered, wherein the to-be-loaded data identifier may be information for identifying page data, and may be, for example and without limitation, at least one of a jssdk file name and page address information, and the like.
In some embodiments, the obtaining of the page data corresponding to the to-be-loaded data identifier based on the to-be-loaded data identifier may be: determining an original page corresponding to the data identifier to be loaded, and extracting first data corresponding to the data identifier to be loaded and second data depended by the page data from the original page; forming the page data based on a dependency relationship of the first data and the second data.
The original page to be embedded is determined by the identifier of the data to be loaded, which may be, for example, a system corresponding to the identifier of the data to be loaded is determined according to domain name information in the identifier of the data to be loaded, and the original page is determined according to a jssdk file name or page address information in the identifier of the data to be loaded. It should be noted that the identifier of the data to be loaded may be identifier information corresponding to an original page, or may be identifier information of one or more service modules in the original page, and correspondingly, the page data at least includes local page data in the original page, that is, local page data in the original page, or may be all page data corresponding to the original page, for example, referring to fig. 2, fig. 2 is a schematic diagram of a page provided in an embodiment of the present invention, the page in fig. 2 includes two service modules, and the identifier of the data to be loaded may be an identifier of the page, or may be an identifier of the service module 1 or the service module 2.
Obtaining script data corresponding to an original page, namely first data, parsing the script data to determine second data depended on by each file in the script data, illustratively, calling a corresponding parsing tool according to a file type of each file in the script data, or determining a file type by a file suffix, wherein different file suffixes correspond to different file types, wherein the file suffix can include, but is not limited to, js, less, png, vue, and the like, a correspondence relationship between each file type and the parsing tool is preset, calling a corresponding parsing tool according to the identified file type to parse, for example, a file with a.js suffix parsing the AST syntax by calling a V8 engine, a file with a.ts suffix parsing by a pegscript parsing tool, and a file with a.less suffix parsing tool, the files with the suffix of vue are parsed through a vue parsing tool to obtain syntax trees respectively, and the reference relationship between the files, namely the second data depended on by the files, is determined through the syntax trees. Page data is formed based on the first data and one or more second data on which the first data depends. Exemplarily, referring to fig. 3, fig. 3 is a flowchart of a method for determining page data according to an embodiment of the present invention. Based on the file information (namely the data identification to be loaded) of the page (module) to be embedded, finding the script file (namely the first data) of the page (module), extracting the rendering method of the script file, performing decoding analysis on the script file, determining the file dependency relationship, and determining the second data on which the script file depends. If the script file and the dependent second data can be extracted, page data is formed, the page data is packaged into a closure, and the extracted rendering method is added to a public method in the jssdk engine. When the script file and the second data which depends on the script file cannot be extracted, the user is prompted to temporarily not support the rendering description generation kssdk file. The page in fig. 3 is an entire page, and the modules are partial contents in the page.
In some embodiments, the original page to be embedded may be determined by the identifier of the data to be loaded, and a page data request may be generated according to the identifier of the data to be loaded, and the page data request carrying the identifier of the data to be loaded is sent to the server, so that the server extracts page data from the corresponding original page according to the identifier of the data to be loaded. The server may be a server of a system corresponding to domain name information of the data identifier to be loaded. When the page data corresponding to the data identifier to be loaded cannot be extracted, prompt information of the embedded model which does not support the page data provided by the embodiment is generated.
Optionally, the obtaining, based on the identifier of the data to be loaded, the page data corresponding to the identifier of the data to be loaded includes: generating a page data request based on the to-be-loaded data identifier, and sending the page data request to a server, so that the server extracts first data corresponding to the to-be-loaded data identifier and second data depended by the first data according to the to-be-loaded data identifier to form page data; and receiving page data fed back by the server. The manner of extracting the page data by the server is the same as the above manner, and is not described herein again.
And encapsulating the extracted page data into a closure according to a preset data encapsulation method, wherein the closure is a scope which can access an outer function in an inner function, is formed by binding a function and reference to the surrounding state of the function together, and creates an independent environment, and the environment in each closure is independent and does not interfere with each other. It should be noted that, a closure encapsulation method is preset in the jssdk engine, and when a group of page data is received, the closure encapsulation method may be invoked to encapsulate the acquired page data.
And a page data rendering method is preset in the jssdk engine, and the page data rendering method is called to render the page data in the closure to a target node of the embedded system. The page data rendering method may be extracted in advance, for example, different rendering methods may be extracted for different types of page data, different rendering modes are stored in the jssdk engine, and the corresponding page data rendering method is called according to the type of the page data in the closure that needs to be rendered currently. For example, when the page data is extracted, the rendering method of the page data may be extracted at the same time, and the extracted rendering mode is stored in the common method storage area, so that subsequent calling is facilitated.
The target node of the embedding system may be a target DOM (Document Object Model) node of the system that performs page data embedding, and the parent page in the system that performs page data embedding may be a corresponding complete Document Object Model. The target node may be a rendering position node or a logical relationship node of the parent page.
The page data is isolated from the outside by a closure packaging mode, namely, when the page data is embedded, technical conflict does not exist with a parent page, so that limitation on the size, style and authority of the page data does not exist, and self-adaptive adjustment can be carried out according to user requirements.
On the basis of the above embodiment, before acquiring the page data corresponding to the to-be-loaded data identifier based on the to-be-loaded data identifier, the method further includes: and determining a system to which the page data belongs based on the to-be-loaded data identifier, and sending a verification request of the page data to the system to which the page data belongs so as to ensure that the system to which the page data belongs carries out security verification. The verification request of the page data comprises a verification identifier which is requested to a system to which the page data belongs in advance. For example, before the data request is made, a verification identifier may be requested from the server in advance, where the verification identifier may be determined by the server according to the domain name of the system embedded in the page, and the server stores a correspondence between the system domain name and the verification identifier. The server may be a server in which the page data is to be embedded, for example, the system B pre-embeds the page data of the system a, and needs to request a verification identifier from the server of the system a, and when the page data request is performed, a verification request for the page data is generated based on the verification identifier, and the verification request further includes a domain name of the system B, so that the server of the system a performs security verification on the domain name and the verification identifier of the system B. And when the verification is successful, returning the page data corresponding to the data identifier to be loaded.
On the basis of the above embodiments, a priority scheme of a page data embedding method is provided, referring to fig. 4, and fig. 4 is a flowchart of a page data embedding method provided by an embodiment of the present invention. The method comprises the steps that a user introduces a jssdk engine, the jssdk engine can be connected with a system for embedding page data, a JMT (Java messaging server) render method provided by the jssdk engine is called when embedding requirements of the page data exist, relevant parameters input by the user are received based on the JMT render method, the relevant parameters can be a to-be-loaded data identifier to be loaded and a target node to be rendered, the jssdk engine sends a page data request to a server according to the to-be-loaded data identifier to be loaded, the page data request can include a verification identifier so that the server verifies the verification identifier, when verification is successful, the server generates page data corresponding to the page data request, the jssdk engine receives the page data, packages the page data into a closed package and renders the page data to a DOM node designated by the user, namely the target node. When the verification of the verification identification fails, prompting the user that the authority for acquiring the page (module) data is not available.
According to the technical scheme of the embodiment, the engine for executing page embedding is arranged, the engine extracts page data based on the data identification to be loaded, the page data is packaged into a closed packet, only the page data of the page or the module to be embedded is extracted, and a page calling mode through a page tag in the prior art is replaced, so that flexible rendering of the page data is facilitated; the method has the advantages that the page data to be embedded are isolated from the parent page in a closure packaging mode and are independent from each other, technical conflict does not exist between the page data and the parent page when the page data is rendered in the closure, parameters during rendering of the page data can be freely adjusted, user permission of the parent page can be acquired, self-adaptive rendering and permission control of the data page are achieved, and flexibility of rendering of the page data is provided.
Example two
Fig. 5 is a schematic flowchart of a page data embedding method provided in an embodiment of the present invention, which is optimized based on the above embodiment, and the method specifically includes:
s210, acquiring a data identifier to be loaded, page configuration parameters and a target node of the embedded system.
S220, acquiring page data corresponding to the to-be-loaded data identifier based on the to-be-loaded data identifier.
And S230, packaging the page data into a closure.
S240, calling a preset page data rendering method, and rendering the page data in the closure to a target node of the embedded system based on the page configuration parameters.
The page configuration parameters comprise at least one of a data rendering attribute and a page style attribute, and are used for setting parameters of rendered page data when the page data are rendered so as to change the rendering effect of the page data. The data rendering properties may include size properties of the page data, such as one or more of a width, a length, a text font type, a font size, a font color, a text space, a number of rows/columns of a table, an image size, an image position, an image color, etc., of the page data being rendered. The page sample attribute is used for defining parameters of a rendered page where the page data is located, such as a background image, a background color, a width of the rendered page, whether a menu bar is included, whether a control is added, and the like.
Illustratively, the page configuration parameters include id name (to-be-loaded data identification) of the jssdk page (model) to be requested by the user, such as modelid: 'id 1', rendering form, e.g., type: type 1', i.e., whether page or module rendering, e.g., config: { }, the configuration of the page data, i.e., the page configuration parameters, to which node of the page to render, i.e., the target node of the embedded system, e.g., renderDom: {}.
Correspondingly, when the page data is rendered, the rendering attribute of the page data is adjusted based on the page configuration parameters to form a rendering page meeting the page configuration parameters, and the page data is rendered according to the requirement.
On the basis of the above embodiment, before calling a preset page data rendering method and rendering the page data in the closure to a target node of an embedded system, the method further includes: and acquiring user identity information corresponding to a parent page embedded by the page data, and performing authority verification on the user identity information.
Determining a parent page embedded with page data based on a target node of an embedded system, acquiring user identity information, such as cookie information, of the parent page, performing permission verification on the user identity information based on page data identification information (for example, a to-be-loaded data identification), executing a page data rendering step when the user identity information has permission to load the page data, and prompting a user that the permission to embed the page data does not exist when the user identity information does not have the permission to load the page data. And the leakage of confidential information is avoided by the authority verification of the user identity information.
According to the technical scheme, the page configuration parameters input in advance are obtained, and when the page data in the closure are rendered, the rendering attributes of the rendered page and the page data are set based on the page configuration parameters, so that the rendering flexibility of the page data is improved, and the problem that the page embedding cannot be adjusted in a self-adaptive manner due to the iframe page embedding mode is solved.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a page data embedding apparatus according to an embodiment of the present invention, where the apparatus includes:
the page data extraction module 310 is configured to obtain page data corresponding to a to-be-loaded data identifier based on the to-be-loaded data identifier;
a page data packaging module 320, configured to package the page data into a closure;
and the page data rendering module 330 is configured to invoke a preset page data rendering method, and render the page data in the closure to a target node of the embedded system.
On the basis of the above embodiment, the page data extraction module 310 is configured to:
determining an original page corresponding to the data identifier to be loaded, and extracting first data corresponding to the data identifier to be loaded and second data depended by the page data from the original page;
forming the page data based on a dependency relationship of the first data and the second data.
On the basis of the above embodiment, the apparatus further includes:
and the security verification module is used for determining a system to which the page data belongs based on the to-be-loaded data identifier and sending a verification request of the page data to the system to which the page data belongs so as to ensure that the system to which the page data belongs carries out security verification before the page data corresponding to the to-be-loaded data identifier is acquired based on the to-be-loaded data identifier.
On the basis of the above embodiment, the verification request of the page data includes a verification identifier requested from a system to which the page data belongs in advance.
On the basis of the above embodiment, the apparatus further includes:
the page configuration parameter acquisition module is used for acquiring the page configuration parameters of the page data before the page data in the closure is rendered to a target node of an embedded system;
the page data rendering module 330 is configured to:
rendering the page data in the closure to a target node of an embedded system based on the page configuration parameters.
On the basis of the above embodiment, the page configuration parameter includes at least one of a data rendering attribute and a page style attribute.
On the basis of the above embodiment, the apparatus further includes:
and the permission verification module is used for acquiring the user identity information corresponding to the parent-level page embedded by the page data before calling a preset page data rendering method and rendering the page data in the closure to a target node of the embedded system, and performing permission verification on the user identity information.
On the basis of the above embodiment, the page data at least includes local page data in the original page.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 7 illustrates a block diagram of an electronic device 412 suitable for use in implementing embodiments of the present invention. The electronic device 412 shown in fig. 7 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention. The device 412 is typically an electronic device that undertakes image classification functions.
As shown in fig. 7, the electronic device 412 is in the form of a general purpose computing device. The components of the electronic device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Electronic device 412 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 436 having a set (at least one) of program modules 426 may be stored, for example, in storage 428, such program modules 426 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 426 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), with one or more devices that enable a user to interact with the electronic device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 420. As shown, network adapter 420 communicates with the other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 416 executes various functional applications and data processing, such as implementing the page data embedding method provided by the above-described embodiment of the present invention, by executing programs stored in the storage device 428.
EXAMPLE five
Fifth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page data embedding method provided in the fifth embodiment of the present invention.
Of course, the computer program stored on the computer-readable storage medium provided by the embodiment of the present invention is not limited to the method operations described above, and may also execute the page data embedding method provided by any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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.
A computer readable signal medium may include a propagated data signal with computer readable source code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also 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.
Source code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer source code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The source 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).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A method for embedding page data, comprising:
acquiring page data corresponding to the data identifier to be loaded based on the data identifier to be loaded;
packaging the page data into a closure;
and calling a preset page data rendering method, and rendering the page data in the closure to a target node of the embedded system.
2. The method according to claim 1, wherein the obtaining of the page data corresponding to the to-be-loaded data identifier based on the to-be-loaded data identifier includes:
determining an original page corresponding to the data identifier to be loaded, and extracting first data corresponding to the data identifier to be loaded and second data depended by the page data from the original page;
forming the page data based on a dependency relationship of the first data and the second data.
3. The method according to claim 1, wherein the obtaining of the page data corresponding to the to-be-loaded data identifier based on the to-be-loaded data identifier includes:
generating a page data request based on the to-be-loaded data identifier, and sending the page data request to a server, so that the server extracts first data corresponding to the to-be-loaded data identifier and second data depended by the first data according to the to-be-loaded data identifier to form page data;
and receiving page data fed back by the server.
4. The method according to any one of claims 1 to 3, before obtaining the page data corresponding to the identifier of the data to be loaded based on the identifier of the data to be loaded, further comprising:
and determining a system to which the page data belongs based on the to-be-loaded data identifier, and sending a verification request of the page data to the system to which the page data belongs so as to ensure that the system to which the page data belongs carries out security verification.
5. The method according to claim 4, wherein the verification request of the page data includes a verification identifier requested from a system to which the page data belongs in advance.
6. The method of claim 1, wherein prior to rendering the page data in the closure to a target node of an embedded system, the method further comprises:
acquiring page configuration parameters of the page data;
the rendering the page data in the closure to a target node of an embedded system comprises:
rendering the page data in the closure to a target node of an embedded system based on the page configuration parameters.
7. The method of claim 6, wherein the page configuration parameters comprise at least one of data rendering properties and page style properties.
8. The method of claim 1, wherein before invoking a preset page data rendering method to render the page data in the closure to a target node of an embedded system, the method further comprises:
and acquiring user identity information corresponding to a parent page embedded by the page data, and performing authority verification on the user identity information.
9. The method according to claim 1, wherein the page data comprises at least local page data in a page corresponding to the data to be loaded identifier.
10. A page data embedding apparatus, comprising:
the page data extraction module is used for acquiring page data corresponding to the data identifier to be loaded based on the data identifier to be loaded;
the page data packaging module is used for packaging the page data into a closure;
and the page data rendering module is used for calling a preset page data rendering method and rendering the page data in the closure to a target node of the embedded system.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the page data embedding method according to any one of claims 1 to 9 when executing the program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the page data embedding method according to any one of claims 1 to 9.
CN202110070636.3A 2021-01-19 2021-01-19 Page data embedding method and device, storage medium and electronic equipment Pending CN114115871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110070636.3A CN114115871A (en) 2021-01-19 2021-01-19 Page data embedding method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110070636.3A CN114115871A (en) 2021-01-19 2021-01-19 Page data embedding method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114115871A true CN114115871A (en) 2022-03-01

Family

ID=80359195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110070636.3A Pending CN114115871A (en) 2021-01-19 2021-01-19 Page data embedding method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114115871A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023245369A1 (en) * 2022-06-20 2023-12-28 北京小米移动软件有限公司 Application starting method and apparatus, electronic device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023245369A1 (en) * 2022-06-20 2023-12-28 北京小米移动软件有限公司 Application starting method and apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
US8732474B1 (en) Safe installation of browser extensions
US9513937B2 (en) Method and client for using an embedded ActiveX plug-in in a browser
CN111290806B (en) Calling method and device of application program interface, computer equipment and storage medium
US20130152154A1 (en) Controlling the Release of Private Information Using Static Flow Analysis
CN111680253B (en) Page application data packet generation method and device, computer equipment and storage medium
US8965890B2 (en) Context sensitive media and information
US10558653B2 (en) Dynamic, variable-data attribute data service
WO2013101770A1 (en) Virtual channel for embedded process communication
US9996512B2 (en) Customized processing of DOM objects
CN111740948A (en) Data packet issuing method, dynamic updating method, device, equipment and medium
US10310956B2 (en) Techniques for web service black box testing
US20150317405A1 (en) Web Page Variation
CN110321504B (en) Page processing method and device
WO2019236261A2 (en) Annotating dynamic libraries for multi-os applications
CN114116078A (en) Application data processing method, device, equipment and medium based on micro front end
CN110070360B (en) Transaction request processing method, device, equipment and storage medium
CN111752820B (en) gRPC interface pressure test method, computer equipment and storage medium
CN114115871A (en) Page data embedding method and device, storage medium and electronic equipment
CN108021801B (en) Virtual desktop-based anti-leakage method, server and storage medium
CN109218284B (en) XSS vulnerability detection method and device, computer equipment and readable medium
CN113158195A (en) Distributed vulnerability scanning method and system based on POC script
CN112596838B (en) Method, device, equipment and storage medium for displaying universal Web page
US10635851B2 (en) Virtualized server side rendering
CN114185604B (en) Financial service cabin system and application method and device thereof, electronic equipment and medium
CN113760706B (en) Webpage debugging method and device

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