CN110704105A - Data migration method, terminal and storage medium - Google Patents

Data migration method, terminal and storage medium Download PDF

Info

Publication number
CN110704105A
CN110704105A CN201910939516.5A CN201910939516A CN110704105A CN 110704105 A CN110704105 A CN 110704105A CN 201910939516 A CN201910939516 A CN 201910939516A CN 110704105 A CN110704105 A CN 110704105A
Authority
CN
China
Prior art keywords
card
terminal
data
page
plug
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.)
Granted
Application number
CN201910939516.5A
Other languages
Chinese (zh)
Other versions
CN110704105B (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201910939516.5A priority Critical patent/CN110704105B/en
Publication of CN110704105A publication Critical patent/CN110704105A/en
Application granted granted Critical
Publication of CN110704105B publication Critical patent/CN110704105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data migration method, a terminal and a storage medium, which are used in the field of software. The method in the embodiment of the application comprises the following steps: the method comprises the steps that a first terminal receives a data transplantation request sent by a second terminal, wherein the data transplantation request comprises information of a first card to be transplanted; the first terminal acquires the first card according to the information of the first card to be transplanted, wherein the first card comprises data content on a first page; the first terminal generates a plug-in according to the first card, wherein the plug-in comprises data content of the first card and a program for constructing the first card; the first terminal sends the plug-in to the second terminal, so that the second terminal can transfer the data content on the first page to the second page through the plug-in.

Description

Data migration method, terminal and storage medium
Technical Field
The embodiment of the application relates to the field of software, in particular to a data migration method, a terminal and a storage medium.
Background
When a document is developed, the business often uses related contents such as charts, various digital graphs and the like, and generally writes a transliteration script language (JS, javascript) on a development page of the business for development.
When we develop by writing JS, it often takes a lot of time to get familiar with the attribute names to be modified and to spend a lot of effort to write codes, but the data content on the first page after the first page is written cannot be copied to the second page, the terminal to which the first page belongs is called a first terminal, and the terminal to which the second page belongs is a second terminal. The data content on the first page has no portability, and the data content on the first page is often developed again when the data content on the second page is displayed.
When a user wants to show the same related content on a second page, the data content on the first page after the first page is written cannot be copied to the second page, the data content on the first page is not portable, the user needs to develop again on the second page, and the development efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data transplanting method which can improve the development efficiency.
A first aspect of an embodiment of the present application provides a method for data migration, including:
a first terminal receives a data transplantation request sent by a second terminal, wherein the data transplantation request comprises information of a first card to be transplanted;
the first terminal acquires a first card according to the information of the first card to be transplanted, wherein the first card comprises data content on a first page;
the first terminal generates a plug-in according to the first card, wherein the plug-in comprises data content of the first card and a program for constructing the first card;
and the first terminal sends the plug-in to the second terminal, so that the second terminal transplants the data content on the first page to a second page through the plug-in.
Optionally, before the first terminal obtains the first card according to the information of the first card to be transplanted, the method further includes:
the first terminal acquires data content on the first page;
the first terminal generates the first card according to the data content on the first page;
and the first terminal stores the first card to a card library.
Optionally, the first card includes an attribute editor, a data editor, and a dynamic display interface, where the dynamic display interface is used to display an editing effect of the first card.
Optionally, the generating, by the terminal, the first card according to the data content on the first page includes:
the first terminal generates a first card according to the data content on the first page;
the first terminal receives a first card expansion instruction, wherein the expansion instruction is used for indicating the operation of editing, deleting or copying the first card;
and the first terminal executes corresponding operation on the first card according to the first card expansion instruction so as to generate the second card.
Optionally, the generating, by the first terminal, the plug-in component according to the first card includes:
the first terminal acquires the data content of the first card and the construction program of the first card;
and the first terminal generates the plug-in according to the data content of the first card and the construction program of the first card.
A second aspect of the embodiments of the present application provides a data migration method, including:
the method comprises the steps that a second terminal sends a data transplantation request to a first terminal, wherein the data transplantation request comprises information of a first card to be transplanted;
the second terminal receives a plug-in sent by the first terminal, the plug-in comprises data content of a first card and a program for constructing the first card, and the first card comprises the data content on a first page;
and the second terminal transplants the data content on the first page to a second page through the plug-in.
Optionally, the migrating, by the second terminal, the data content on the first page to the second page through the plug-in includes:
the second terminal introduces the plug-in a second page;
the terminal constructs the first card according to the plug-in;
and the second terminal displays the first card in the second page.
Optionally, the step of the terminal calling the program for constructing the first card according to the plug-in to construct the first card by the terminal includes:
the second terminal calls the data content of the first card and constructs a program of the first card according to the plug-in;
and the second terminal constructs the first card according to the data content and the program.
Optionally, before the terminal invokes the program for constructing the first card according to the plug-in to construct the first card, the method further includes:
the second terminal receives a data modification instruction;
and the second terminal modifies the first card according to the data modification instruction to generate a third card.
A third aspect of the embodiments of the present application provides a terminal, including:
the receiving unit is used for receiving a data transplantation request sent by the second terminal, and the data transplantation request comprises information of a first card to be transplanted;
the acquisition unit is used for acquiring a first card according to the information of the first card to be transplanted, and the first card comprises data content on a first page;
a generating unit for generating an insert from the first card, the insert including data content of the first card and a program for constructing the first card;
and the sending unit is used for sending the plug-in to the second terminal so that the second terminal can transplant the data content on the first page to a second page through the plug-in.
A fourth aspect of embodiments of the present application provides a terminal, including:
the data migration device comprises a sending unit, a data migration unit and a data migration unit, wherein the sending unit is used for sending a data migration request to a first terminal, and the data migration request comprises information of a first card to be migrated;
the receiving unit is used for receiving a plug-in sent by a first terminal, the plug-in comprises data content of a first card and a program for constructing the first card, and the first card comprises the data content on a first page;
and the migration unit is used for migrating the data content on the first page to a second page through the plug-in.
A fifth aspect of an embodiment of the present application provides a terminal, including:
the system comprises a processor, a memory, a bus and input and output equipment;
the processor is connected with the memory and the input and output equipment;
the bus is respectively connected with the processor, the memory and the input and output equipment;
the processor performs the method of the first aspect or any possible implementation manner of the first aspect.
A sixth aspect of an embodiment of the present application provides a terminal, including:
the system comprises a processor, a memory, a bus and input and output equipment;
the processor is connected with the memory and the input and output equipment;
the bus is respectively connected with the processor, the memory and the input and output equipment;
the processor performs the method of the second aspect or any possible implementation manner of the second aspect.
A seventh aspect of embodiments of the present application provides a computer storage medium, where instructions are stored in the computer storage medium, and when the instructions are executed on a computer, the computer is caused to execute the method according to the first aspect or any possible implementation manner of the first aspect.
An eighth aspect of the present embodiment provides a computer storage medium, where instructions are stored in the computer storage medium, and when the instructions are executed on a computer, the computer is caused to execute a method according to any one of the second aspect and the possible implementation manner of the second aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a data transplantation method, wherein after a first terminal receives a data transplantation request sent by a second terminal, the first terminal obtains a card according to information of the card to be transplanted, and the obtained card comprises data content on a first page. And the first terminal generates a plug-in according to the acquired card, wherein the plug-in has portability and comprises a program for constructing the card. The first terminal sends the generated plug-in to the second terminal, the second terminal transplants the data content on the first page to the second page through the plug-in, and a user does not need to develop the data content again on the second page, so that the development efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating a data migration method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a data migration method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a data migration method according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram illustrating a data migration method according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another data migration method in the embodiment of the present application;
FIG. 6 is a schematic structural diagram of another data migration method in the embodiment of the present application;
FIG. 7 is a schematic structural diagram of another data migration method in the embodiment of the present application;
FIG. 8 is a schematic flow chart illustrating a data migration method according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of another data migration method in the embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another terminal provided in the embodiment of the present application;
fig. 12 is a schematic structural diagram of another terminal provided in the embodiment of the present application;
fig. 13 is a schematic structural diagram of another terminal provided in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a data transplanting method which can improve the development efficiency.
Referring to fig. 1, an embodiment of a method for data migration in an embodiment of the present application includes:
101. the first terminal receives a data migration request sent by the second terminal.
When a user edits a webpage and needs to use data on another webpage, the webpage edited by the user is called a second page, and the webpage needing to use the data is called a first page. The terminal to which the first page belongs sends a data migration request to the terminal to which the second page belongs, the terminal to which the first page belongs and the terminal to which the second page belongs can be the same terminal, the terminal to which the second page belongs receives the data migration request, the data migration request comprises information of a card to be migrated, and the first terminal can determine the identity of the second terminal according to the migration request. The card to be transplanted, the first card, and the second card are some kind of block-level elements having a width and a height.
102. And the first terminal acquires the first card according to the information of the first card to be transplanted.
After the terminal receives the data migration request, the terminal can determine the card required by the terminal to which the second page belongs according to the information of the card to be migrated.
103. And the first terminal generates the plug-in according to the first card.
The first terminal obtains a construction method related to the first card according to the information of the first card, the first terminal generates a plug-in according to the construction method, the plug-in comprises a program for constructing the first card, and the first card comprises data content on the first page.
104. And the first terminal sends the plug-in to the second terminal.
The first terminal receives a data migration request sent by the second terminal, the data migration request comprises an identifier of the second terminal, and the first terminal sends the generated plug-in to the second terminal according to the identifier of the second terminal.
Referring to fig. 2, another embodiment of the method for data migration in the embodiment of the present application includes:
201. the second terminal sends a data migration request to the first terminal.
And the second terminal sends a data migration request to the first terminal, wherein the data migration request comprises information of the first card to be migrated.
202. And the second terminal receives the plug-in sent by the first terminal.
The second terminal receives a plug-in sent by the first terminal, wherein the plug-in comprises data content on the first page and a program for constructing a first card, and the first card comprises the data content on the first page.
203. And the second terminal transplants the data content on the first page to a second page through the plug-in.
The second terminal receives the plug-in sent by the first terminal, the plug-in can construct a first card at the second terminal, the first card comprises data content on a first page of the first terminal, the plug-in generates the first card at the second terminal, and a second page on the second terminal refers to the first card, so that the data on the second page is transplanted to the first page.
Referring to fig. 3, a detailed description is provided below of a data migration method in an embodiment of the present application, where an embodiment of the data migration method in the embodiment of the present application includes:
301. the first terminal receives a data migration request sent by the second terminal.
The first terminal receives a data migration request sent by the second terminal, where the data migration request includes information of a card to be migrated, where the information of the card to be migrated may be a card identification number (ID) and an identifier of the card, and it is understood that the information of the card to be migrated may also be other types of parameters related to the card, and is not limited herein.
It can be understood that the terminal to which the first page belongs and the terminal to which the second page belongs may be the same terminal or different terminals, the terminal to which the second page belongs receives the data migration request, the data migration request includes information of the card to be migrated, the data migration request may further include an identifier of the second terminal, and the first terminal may determine the identity of the second terminal according to the identifier of the second terminal.
302. And the first terminal acquires the data content on the first page.
The first terminal obtains the data content from the configuration file of the data content on the first page, and the content in the configuration file is fixedly stored in a certain format, for example, an XML format, it can be understood that the configuration file may be in another storage format such as JSON besides an extensible markup language (XML), and the specific details are not limited herein. The data content may be fixedly stored in a certain format, for example, a format of a javaScript object notation (JSON), and it is understood that the data content may be in other types of storage formats such as XML besides JSON, which is not limited herein. The hierarchy of attributes for the stored form of the configuration file is consistent with the hierarchy of attributes for the stored form of the data content.
It is understood that the data content may be a chart data content, a graphic data content, or other types of data content, and is not limited herein.
303. The first terminal generates a first card according to the data content on the first page.
The data content on the first page is stored in a form of a character string in a certain format, such as JSON format, and may also be in other formats, which is not limited herein. The information represented by the character string includes the ID, name and attributes related to the first card, and the attributes of the first card can be in one-to-one correspondence, so that the developed first card can be used as a template. After the data content on the first page is acquired, all information related to the first card is extracted, and the information is combined into a character string in a fixed format, where the format may be a JSON format or other formats, and the specific details are not limited herein. This string is then persisted in the background in a key-value pair.
304. The first terminal receives a first card expansion instruction.
The first terminal receives a card expansion instruction, which is generated based on the user's demand and instructs to perform an operation of editing, deleting or copying the original card.
305. And the first terminal executes corresponding operation on the first card according to the first card expansion instruction so as to generate the second card.
And the first terminal executes corresponding operation on the first card according to the card expansion instruction so as to generate a second card. The extension instruction comprises an editing instruction, a deleting instruction and/or a copying instruction.
When the extension instruction is an editing instruction, the first terminal performs an editing operation on the first card according to the editing instruction, and can edit the card by using a data editor on the card, where the data editor may be a JS editor, and the JS editor is shown in fig. 4. When editing data, JS is written at which data is edited in the JS editor shown in fig. 4 to realize writing of data on a card.
The property editor on the first card may also be used to edit the first card, where the property editor is shown in fig. 5, and the property editor on the first card includes properties such as the size of characters in the card and the color of the characters, and it can be understood that the first card property editor includes not only the above two card content parameters, but also the font style of the characters and whether to display other card content parameters such as the X axis and the Y axis, and the specific details are not limited herein.
When the cards are edited, the editing effect of the first card can be observed according to the dynamic display interface in the first card, the dynamic display interface in the first card is as shown in fig. 6, data editing is performed on the data editor, corresponding data changes can occur in the dynamic display interface in the first card, the first card is edited on the attribute editor, corresponding attribute changes can occur in the dynamic display interface in the first card, a user can correspondingly modify the first card according to the effect displayed by the dynamic display interface in the first card after editing, and the card generated after editing is the second card.
And when the extension instruction is a deletion instruction, the first terminal executes deletion operation on the first card according to the deletion instruction, and the deleted first card cannot be displayed to the user.
When the expansion instruction is a copying operation, the first terminal executes the copying operation on the first card according to the copying instruction to generate an identical card, and the identical card is a second card.
306. And the first terminal stores the second card to a card library.
The first terminal stores the second card in the first card library, and it can be understood that if the card expansion instruction received by the first terminal is an editing instruction, the first terminal stores the second card generated after editing in the first card library. And if the card expansion instruction received by the first terminal is a copying instruction, the first terminal stores the same second card generated after copying into the first card library. If the card expansion instruction received by the first terminal is a deletion instruction, the first terminal executes deletion operation on the initialization card, and the deleted initialization card cannot be stored in the first card library.
It is understood that the above steps 302 to 306 may or may not be executed, and if not, other steps may also be completed, which is not described herein in detail.
307. The first terminal acquires the data content of the first card and the construction program of the first card.
The first terminal obtains a construction method and a rendering method related to the first card according to information of the first card, where the information of the first card may be an ID of the first card, an identifier of the first card, or other forms, and is not limited herein.
308. And the first terminal generates the plug-in according to the data content of the first card and the construction program of the first card.
After the first terminal extracts the construction method and the rendering method of the first card, the extracted method is subjected to closure transformation in a certain form, specifically, javaScript and other forms capable of realizing closure transformation are available, then the first terminal increases a destruction method, a data setting interface and a data analysis interface of the corresponding card, and finally the closure is exported to generate a file in a certain form, wherein the file is a plug-in, and specifically, the file can be a javaScript file and other files capable of realizing the functions of the plug-in.
309. And the first terminal sends the plug-in to the second terminal.
The request sent by the second terminal to the first terminal includes an identifier of the second terminal, and the first terminal sends the generated plug-in to the second terminal according to the identifier, so that the second terminal transplants the data content on the first page to the second page through the plug-in, as shown in fig. 7.
Referring to fig. 8, a detailed description is provided below of a data migration method in an embodiment of the present application, where an embodiment of the data migration method in the embodiment of the present application includes:
401. the second terminal sends a data migration request to the first terminal.
When a user edits a webpage and needs to use data on another webpage, the webpage edited by the user is called a second page, and the webpage needing to use the data is called a first page. The terminal to which the first page belongs is called a first terminal, the terminal to which the second page belongs is called a second terminal, and the first terminal and the second terminal can be the same terminal or different terminals.
If the first terminal and the second terminal are different terminals, the second terminal sends a data migration request to the first terminal, where the data migration request includes information of a card to be migrated, and the information of the card to be migrated may be an ID of the card and an identifier of the card. It is to be understood that the data migration request may also include an identification of the second terminal.
402. And the second terminal receives the plug-in sent by the first terminal.
The second terminal receives a plug-in sent by the first terminal, wherein the plug-in comprises data content on the first page and a program for constructing the first card.
403. And the second terminal introduces the plug-in the second page.
When the second terminal develops the second page on the web page editor, the plug-in is introduced into the second page in a manner of introducing JS, for example, as shown in fig. 9, a specific introduction manner is, for example, < script type ═ text/javascript "src ═./JS/simulator.
404. And the second terminal calls the program for constructing the first card according to the plug-in.
The plug-in includes a program for constructing the first card, the terminal calls the program for constructing the first card according to the relevant information of the plug-in, the relevant information of the plug-in may be a card identifier or an ID of the card, or may be other information for representing the identity of the card, which is not limited herein specifically, and the content of the package for constructing the first card may include a construction method and a rendering method of the first card, and may also include other methods, which are not limited herein specifically.
405. And the second terminal constructs the first card according to the program.
The process of the second terminal constructing the first card template according to the program for constructing the first card included in the plug-in is a plug-in initialization process, as shown in fig. 9, when the plug-in is about to start initialization, the first terminal receives an ID of a container according to an instruction of a user, the plug-in will call the construction method thereof to initialize in the container, and the first card is generated after the initialization is completed.
406. The second terminal receives the data modification instruction.
407. And the second terminal modifies the data of the first card according to the data modification instruction to generate a third card.
After receiving the data modification instruction, the second terminal modifies the data of the first card according to the data modification instruction, which is a process of assigning values to the plug-in, as shown in fig. 9. The plug-in supports incoming data sources in a data format to facilitate providing a user with an interface for editing data, supporting user configuration data. The data format may be a map format, or may be other formats, and is not specifically limited herein, and the interface for editing data may be a setdaas interface, or may be other interfaces, and is not specifically limited herein.
And after the second terminal receives the data modification instruction, modifying the data of the first card according to the data modification instruction to generate a third card.
408. And the second terminal displays the third card in the second page.
And the second terminal displays the generated third card in a second page.
The above describes the data migration method in the embodiment of the present application, and the following describes the terminal in the embodiment of the present application, with reference to fig. 10, an embodiment of the terminal in the embodiment of the present application includes:
501. the receiving unit is used for receiving a data transplantation request sent by the second terminal, and the data transplantation request comprises information of a first card to be transplanted;
502. the acquisition unit is used for acquiring a first card according to the information of the first card to be transplanted, and the first card comprises data content on a first page;
503. a generating unit for generating an insert from the first card, the insert including data content of the first card and a program for constructing the first card;
504. and the sending unit is used for sending the plug-in to the second terminal so that the second terminal can transplant the data content on the first page to the second page through the plug-in.
In this embodiment, operations performed by each unit in the terminal are similar to those described in the embodiment shown in fig. 1, and are not described again here.
The embodiment of the application provides a data transplantation method, wherein after a receiving unit receives a data transplantation request sent by a second terminal, an obtaining unit obtains a card according to information of the card to be transplanted, and the obtained card comprises data content on a first page. The generation unit generates a plug-in according to the acquired card, wherein the plug-in has portability and comprises a program for constructing the card. The sending unit sends the generated plug-in to the second terminal, the second terminal transplants the data content on the first page to the second page through the plug-in, and a user does not need to develop the data content again on the second page, so that the development efficiency is improved.
As described above for one terminal in the embodiment of the present application, please refer to fig. 11, where another embodiment of the terminal in the embodiment of the present application includes:
601. the data migration device comprises a sending unit, a data migration unit and a data migration unit, wherein the sending unit is used for sending a data migration request to a first terminal, and the data migration request comprises information of a first card to be migrated;
602. the receiving unit is used for receiving a plug-in sent by a first terminal, the plug-in comprises data content of a first card and a program for constructing the first card, and the first card comprises the data content on a first page;
603. and the migration unit is used for migrating the data content on the first page to a second page through the plug-in.
The embodiment of the application provides a data transplantation method, wherein a sending unit sends a data transplantation request to a first terminal, and the data transplantation request comprises information of a first card to be transplanted; the receiving unit receives a plug-in sent by the first terminal, the plug-in has portability, and the plug-in comprises a program for constructing a card. The transplanting unit transplants the data content on the first page to the second page through the plug-in, so that a user does not need to develop the data content on the second page again, and development efficiency is improved.
Fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application, where the terminal 700 may include one or more Central Processing Units (CPUs) 701 and a memory 705, and the memory 705 stores one or more applications or data.
The memory 705 may be volatile storage or persistent storage, among others. The program stored in the memory 705 may include one or more modules, each of which may include a sequence of instructions operating on the terminal. Further, the central processor 701 may be configured to communicate with the memory 705 and perform a series of instruction operations in the memory 705 on the terminal 700.
Terminal 700 can also include one or more power supplies 702, one or more wired or wireless network interfaces 703, one or more input-output interfaces 704, and/or one or more operating systems such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The central processing unit 701 may perform the operations performed by the terminal in the embodiment shown in fig. 3, which are not described herein again.
Fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present application, where the terminal 800 may include one or more Central Processing Units (CPUs) 801 and a memory 805, and one or more applications or data are stored in the memory 805.
The memory 705 may be volatile storage or persistent storage, among others. The program stored in the memory 805 may include one or more modules, each of which may include a sequence of instructions for operating on the terminal. Still further, the central processor 801 may be configured to communicate with the memory 805 to perform a series of instruction operations in the memory 805 on the terminal 800.
Terminal 800 can also include one or more power supplies 802, one or more wired or wireless network interfaces 803, one or more input-output interfaces 804, and/or one or more operating systems such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The central processing unit 801 may perform the operations performed by the terminal in the embodiment shown in fig. 3, which are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other media capable of storing program codes.

Claims (12)

1. A method of data migration, comprising:
a first terminal receives a data transplantation request sent by a second terminal, wherein the data transplantation request comprises information of a first card to be transplanted;
the first terminal acquires a first card according to the information of the first card to be transplanted, wherein the first card comprises data content on a first page;
the first terminal generates a plug-in according to the first card, wherein the plug-in comprises data content of the first card and a program for constructing the first card;
and the first terminal sends the plug-in to the second terminal, so that the second terminal transplants the data content on the first page to a second page through the plug-in.
2. The data migration method according to claim 1, wherein before the first terminal obtains the first card according to the information of the first card to be migrated, the method further comprises:
the first terminal acquires data content on the first page;
the first terminal generates the first card according to the data content on the first page;
and the first terminal stores the first card to a card library.
3. The data migration method according to claim 2, wherein the first card comprises a property editor, a data editor, and a dynamic presentation interface for presenting editing effects of the first card.
4. The data migration method according to claim 2, wherein the terminal generating the first card according to the data content on the first page comprises:
the first terminal generates a first card according to the data content on the first page;
the first terminal receives a first card expansion instruction, wherein the expansion instruction is used for indicating the operation of editing, deleting or copying the first card;
and the first terminal executes corresponding operation on the first card according to the first card expansion instruction so as to generate the second card.
5. The data migration method of claim 1, wherein the generating, by the first terminal, the plug-in from the first card comprises:
the first terminal acquires the data content of the first card and the construction program of the first card;
and the first terminal generates the plug-in according to the data content of the first card and the construction program of the first card.
6. A method of data migration, comprising:
the method comprises the steps that a second terminal sends a data transplantation request to a first terminal, wherein the data transplantation request comprises information of a first card to be transplanted;
the second terminal receives a plug-in sent by the first terminal, the plug-in comprises data content of a first card and a program for constructing the first card, and the first card comprises the data content on a first page;
and the second terminal transplants the data content on the first page to a second page through the plug-in.
7. The data migration method according to claim 6, wherein the second terminal migrating the data content on the first page to a second page through the plug-in comprises:
the second terminal introduces the plug-in a second page;
the terminal constructs the first card according to the plug-in;
and the second terminal displays the first card in the second page.
8. The data migration method according to claim 7, wherein the terminal invoking the program for constructing the first card according to the plug-in to construct the first card comprises:
the second terminal calls the data content of the first card and constructs a program of the first card according to the plug-in;
and the second terminal constructs the first card according to the data content and the program.
9. The data migration method according to claim 7, wherein after the second terminal constructs the first card according to the data content and the program, the second terminal further comprises, before displaying the first card in the second page:
the second terminal receives a data modification instruction;
and the second terminal modifies the first card according to the data modification instruction to generate a third card.
10. A terminal, comprising:
the receiving unit is used for receiving a data transplantation request sent by a second terminal, and the data transplantation request comprises information of a first card to be transplanted;
the acquisition unit is used for acquiring a first card according to the information of the first card to be transplanted, and the first card comprises data content on a first page;
the generating unit is used for generating an insert according to the first card, and the insert comprises data content of the first card and a program for constructing the first card;
and the sending unit is used for sending the plug-in to the second terminal so that the second terminal can transplant the data content on the first page to a second page through the plug-in.
11. A computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 5.
12. A computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 6 to 9.
CN201910939516.5A 2019-09-29 2019-09-29 Data migration method, terminal and storage medium Active CN110704105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910939516.5A CN110704105B (en) 2019-09-29 2019-09-29 Data migration method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910939516.5A CN110704105B (en) 2019-09-29 2019-09-29 Data migration method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110704105A true CN110704105A (en) 2020-01-17
CN110704105B CN110704105B (en) 2023-09-19

Family

ID=69197363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910939516.5A Active CN110704105B (en) 2019-09-29 2019-09-29 Data migration method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110704105B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080276183A1 (en) * 2007-04-19 2008-11-06 Joseph Siegrist Method and apparatus for web page co-browsing
CN102314432A (en) * 2010-06-30 2012-01-11 上海视加信息科技有限公司 Method for customizing website
CN103118342A (en) * 2013-01-22 2013-05-22 中兴通讯股份有限公司 Multi-media information sending, receiving and transmission method and card sending and receiving terminal
CN106484445A (en) * 2015-08-27 2017-03-08 阿里巴巴集团控股有限公司 The page display method of application program for mobile terminal and device
CN106502738A (en) * 2016-10-24 2017-03-15 福建中金在线信息科技有限公司 Data load method and device in a kind of mobile terminal
CN107291940A (en) * 2017-07-07 2017-10-24 腾讯科技(深圳)有限公司 Content of pages management method, device and associated server
WO2018086463A1 (en) * 2016-11-09 2018-05-17 阿里巴巴集团控股有限公司 User information obtaining system, method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080276183A1 (en) * 2007-04-19 2008-11-06 Joseph Siegrist Method and apparatus for web page co-browsing
CN102314432A (en) * 2010-06-30 2012-01-11 上海视加信息科技有限公司 Method for customizing website
CN103118342A (en) * 2013-01-22 2013-05-22 中兴通讯股份有限公司 Multi-media information sending, receiving and transmission method and card sending and receiving terminal
CN106484445A (en) * 2015-08-27 2017-03-08 阿里巴巴集团控股有限公司 The page display method of application program for mobile terminal and device
CN106502738A (en) * 2016-10-24 2017-03-15 福建中金在线信息科技有限公司 Data load method and device in a kind of mobile terminal
WO2018086463A1 (en) * 2016-11-09 2018-05-17 阿里巴巴集团控股有限公司 User information obtaining system, method and device
CN107291940A (en) * 2017-07-07 2017-10-24 腾讯科技(深圳)有限公司 Content of pages management method, device and associated server

Also Published As

Publication number Publication date
CN110704105B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN110109670B (en) Method and device for processing view list data, electronic equipment and storage medium
CN107908608B (en) Method, storage medium and device for converting and displaying manuscript in three-dimensional space
CN113110829B (en) Multi-UI component library data processing method and device
CN105956133B (en) Method and device for displaying file on intelligent terminal
US20180357776A1 (en) Vector graphics handling processes for user applications
CN113382083A (en) Webpage screenshot method and device
CN113760276A (en) Method and device for generating page code
CN115526160A (en) Rich text processing method, device and equipment and storage medium
CN111290996A (en) Document format conversion method, device, equipment and readable storage medium
CN110708423A (en) Message content display method and device and storage medium
CN114612279A (en) Watermark adding method and device
CN109582580B (en) System, method and apparatus for debugging pages
CN110704105B (en) Data migration method, terminal and storage medium
CN111767498A (en) Method and device for realizing file information sharing
CN110647371A (en) Multi-language resource file analysis method and system based on service configuration
CN114371838A (en) Method, device and equipment for rendering small program canvas and storage medium
CN110647352B (en) Data migration method, terminal and storage medium
CN113342450B (en) Page processing method, device, electronic equipment and computer readable medium
CN112417345B (en) Rendering method, rendering device, electronic equipment and storage medium
CN115904372A (en) Data processing method and device
CN115329720A (en) Document display method, device, equipment and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113961279A (en) Page rendering method, device, server and storage medium
CN111538490A (en) Freemarker-based data fusion method and device
CN110309455B (en) Method, device and equipment for displaying OLE vector diagram

Legal Events

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