[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103744832B - A kind of data multiplexing method and device - Google Patents

A kind of data multiplexing method and device Download PDF

Info

Publication number
CN103744832B
CN103744832B CN201310739583.5A CN201310739583A CN103744832B CN 103744832 B CN103744832 B CN 103744832B CN 201310739583 A CN201310739583 A CN 201310739583A CN 103744832 B CN103744832 B CN 103744832B
Authority
CN
China
Prior art keywords
data
foreground
multiplexed
object model
document object
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.)
Expired - Fee Related
Application number
CN201310739583.5A
Other languages
Chinese (zh)
Other versions
CN103744832A (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.)
Guangdong Gaohang Intellectual Property Operation Co ltd
Handan Yongnian Zengfu Food Processing Plant
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310739583.5A priority Critical patent/CN103744832B/en
Publication of CN103744832A publication Critical patent/CN103744832A/en
Application granted granted Critical
Publication of CN103744832B publication Critical patent/CN103744832B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of data multiplexing method and device, it is related to technical field of data processing, is invented for lifting Consumer's Experience.Methods described includes:Graphic logic data message to be multiplexed is obtained, wherein, the graphic logic data message to be multiplexed includes the foreground DOM Document Object Model structure and the internal data of the graphic logic data to be multiplexed of the graphic logic data to be multiplexed;Using the new foreground DOM Document Object Model structure of the foreground DOM Document Object Model structural generation of the graphic logic data to be multiplexed;The new foreground DOM Document Object Model structure and the internal data of the graphic logic data to be multiplexed are associated in sticking area;According to the result being associated, the graphic logic data message to be multiplexed is presented in the sticking area.The present invention can be used in data multiplexing technique.

Description

A kind of data multiplexing method and device
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of data multiplexing method and device.
Background technology
The multiplexing of data can be accomplished in several ways in the prior art.For example the data in form are multiplexed, one As can by batch data derive or import form by way of realize;Multiplexing to element object DBMS, can be using multiple The mode of system/stickup is realized;For the multiplexing of component DBMS, can be realized by way of the component is dragged into main panel.
Realize it is of the invention during, inventor find at least there are the following problems in the prior art:
Prior art is not to graphical and possess this kind of data of logical relation(Abbreviation graphic logic data)Answer With solution is given, so as to have impact on Consumer's Experience.
The content of the invention
In view of this, the present invention provides a kind of data multiplexing method and device, to lift Consumer's Experience.
To reach above-mentioned purpose, the embodiment of the present invention is adopted the following technical scheme that:
In a first aspect, the invention provides a kind of data multiplexing method, including:
Graphic logic data message to be multiplexed is obtained, wherein, the graphic logic data packets to be multiplexed Include the foreground DOM Document Object Model structure and the graphic logic number to be multiplexed of the graphic logic data to be multiplexed According to internal data;
Using the new foreground document of the foreground DOM Document Object Model structural generation of the graphic logic data to be multiplexed Object Model Structural, wherein before the new foreground DOM Document Object Model structure and the graphic logic data to be multiplexed The logical construction of platform DOM Document Object Model structure is identical;
By the new foreground DOM Document Object Model structure and the graphic logic number to be multiplexed in sticking area According to internal data be associated;
According to the result being associated, the graphic logic data message to be multiplexed is presented in the sticking area.
It is described to obtain graphic logic data packets to be multiplexed in the first possible implementation of first aspect Include:
The foreground DOM Document Object Model structure of the graphic logic data to be multiplexed is obtained using floating menu;
Obtain described to be multiplexed by the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed The internal data of graphic logic data.
With reference to the first possible implementation of first aspect, in second possible implementation of first aspect, The utilization floating menu obtains described wait after the foreground DOM Document Object Model structure of the graphic logic data being multiplexed, the side Method also includes:
The foreground DOM Document Object Model structure is cached by global variable.
With reference to the first of first aspect and first aspect or second may implementation, first aspect the third In possible implementation, the foreground DOM Document Object Model structural generation using the graphic logic data to be multiplexed is new Foreground DOM Document Object Model structure include:
Foreground DOM Document Object Model structure according to the graphic logic data to be multiplexed is default right with structure class Should be related to, obtain the corresponding structure class of the foreground DOM Document Object Model structure;
The new foreground DOM Document Object Model is generated using the corresponding structure class of the foreground DOM Document Object Model structure Structure.
With reference to first aspect and first aspect first to the third any one possible implementation, in first aspect In 4th kind of possible implementation, the foreground DOM Document Object Model structure using the graphic logic data to be multiplexed After the new foreground DOM Document Object Model structure of generation, methods described also includes:
The new foreground DOM Document Object Model structure is set so that the new foreground DOM Document Object Model structure is followed Mouse is moved.
With reference to first aspect and first to fourth kind of first aspect any one possible implementation, in first aspect It is described that the new foreground DOM Document Object Model structure is treated multiple with described in sticking area in 5th kind of possible implementation The internal data of graphic logic data be associated including:
By in the internal data buffer of the graphic logic data to be multiplexed to foreground variable in sticking area;
Internal data in the foreground variable is set in the new foreground DOM Document Object Model structure.
With reference to the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation of first aspect, institute Stating includes the internal data buffer of the graphic logic data to be multiplexed to foreground variable in sticking area:
Text data in the internal data is converted to the data of extensible markup language form;
By in the data buffer storage of the extensible markup language form to foreground variable.
With reference to the 5th kind of possible implementation of first aspect, in the 7th kind of possible implementation of first aspect, institute State after in the internal data buffer wait the graphic logic data being multiplexed to foreground variable, methods described also includes:
The internal data is formatted treatment.
Second aspect, the invention provides a kind of data-reusing device, including:Acquiring unit is to be multiplexed for obtaining Graphic logic data message, wherein, the graphic logic data message to be multiplexed includes described to be multiplexed graphical The internal data of the foreground DOM Document Object Model structure of logical data and the graphic logic data to be multiplexed;
Generation unit, is connected with the acquiring unit, to be multiplexed graphical for what is obtained using the acquiring unit The new foreground DOM Document Object Model structure of the foreground DOM Document Object Model structural generation of logical data, wherein the new foreground text The logical construction phase of shelves Object Model Structural and the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed Together;
Associative cell, is connected with the acquiring unit and the generation unit, in sticking area by the life Into the graphic logic number to be multiplexed that the new foreground DOM Document Object Model structure of unit generation is obtained with the acquiring unit According to internal data be associated;
Processing unit, is connected with the associative cell, for the result being associated according to the associative cell, described Sticking area is presented the graphic logic data message to be multiplexed.
In the first possible implementation of second aspect, the acquiring unit includes:
First obtains subelement, the foreground text for obtaining the graphic logic data to be multiplexed using floating menu Shelves Object Model Structural;
Second obtains subelement, is connected with the described first acquisition subelement, for being obtained by the described first acquisition subelement The foreground DOM Document Object Model structure of the graphic logic data to be multiplexed for taking obtains the graphic logic number to be multiplexed According to internal data.
With reference to the first possible implementation of second aspect, in second possible implementation of second aspect, institute Stating acquiring unit also includes:
First caching subelement, is connected, with the described first acquisition subelement for caching the foreground by global variable DOM Document Object Model structure.
With reference to the first of second aspect and second aspect or second may implementation, second aspect the third In possible implementation, the generation unit includes:
3rd obtains subelement, for the foreground DOM Document Object Model knot according to the graphic logic data to be multiplexed Structure and the default corresponding relation of structure class, obtain the corresponding structure class of the foreground DOM Document Object Model structure;
Generation subelement, is connected with the described 3rd acquisition subelement, for obtaining what subelement was obtained using the described 3rd DOM Document Object Model structure corresponding structure class in foreground generates the new foreground DOM Document Object Model structure.
With reference to second aspect and second aspect first to the third any one possible implementation, in second aspect In 4th kind of possible implementation, described device also includes:
Setting unit, is connected with the generation unit, the new foreground document pair for setting the generation unit generation As model structure so that the new foreground DOM Document Object Model structure follows mouse to move.
With reference to second aspect and first to fourth kind of second aspect any one possible implementation, in second aspect In 5th kind of possible implementation, the associative cell includes:
Second caching subelement, in sticking area by the internal data of the graphic logic data to be multiplexed It is cached in the foreground variable;
Subelement is set, is connected with the described second caching subelement, for by before the described second caching subelement caching Internal data in platform variable is set in the new foreground DOM Document Object Model structure.
With reference to the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, institute Stating the second caching subelement includes:
Modular converter, the number for the text data in the internal data to be converted to extensible markup language form According to;
Cache module, is connected with the modular converter, for by the modular converter change after extensible markup language The data buffer storage of form is in the foreground variable.
With reference to the 5th kind of possible implementation of second aspect, in the 7th kind of possible implementation of second aspect, institute Stating associative cell also includes:
Subelement is formatted, is connected with the described second caching subelement, will be described for caching subelement described second Wait the graphic logic data being multiplexed internal data buffer to after in the foreground variable, the internal data is entered into row format Change is processed.
Data multiplexing method provided in an embodiment of the present invention and device, when data-reusing is carried out, obtain figure to be multiplexed Shape logical data information, wherein described information include the foreground DOM Document Object Model of the graphic logic data to be multiplexed The internal data of structure and the graphic logic data to be multiplexed;Before the graphic logic data to be multiplexed The new foreground DOM Document Object Model structure of platform DOM Document Object Model structural generation;By the new foreground document in sticking area Object Model Structural is associated with the internal data of the graphic logic data to be multiplexed;According to the knot being associated Really, the graphic logic data message to be multiplexed is presented in the sticking area.Therefore, provided using the embodiment of the present invention Data multiplexing method and device, carry out a series for the treatment of by the graphic logic data for treating multiplexing, it is right to realize Graphic logic data can not be multiplexed and influenceed user by the multiplexing of graphic logic data so as to avoid prior art The defect of experience, improves Consumer's Experience.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will use needed for embodiment description Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the flow chart of the data multiplexing method of the embodiment of the present invention one;
Fig. 2 is a schematic diagram of graphic logic data;
Fig. 3 is the flow chart of the data multiplexing method of the embodiment of the present invention two;
Fig. 4 is the flow chart of the data multiplexing method step 26 of the embodiment of the present invention two;
Fig. 5 is the structure chart of the data-reusing device of the embodiment of the present invention three;
Fig. 6 is a schematic diagram of the data-reusing device of the embodiment of the present invention three;
Fig. 7 is another schematic diagram of the data-reusing device of the embodiment of the present invention three;
Fig. 8 is another schematic diagram of the data-reusing device of the embodiment of the present invention three;
Fig. 9 is another schematic diagram of the data-reusing device of the embodiment of the present invention three;
Figure 10 is the structural representation of the data-reusing equipment of the embodiment of the present invention four.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
In order to lift Consumer's Experience, as shown in figure 1, the embodiment of the present invention one provides a kind of data multiplexing method, including:
Step 11, obtain graphic logic data message to be multiplexed.
Wherein, the graphic logic data refer to data that are graphical and possessing logical relation, described to be multiplexed Graphic logic data message includes the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed and described The internal data of graphic logic data to be multiplexed.
Data in such as Fig. 2 in the rectangle frame of lower right, these data include foreground DOM Document Object Model(Document Object Model,DOM)Structure, that is, the patterned structure in foreground for showing.The patterned structure can realize some work( Can, such as user after the small inverted triangle for clicking on " Secon " right by that can eject the functions such as drop-down menu.The graphic logic The data also internal data including graphic logic data, the numeral " 1 " in the small rectangle frame in such as Fig. 2 before " Secon ".This Individual " 1 " is the data being input into above-mentioned patterned structure.After it have input digital " 1 ", can be by " 1 " storage in database In.Wherein, the graphic logic data are multiplexed on the browser that can be commonly used in user.
Wherein, the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed can be pre-defined, and be made It is corresponding with corresponding structure class.For example assume there is structure class B, the corresponding DOM structures of structure class B can be defined as b in advance. When subsequently using structure class B, in the case where structure class B is obtained, so that it may obtain DOM structure b corresponding with it.Also, such as Described in upper example, can be by the inside of the graphic logic data to be multiplexed corresponding with the foreground DOM Document Object Model structure Data storage is in database.
Wherein, in a particular application, it is described to obtain graphic logic data message to be multiplexed and include:Using floating menu The foreground DOM Document Object Model structure of the graphic logic data to be multiplexed is obtained, then by the figure to be multiplexed The foreground DOM Document Object Model structure for changing logical data obtains the internal data of the graphic logic data to be multiplexed.
Wherein, the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed is obtained using floating menu Realized using the method for obtaining foreground DOM Document Object Model structure using floating menu in the prior art, will not be repeated here. After the foreground DOM Document Object Model structure for obtaining the graphic logic data to be multiplexed, can be according to the foreground document Object Model Structural, using the method for the acquisition data defined in the corresponding structure class of foreground DOM Document Object Model structure(Such as GetData () method), obtain the internal data of the graphic logic data to be multiplexed.
Step 12, using the graphic logic data to be multiplexed foreground DOM Document Object Model structural generation it is new before Platform DOM Document Object Model structure.Wherein.The new foreground DOM Document Object Model structure and the graphic logic to be multiplexed The logical construction of the foreground DOM Document Object Model structure of data is identical, i.e., described new foreground DOM Document Object Model structure with it is described The foreground DOM Document Object Model structure of graphic logic data to be multiplexed in structure and first-class in the function of realizing all is Identical.
Wherein, this step is specifically included:First according to the foreground document object of the graphic logic data to be multiplexed Model structure and the default corresponding relation of structure class, obtain the corresponding structure class of the foreground DOM Document Object Model structure.Then The new foreground DOM Document Object Model structure is generated using the corresponding structure class of the foreground DOM Document Object Model structure.Its In, foreground DOM Document Object Model structure and the corresponding relation of structure class of the graphic logic data to be multiplexed can set in advance It is set to:Structure Class Type belonging to the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed is set, and Each structure Class Type is set to it is corresponding with corresponding structure class so that the graphic logic data to be multiplexed Foreground DOM Document Object Model structure is corresponding with corresponding structure class.For example, in the process, can be by the foreground document object Model structure, obtains the structure Class Type of graphic logic data to be multiplexed, by the graphic logic number to be multiplexed According to structure Class Type obtain corresponding structure class, given birth to using the method for generation foreground DOM Document Object Model structure in the prior art Into corresponding new foreground DOM Document Object Model structure.Wherein, the new foreground DOM Document Object Model structure of the generation and step The logical construction of the foreground DOM Document Object Model structure obtained in rapid 11 is identical.
It is step 13, in sticking area that the new foreground DOM Document Object Model structure is to be multiplexed graphical with described The internal data of logical data is associated.
This step is specifically included:By the internal data buffer of the graphic logic data to be multiplexed in sticking area To in the variable of foreground, and the internal data in the foreground variable is set in the foreground DOM Document Object Model structure.
Wherein, in actual applications, the internal data buffer by the graphic logic data to be multiplexed is to preceding Platform variable includes:Text data in the internal data is converted to the data of extensible markup language form, and by institute The data buffer storage of extensible markup language form is stated in the foreground variable.
For example, by taking reuse pattern logical data on a web browser as an example, the text data in the internal data is turned It is changed to extensible markup language(XML)The data of form, cache the data of these XML formats in the variable of foreground afterwards.Wherein, Using the processing method to extensible markup language(Such as dojo)Text data in the internal data is converted into XML lattice The data of formula.
Wherein, the internal data in the variable of the foreground DOM Document Object Model structure is set to the foreground document pair As that can be realized by the method for the setting area thresholding defined in structure class in model structure.For example, by taking above example as an example, After caching the data of the XML format, using setData(data)Method the data of these XML formats set arrive In corresponding foreground DOM Document Object Model structure.
The result that step 14, basis are associated, the graphic logic number to be multiplexed is presented in the sticking area It is believed that breath.Associated with the internal data of the graphic logic data to be multiplexed in the foreground DOM Document Object Model structure The graphic logic data message to be multiplexed can be presented in sticking area afterwards.
As seen from the above, the data multiplexing method that the embodiment of the present invention one is provided, obtains graphic logic data first Foreground DOM Document Object Model structure and the graphic logic data internal data, new foreground document pair is generated afterwards As model structure, and new foreground DOM Document Object Model structure and the internal data of the graphic logic data are closed Connection, it is to be capable of achieving the multiplexing to graphic logic data that the graphic logic data finally are presented in sticking area, so as to keep away Exempt from the defect that prior art can not be multiplexed on graphic logic data and be influenceed Consumer's Experience, improve Consumer's Experience.
The data multiplexing method of the embodiment of the present invention will be illustrated in greater detail below, for the ease of description, at this In inventive embodiments two, it is assumed that graphic logic data to be multiplexed are the graphic logic data A on browsing device net page, and A Including two parts:The internal data A2 of foreground DOM Document Object Model the structure A1 and A of A.
As shown in figure 3, the embodiment of the present invention two provides a kind of data multiplexing method, can be by way of copy/paste Realization includes:
(1)Replicate graphic logic data to be multiplexed, including step 21- steps 24.
Step 21, the foreground DOM Document Object Model knot that the graphic logic data to be multiplexed are obtained using floating menu Structure.
Step 22, obtained in the graphic logic data to be multiplexed by the foreground DOM Document Object Model structure Portion's data.
Wherein, the internal data of the graphic logic data to be multiplexed can be the graphic logic to be multiplexed The data for being input into during the use of data or being produced, such as numeral " 1 " in the step 11 of the embodiment of the present invention one, inside these These data are stored when data input or generation, is such as storable in database.
Step 23, the foreground DOM Document Object Model structure is cached by global variable.
Step 24, the foreground DOM Document Object Model structure using caching, generate new foreground DOM Document Object Model knot Structure.Wherein, graphic logic data to be multiplexed in the new foreground DOM Document Object Model structure and step 21 The logical construction of foreground DOM Document Object Model structure is identical.
Step 25, the setting new foreground DOM Document Object Model structure so that the new foreground DOM Document Object Model Structure follows mouse to move.It is described the new foreground DOM Document Object Model structure is set to be:By the new foreground text Shelves Object Model Structural is bound with mouse.New foreground DOM Document Object Model structure described afterwards can follow mouse to move It is dynamic.Additionally, the relative position of the new foreground DOM Document Object Model structure and mouse may further be provided.
In addition, can point out the user can not to be pasted in this position when mouse moves to illegal position.Wherein, it is described non- Tagmeme is set to the position that can not be pasted, and illegal position can be the position where other graphic logic data as described Or the edge of browsing device net page etc..The prompting can be occur forbidding symbol etc..
Illustrate below and step 21- steps 25 are illustrated.For example, JS can be advanced with(JavaScript)Create one Class libraries, can there is multiple structure classes in class libraries, therefore also just have multiple types, and each type has corresponding DOM structure. And a floating menu is created, there can be multiple options in the floating menu, including " duplication " option is, it is necessary to when being multiplexed A, by mouse The position where moving to A is marked, each option on floating menu will show, clicks on " duplication " option therein, so that it may To obtain the type of the structure class of A.The structure Class Type of the A by obtaining, the structure Class Type according to A obtains corresponding structure Class, the corresponding relation further according to the structure class and DOM structure can obtain the DOM structure A1 of A.Wherein, can be in the corresponding knots of A1 The method for obtaining data, such as getData are pre-defined in structure class(data)Method, using the method can obtain it is corresponding with A1 Internal data A2.A1 is cached by global variable afterwards.Using the A1 of caching, new foreground DOM Document Object Model structure is generated A1’.A1 ' is bound with mouse again, so that A1 ' follows mouse to move.Wherein, newly-generated A1 ' and A1 is identical 's.
It should be noted that because the logical construction of A1 ' and A1 is identical, therefore in actual applications, step The internal data of the graphic logic data to be multiplexed obtained in 22 also can be by the new foreground DOM Document Object Model knot Structure is obtained, you can obtain A2 by A1 '.
(2)Paste the graphic logic data to be multiplexed, including step 26- steps 27.
It is step 26, in sticking area that the new foreground DOM Document Object Model structure is to be multiplexed graphical with described The internal data of logical data is associated.
As shown in figure 4, this step is specifically included:
Step 261, by the internal data buffer of the graphic logic data to be multiplexed to foreground variable.Specifically , the text data in the internal data is converted to the data of extensible markup language form, and by the expansible mark Remember the data buffer storage of language format in the foreground variable.This step can refer to retouching in the step 13 of the embodiment of the present invention one State, will not be repeated here.
Step 262, the internal data in the foreground variable is set to the new foreground DOM Document Object Model structure In.
For example, after internal data A2 is obtained in step 22, A2 is cached in the foreground variable of browser, then will browse Internal data A2 in the foreground variable of device is set in A1 '.
Step 27, the graphic logic data message to be multiplexed is presented in the sticking area.For example pasting area Domain is presented A, both including A1 '(A1 ' is identical with the logical construction of A1)Also A2 is included, so as to complete to the figure to be multiplexed The multiplexing of shape logical data.
As seen from the above, the data multiplexing method that the embodiment of the present invention two is provided, obtains graphic logic data first Foreground DOM Document Object Model structure and the graphic logic data internal data, new foreground document pair is generated afterwards As model structure, and new foreground DOM Document Object Model structure and the internal data of the graphic logic data are closed Connection, it is to be capable of achieving the multiplexing to graphic logic data that the graphic logic data finally are presented in sticking area, so as to keep away Exempt from the defect that prior art can not be multiplexed on graphic logic data and be influenceed Consumer's Experience, improve Consumer's Experience.
In addition, in order to continue to be multiplexed the graphic logic data later, after step 261, the data are answered Be may also include with method:The internal data is formatted treatment.The redundant data that browser itself can be avoided to produce Influence is produced during on later data-reusing.Meanwhile, can also be right after successfully the graphic logic data are multiplexed Whole foreground where the graphic logic data carries out typesetting to ensure the aesthetic property on foreground.And also caching can be removed The foreground DOM Document Object Model structure of the graphic logic data to be multiplexed, with the operation before guarantee to subsequent operation without Influence.
As shown in figure 5, the embodiment of the present invention three provides a kind of device of multiplex data, including:Acquiring unit 31, is used for Graphic logic data message to be multiplexed is obtained, wherein, the graphic logic data message to be multiplexed includes described treating The inside of the foreground DOM Document Object Model structure of the graphic logic data of multiplexing and the graphic logic data to be multiplexed Data;Generation unit 32, is connected with the acquiring unit 31, for the figure to be multiplexed obtained using the acquiring unit 31 Change the new foreground DOM Document Object Model structure of the foreground DOM Document Object Model structural generation of logical data, wherein the new foreground The logical construction of DOM Document Object Model structure and the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed It is identical;Associative cell 33, is connected with the acquiring unit 31 and the generation unit 32, for inciting somebody to action described in sticking area It is to be multiplexed graphical that new foreground DOM Document Object Model structure and the acquiring unit 31 of the generation of generation unit 32 are obtained The internal data of logical data is associated;Processing unit 34, is connected with the associative cell 33, for according to the association table The result that unit 33 is associated, the graphic logic data message to be multiplexed is presented in the sticking area.
Wherein, as shown in fig. 6, the acquiring unit 31 includes:First obtains subelement 311, for utilizing floating menu Obtain the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed;Second obtains subelement 312, and described First acquisition subelement 311 is connected, for obtaining the graphic logic number to be multiplexed that subelement 311 is obtained by described first According to foreground DOM Document Object Model structure obtain the internal data of the graphic logic data to be multiplexed.
Wherein, as shown in fig. 6, the acquiring unit 31 also includes:First caching subelement 313, obtains with described first Subelement 311 is connected, for caching the foreground DOM Document Object Model structure by global variable.
Wherein, as shown in fig. 7, the generation unit 32 includes:3rd obtains subelement 321, for treating multiple according to The foreground DOM Document Object Model structure of graphic logic data and the default corresponding relation of structure class, obtain the foreground text The corresponding structure class of shelves Object Model Structural;Generation subelement 322, is connected, with the described 3rd acquisition subelement 321 for utilizing Described 3rd obtains the foreground DOM Document Object Model structure corresponding structure class generation new foreground document that subelement is obtained Object Model Structural.
Wherein, as shown in figure 8, the associative cell 33 includes:Second caching subelement 331, in sticking area By in the internal data buffer of the graphic logic data to be multiplexed to foreground variable;Subelement 332 is set, with described the Two caching subelements 331 are connected, and are set for caching the internal data in the foreground variable that subelement 331 is cached by described second To in the new foreground DOM Document Object Model structure.Wherein, the second caching subelement 321 includes:Modular converter, is used for Text data in the internal data is converted to the data of extensible markup language form;Cache module, with the conversion Module is connected, for the modular converter to be changed after extensible markup language form data buffer storage to the foreground variable In.
Wherein, as shown in figure 9, described device also includes:Setting unit 35, is connected, with the generation unit 32 for setting Put the new foreground DOM Document Object Model structure of the generation of the generation unit 32 so that the new foreground DOM Document Object Model knot Structure follows mouse to move, so that user has more preferable visual experience.
Wherein, the operation principle of described device can refer to the description in preceding method embodiment, will not be repeated here.
As seen from the above, the data-reusing device that the embodiment of the present invention three is provided, during multiplex data, by obtaining figure Change the foreground DOM Document Object Model structure of logical data and the internal data of the graphic logic data;Generate afterwards new Foreground DOM Document Object Model structure, and by the inside number of new foreground DOM Document Object Model structure and the graphic logic data According to being associated;It is to be capable of achieving the multiplexing to graphic logic data that the graphic logic data are presented in sticking area, from And the defect that prior art can not be multiplexed on graphic logic data and be influenceed Consumer's Experience is avoided, improve user's body Test.
In addition, as shown in figure 8, the associative cell 33 also includes:Subelement 333 is formatted, with the described second caching Unit 331 is connected, for caching subelement 331 by the internal data of the graphic logic data to be multiplexed described second After being cached in the foreground variable, the internal data is formatted treatment.
As seen from the above, the internal data place of being formatted is comprehended the redundant digit for avoiding browser itself from producing Influence is produced during according on later data-reusing.
Figure 10 is the structural representation of the data-reusing equipment that the embodiment of the present invention four is provided.As shown in Figure 10, this implementation The message processing device of example includes:At least one processor 1001, memory 1002, communication interface 1003 and bus.Processor 1001st, memory 1002 and communication interface 1003 are connected by bus and complete mutual communication.The bus can be work Industry standard architecture(Industry Standard Architecture, referred to as ISA)Bus, external equipment interconnection (Peripheral Component, referred to as PCI)Bus or extended industry-standard architecture(Extended Industry Standard Architecture, referred to as EISA)Bus etc..The bus can be divided into address bus, data/address bus, control Bus processed etc..For ease of representing, only represented with a thick line in Figure 10, it is not intended that only one bus or a type of Bus.Wherein:
Memory 1002 is used to store executable program code, and the program code includes computer-managed instruction.Memory 1002 may include high-speed RAM memory, it is also possible to also including nonvolatile memory(non-volatile memory), example Such as at least one magnetic disk storage.
In one embodiment, processor 1001 is transported by reading the executable program code stored in memory 1002 Row program corresponding with the executable program code, for:
Graphic logic data message to be multiplexed is obtained, wherein, the graphic logic data packets to be multiplexed Include the foreground DOM Document Object Model structure and the graphic logic number to be multiplexed of the graphic logic data to be multiplexed According to internal data;Using the new foreground of the foreground DOM Document Object Model structural generation of the graphic logic data to be multiplexed DOM Document Object Model structure, wherein the new foreground DOM Document Object Model structure and the graphic logic data to be multiplexed Foreground DOM Document Object Model structure logical construction it is identical;In sticking area by the foreground DOM Document Object Model structure with The internal data of the graphic logic data to be multiplexed is associated;According to the result being associated, in the stickup area Domain is presented the graphic logic data message to be multiplexed.
Processor 1001 is probably a central processing unit(Central Processing Unit, referred to as CPU), or Person is specific integrated circuit(Application Specific Integrated Circuit, referred to as ASIC), or quilt It is configured to implement one or more integrated circuits of the embodiment of the present invention.
It should be noted that, above-mentioned processor 1001 is in addition to above-mentioned functions, it may also be used for perform above method reality Other flows in example are applied, be will not be repeated here.
Communication interface 1003 is mainly used in realizing between the message processing device of the present embodiment and other equipment or device Communication.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (16)

1. a kind of data multiplexing method, it is characterised in that including:
Graphic logic data message to be multiplexed is obtained, wherein, the graphic logic data message to be multiplexed includes institute State the foreground DOM Document Object Model structure and the graphic logic data to be multiplexed of graphic logic data to be multiplexed Internal data;
Using the new foreground document object of the foreground DOM Document Object Model structural generation of the graphic logic data to be multiplexed Model structure, wherein the new foreground DOM Document Object Model structure is literary with the foreground of the graphic logic data to be multiplexed The logical construction of shelves Object Model Structural is identical;
By the new foreground DOM Document Object Model structure and the graphic logic data to be multiplexed in sticking area Internal data is associated;
According to the result being associated, the graphic logic data message to be multiplexed is presented in the sticking area.
2. data multiplexing method according to claim 1, it is characterised in that described to obtain graphic logic number to be multiplexed It is believed that breath includes:
The foreground DOM Document Object Model structure of the graphic logic data to be multiplexed is obtained using floating menu;
The figure to be multiplexed is obtained by the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed Change the internal data of logical data.
3. data multiplexing method according to claim 2, it is characterised in that treated described in being obtained in the utilization floating menu After the foreground DOM Document Object Model structure of the graphic logic data of multiplexing, methods described also includes:
The foreground DOM Document Object Model structure is cached by global variable.
4. according to any described data multiplexing methods of claim 1-3, it is characterised in that described using the figure to be multiplexed The foreground DOM Document Object Model structure that the foreground DOM Document Object Model structural generation of shape logical data is new includes:
Foreground DOM Document Object Model structure according to the graphic logic data to be multiplexed is closed with the default corresponding of structure class System, obtains the corresponding structure class of the foreground DOM Document Object Model structure;
The new foreground DOM Document Object Model structure is generated using the corresponding structure class of the foreground DOM Document Object Model structure.
5. according to any described data multiplexing methods of claim 1-3, it is characterised in that described using the figure to be multiplexed After the new foreground DOM Document Object Model structure of the foreground DOM Document Object Model structural generation of shape logical data, methods described is also Including:
The new foreground DOM Document Object Model structure is set so that the new foreground DOM Document Object Model structure follows mouse It is mobile.
6. according to any described data multiplexing methods of claim 1-3, it is characterised in that described to incite somebody to action described in sticking area New foreground DOM Document Object Model structure and the internal data of the graphic logic data to be multiplexed be associated including:
By in the internal data buffer of the graphic logic data to be multiplexed to foreground variable in sticking area;
Internal data in the foreground variable is set in the new foreground DOM Document Object Model structure.
7. data multiplexing method according to claim 6, it is characterised in that described to wait to be multiplexed by described in sticking area The internal data buffer of graphic logic data include to foreground variable:
Text data in the internal data is converted to the data of extensible markup language form;
By in the data buffer storage of the extensible markup language form to foreground variable.
8. data multiplexing method according to claim 6, it is characterised in that described to wait to be multiplexed by described in sticking area Graphic logic data internal data buffer to after in the variable of foreground, methods described also includes:
The internal data is formatted treatment.
9. a kind of data-reusing device, it is characterised in that including:
Acquiring unit, for obtaining graphic logic data message to be multiplexed, wherein, the graphic logic number to be multiplexed It is believed that breath includes the foreground DOM Document Object Model structure and the figure to be multiplexed of the graphic logic data to be multiplexed Change the internal data of logical data;
Generation unit, is connected with the acquiring unit, for the graphic logic to be multiplexed obtained using the acquiring unit The new foreground DOM Document Object Model structure of the foreground DOM Document Object Model structural generation of data, wherein the new foreground document pair As model structure is identical with the logical construction of the foreground DOM Document Object Model structure of the graphic logic data to be multiplexed;
Associative cell, is connected with the acquiring unit and the generation unit, in sticking area that the generation is single The graphic logic data to be multiplexed that the new foreground DOM Document Object Model structure of unit's generation is obtained with the acquiring unit Internal data is associated;
Processing unit, is connected with the associative cell, for the result being associated according to the associative cell, in the stickup Region is presented the graphic logic data message to be multiplexed.
10. data-reusing device according to claim 9, it is characterised in that the acquiring unit includes:
First obtains subelement, the foreground document pair for obtaining the graphic logic data to be multiplexed using floating menu As model structure;
Second obtains subelement, is connected with the described first acquisition subelement, for obtaining what subelement was obtained by described first The foreground DOM Document Object Model structure of graphic logic data to be multiplexed obtains the graphic logic data to be multiplexed Internal data.
11. data-reusing devices according to claim 10, it is characterised in that the acquiring unit also includes:
First caching subelement, is connected, with the described first acquisition subelement for caching the foreground document by global variable Object Model Structural.
12. according to any described data-reusing devices of claim 9-11, it is characterised in that the generation unit includes:
3rd obtains subelement, for the foreground DOM Document Object Model structure according to the graphic logic data to be multiplexed with The default corresponding relation of structure class, obtains the corresponding structure class of the foreground DOM Document Object Model structure;
Generation subelement, is connected with the described 3rd acquisition subelement, for obtaining the foreground that subelement is obtained using the described 3rd The corresponding structure class of DOM Document Object Model structure generates the new foreground DOM Document Object Model structure.
13. according to any described data-reusing devices of claim 9-11, it is characterised in that described device also includes:
Setting unit, is connected with the generation unit, the new foreground document object mould for setting the generation unit generation Type structure so that the new foreground DOM Document Object Model structure follows mouse to move.
14. according to any described data-reusing devices of claim 9-11, it is characterised in that the associative cell includes:
Second caching subelement, in sticking area by the internal data buffer of the graphic logic data to be multiplexed To in the variable of foreground;
Subelement is set, is connected with the described second caching subelement, for the foreground of the described second caching subelement caching to be become Internal data in amount is set in the new foreground DOM Document Object Model structure.
15. data-reusing devices according to claim 14, it is characterised in that the second caching subelement includes:
Modular converter, the data for the text data in the internal data to be converted to extensible markup language form;
Cache module, is connected with the modular converter, for by the modular converter change after extensible markup language form Data buffer storage in the variable of foreground.
16. data-reusing devices according to claim 14, it is characterised in that the associative cell also includes:
Subelement is formatted, is connected with the described second caching subelement, for treating multiple by described in the described second caching subelement The internal data is formatted treatment by the internal data buffer of graphic logic data to after in the variable of foreground.
CN201310739583.5A 2013-12-27 2013-12-27 A kind of data multiplexing method and device Expired - Fee Related CN103744832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310739583.5A CN103744832B (en) 2013-12-27 2013-12-27 A kind of data multiplexing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310739583.5A CN103744832B (en) 2013-12-27 2013-12-27 A kind of data multiplexing method and device

Publications (2)

Publication Number Publication Date
CN103744832A CN103744832A (en) 2014-04-23
CN103744832B true CN103744832B (en) 2017-06-06

Family

ID=50501850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310739583.5A Expired - Fee Related CN103744832B (en) 2013-12-27 2013-12-27 A kind of data multiplexing method and device

Country Status (1)

Country Link
CN (1) CN103744832B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988986A (en) * 2015-02-26 2016-10-05 阿里巴巴集团控股有限公司 Information processing method and device
CN117667052A (en) * 2022-08-30 2024-03-08 北京沃东天骏信息技术有限公司 Visual processing method, device and system for front-end business logic

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3528989B2 (en) * 1995-01-20 2004-05-24 ソニー株式会社 Data multiplexing device, data multiplexing method, multiplexed data processing device, and multiplexed data processing method
US8042065B2 (en) * 2005-11-17 2011-10-18 Microsoft Corporation Smart copy/paste of graphical nodes
CN102426519B (en) * 2011-08-26 2014-03-26 北京邮电大学 Linked data-based multiplexing method of business process execution language (BPEL) templates and services, and system thereof
CN102880462A (en) * 2012-08-29 2013-01-16 青岛海信网络科技股份有限公司 Method and device for generating configuration monitoring object based on graph mode integration

Also Published As

Publication number Publication date
CN103744832A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
CN110058856A (en) Page configuration method and device
CN104111918B (en) The accessible processing method and accessible web device of web page contents
CN104461484B (en) The implementation method and device of front-end template
CN104020984B (en) A kind of method and device for generating static page
CN102096581B (en) Method and device for generating widget
US20100250649A1 (en) Scope-Based Extensibility for Control Surfaces
CN107329747A (en) A kind of method and device for generating multi-threaded pattern
CN107992299B (en) Neural network hyper-parameter extraction and conversion method, system, device and storage medium
CN107656914A (en) Form generation method, device, terminal device and the storage medium of configurableization
CN104915186B (en) A kind of method and apparatus making the page
CN107291462A (en) The self-defined method of combination of interactive data system, system and compiling, operation method
CN107895394A (en) Animation effect implementation method, device, terminal device and storage medium
CN103530386B (en) The edit methods and browser of browsing device net page
CN105867944B (en) Web front end data operation layer and its implementation
CN111258575A (en) Page layout processing method and device
CN102707945A (en) Implementation method of form designer based on layout template in Eclipse
CN106886398A (en) The extracting method and equipment of a kind of CSS
CN106933887A (en) A kind of data visualization method and device
CN103744832B (en) A kind of data multiplexing method and device
CN113655999A (en) Rendering method, device and equipment of page control and storage medium
CN104461298A (en) Screen capturing method and screen capturing tool
CN105426033A (en) Method and apparatus for displaying prompt information
CN107330014A (en) The creation method and equipment of a kind of tables of data
CN107133206A (en) A kind of digital content makes and demonstration tool and its application
JP5759187B2 (en) A program for converting an SWF format image representation by AdobeFlash (registered trademark) into an HTML format image representation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191210

Address after: 056000 new industrial zone, Dongjie, Guangfu Town, Yongnian District, Handan City, Hebei Province

Patentee after: Handan Yongnian Zengfu food processing plant

Address before: 510000 unit 2414-2416, building, No. five, No. 371, Tianhe District, Guangdong, China

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20191210

Address after: 510000 unit 2414-2416, building, No. five, No. 371, Tianhe District, Guangdong, China

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170606