CN113296978A - Content copying method, device, equipment and computer readable medium - Google Patents

Content copying method, device, equipment and computer readable medium Download PDF

Info

Publication number
CN113296978A
CN113296978A CN202110507494.2A CN202110507494A CN113296978A CN 113296978 A CN113296978 A CN 113296978A CN 202110507494 A CN202110507494 A CN 202110507494A CN 113296978 A CN113296978 A CN 113296978A
Authority
CN
China
Prior art keywords
target
client
webpage
content
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110507494.2A
Other languages
Chinese (zh)
Inventor
王坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110507494.2A priority Critical patent/CN113296978A/en
Publication of CN113296978A publication Critical patent/CN113296978A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses a content copying method, a content copying device, an electronic device and a computer readable medium. One embodiment of the method comprises: in response to the detection of the copy operation of the user in the target webpage, searching a text corresponding to the target operation from a structure tree corresponding to the target webpage; and sending the text to the client by using a bridging protocol between the client and the webpage, wherein the client is used for copying the text, and the target webpage is an embedded webpage of the client. The implementation mode solves the problem that the embedded webpage of the client does not support copying in the low-version system environment, and improves the operation efficiency of the user.

Description

Content copying method, device, equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a content replication method, apparatus, device, and computer-readable medium.
Background
Due to compatibility issues of the system, copying of web page content in applications is not supported in some low-version system environments. For example, when a user pays for an order in an e-commerce application, the user may jump to a payment details page. The payment details page may be the H5 page, which generally includes the order amount, payment type, payment account information, and the like. For users using low-version systems, the information in the payment details page cannot be copied by one-touch copy, long-press copy, or the like. At this time, if the user needs to use the information in the rest places, the user needs to manually input the information after reading the content, which greatly affects the operation efficiency of the user.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Some embodiments of the present disclosure propose content replication methods, apparatuses, devices and computer readable media to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a content replication method, including: in response to the detection of the copy operation of the user in the target webpage, searching a text corresponding to the target operation from a structure tree corresponding to the target webpage; and sending the text to the client by using a bridging protocol between the client and the webpage, wherein the client is used for copying the text, and the target webpage is an embedded webpage of the client.
In a second aspect, some embodiments of the present disclosure provide a content copying apparatus, the apparatus comprising: the searching unit is configured to respond to the detection of the copying operation of the user in the target webpage, and search the text corresponding to the target operation from the structure tree corresponding to the target webpage; and the sending unit is configured to send the text to the client by using a bridge protocol between the client and the webpage, wherein the client is used for copying the text, and the target webpage is an embedded webpage of the client.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: the copying function of the embedded webpage of the client is realized by the client, so that the problem that the embedded webpage of the client does not support copying in a low-version system environment is solved, and the operation efficiency of a user is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
1-2 are schematic diagrams of one application scenario of a content replication method according to some embodiments of the present disclosure;
FIG. 3 is a flow diagram of some embodiments of a content replication method according to the present disclosure;
FIG. 4 is a flow chart of further embodiments of a content replication method according to the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of a content replication device according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
With the rapid development of mobile internet technology, various clients are emerging. These clients also need to be updated continuously in order to meet the user's continually iterative needs and changing scenarios. To avoid frequent client publishing due to constant updates, many applications use embedded web pages to expose portions of content. The embedded webpage is not a native page in the client, but a webpage in the client. The embedded web page may be an H5 page. The use of the embedded webpage can increase the flexibility of the client and avoid frequent edition release of the client. In general, embedded pages may implement copying of content through some specific method function (e.g., document. execute command). However, in some low-version system environments, due to compatibility problems, these method functions are not supported, and therefore, a user cannot copy content by an operation such as one-touch copy or long-press copy.
In order to solve the above problems, the present disclosure provides a content copying method, apparatus, device, and computer readable medium, and the present disclosure will be described in detail with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of one application scenario of a text generation method of some embodiments of the present disclosure.
In the application scenario of fig. 1, the execution subject of the content copying method is the smartphone 101. The smart phone 101 is provided with a client. In the context of this application, it may be an e-commerce type application. At this time, the user can perform operations such as commodity purchasing and settlement through the client. When the user submits an order, some order information may be displayed via the embedded web page 102. Of course, the embedded page may also be used to display various types of content, according to actual needs. The present disclosure is not limited thereto. In response to detecting a copy operation of the user in the embedded web page 102, for example, clicking a "copy-on-a-key" button, the smartphone 101 may search the structure tree corresponding to the embedded web page 102 for content corresponding to the target operation. On the basis, the content can be sent to the client by using a bridge protocol between the client and the webpage, so that the client copies the content. Optionally, after the copying is completed, the smartphone 101 may display a prompt, such as "copy successful" shown in fig. 2.
The execution main body 101 may be hardware or software. When the hardware is implemented, the hardware may be implemented as a distributed cluster consisting of a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When embodied as software, may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
With continued reference to fig. 3, a flow 300 of some embodiments of a content replication method according to the present disclosure is shown. The content copying method comprises the following steps:
step 301, in response to detecting a copy operation of a user in a target webpage, searching a content corresponding to the target operation from a structure tree corresponding to the target webpage.
In some embodiments, the executing agent of the content duplication method (e.g., smartphone 101 shown in fig. 1) may perform duplication operation detection through an interface provided by the system. Wherein the copy operation may be a copy by clicking a virtual button, a copy by long pressing, etc. The target web page may be any embedded web page of the client. In response to detecting the copy operation of the user on the target webpage, the execution subject may search for the content corresponding to the target operation from the structure tree corresponding to the target webpage. In practice, for the H5 page, the search can be performed by the method for operating the structure tree provided by the native javascript or the method for jquery operating the structure tree.
In some optional implementations of some embodiments, in response to detecting a copy operation of a user in a target web page, finding content corresponding to the target operation from a structure tree corresponding to the target web page includes: and in response to the detection of the clicking operation of the user on the copy button in the target webpage, searching the content corresponding to the target label from the structure tree corresponding to the target webpage as the content corresponding to the target operation. In these implementations, as an example, a copy button (e.g., a "one-touch copy" button in fig. 1) for responding to a user operation may be provided in the target page. On this basis, in response to the user click operation, the content corresponding to the target tag can be searched as the content corresponding to the target operation. The target tag may be set as needed, and may be at least one tag in the target webpage. The content corresponding to the target tag may include an attribute name, an attribute value, and the like of the tag. Therefore, the integral copying of certain content can be realized, and the user operation is simplified.
In some optional implementations of some embodiments, before step 301, the method may further include: and acquiring version information of the client running in the current equipment. At this time, in response to detecting a copy operation of a user in a target webpage, searching a structure tree corresponding to the target webpage for content corresponding to the target operation, including: and searching the content corresponding to the target operation from the structure tree corresponding to the target webpage in response to the detection of the copying operation of the user in the target webpage and the determination that the version information meets the preset condition. In practice, not all versions of clients need to perform the present content replication method. Therefore, by determining whether the version information of the client meets the preset condition, it is ensured that the method is executed only if the preset condition is met. Therefore, error reporting caused by execution in some clients which do not support the method is avoided, and smooth operation of the clients is facilitated.
Step 302, a bridging protocol between the client and the web page is utilized to send the content to the client, and the client is used for copying the content.
In some embodiments, the content may be sent to the client in a pre-agreed bridge protocol between the client and the embedded web page. Therefore, the client can copy the content, and further complete the copying of the content of the embedded webpage. The bridge protocol is used for appointing an interaction method between the client and the embedded webpage.
In some embodiments, the copy function of the embedded webpage of the client is realized by the client, so that the problem that the embedded webpage of the client does not support copy in a low-version system environment is solved, and the operation efficiency of a user is improved.
With further reference to fig. 4, a flow 400 of further embodiments of a content replication method is illustrated. The process 400 of the content replication method includes the following steps:
step 401, in response to detecting a touch operation of a user in a target webpage, searching for content corresponding to the target operation from a structure tree corresponding to the target webpage, and triggering a start touch event, where the start touch event includes a timeout calling method, and the timeout calling method corresponds to a target timeout time.
In some embodiments, in practice, users are often accustomed to performing long press operations on some content to make copies of that content. However, for the embedded page of the client, the long-press operation cannot be detected directly through the interface because there is no long-press event.
To enable user long press replication, a delay call method may be included in the start touch event. On the basis, in response to the detection of the touch operation of the user in the target webpage, namely the user starts to touch the screen, the content corresponding to the target operation is searched from the structure tree corresponding to the target webpage, and a touch starting event is triggered. At this time, the subsequent steps are not executed immediately, but are executed after the target timeout period elapses. That is, only if the user continues to touch the screen for the target timeout period will subsequent steps be performed. The target timeout time may be set according to actual needs, and may be 500ms, for example. The content corresponding to the target operation can be determined in various ways. For example, the position touched by the user is detected, and the content in a certain range around the touched position is determined as the content corresponding to the target operation. For another example, the user may first select a portion of the content and then perform a long press operation on the selected content. At this time, the content corresponding to the target operation may be the content selected by the user.
In response to the difference between the current time and the time of triggering the touch event to begin being greater than or equal to the target timeout time, the content is sent to the client using a predefined bridging protocol, step 402.
In some embodiments, on the basis of step 401, in response to the difference between the current time and the time triggering the start of the touch event being greater than or equal to the target timeout time, the content is sent to the client using a predefined bridging protocol.
In some optional implementations of some embodiments, the method further comprises: and in response to the time difference between the current time and the trigger start touch event being less than the target timeout time, triggering a touch movement event and/or a touch end event, and clearing the timeout calling method in the touch movement event and/or the touch end event respectively. In these implementations, if the user stops touching the screen for a period of time that has not reached the target timeout period, the user is considered not to perform the long press operation and no copying is required. Therefore, it is necessary to clear the timeout calling method in the touch moving event and/or the touch ending event, respectively, and stop executing the subsequent steps. That is, the content is no longer sent to the client. Therefore, the operation such as clicking by the user can be prevented from being mistaken for long-time pressing operation, and other normal operations of the user cannot be influenced.
In some optional implementations of some embodiments, the client may perform the copy processing on the received content by: and dynamically creating tags of target categories in the target webpage and initializing according to the content. A selected operation is performed on the tag, and a copy operation is performed on the selected tag. The target category may be a category corresponding to the above-described content, as necessary. Further, the width and height of the tag are set by initializing the tag. The width and height may be set to 0 pixels, for example, to avoid white blocks in the page.
In some optional implementations of some embodiments, dynamically creating tags for the target categories includes: the tags of the target categories are dynamically created and initialized before the document body tags (bodies). In practice, the interface will be focused on the selected label as a result of the previous execution of the selection (facaus ()). Possibly resulting in a user slipping the interface up when making the copy. Therefore, by creating a label in front of the document body label, no further sliding up will occur due to its particular positional relationship.
In some alternative implementations of some embodiments, the tag is a read-only attribute. The label is set as a read-only attribute, so that the situation that the keyboard pops up after the user clicks the copy can be avoided.
The content copying method in some embodiments corresponding to fig. 4 processes the long-press operation of the user by using a timeout calling method in the touch start event, so as to support the user to perform long-press copying, thereby facilitating the user operation.
With further reference to fig. 5, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of a content copying apparatus, which correspond to those illustrated in fig. 3, and which may be particularly applicable in various electronic devices.
As shown in fig. 5, the content copying apparatus 500 of some embodiments includes: a look-up unit 501 and a sending unit 502. The searching unit 501 is configured to search, in response to detecting a copy operation of a user in a target webpage, a text corresponding to the target operation from a structure tree corresponding to the target webpage. The sending unit 502 is configured to send the text to the client by using a bridge protocol between the client and the web page, where the client is used to copy the text, and the target web page is an embedded web page of the client.
In an optional implementation manner of some embodiments, the finding unit 501 is further configured to, in response to detecting a touch operation of a user in a target webpage, find content corresponding to the target operation from a structure tree corresponding to the target webpage, and trigger a start touch event, where the start touch event includes a timeout calling method, and the timeout calling method corresponds to a target timeout time. The sending unit 502 is further configured to send the content to the client using a predefined bridging protocol in response to a difference between the current time and a time triggering the start of the touch event being greater than or equal to a target timeout time.
In an optional implementation of some embodiments, the apparatus 500 further comprises: and the clearing unit is configured to trigger the touch movement event and/or the touch ending event in response to the time difference between the current time and the trigger starting touch event being less than the target timeout time, and clear the timeout calling method in the touch movement event and/or the touch ending event respectively.
In an optional implementation manner of some embodiments, the finding unit 501 is further configured to, in response to detecting a click operation of a user on a copy button in the target webpage, find, from the structure tree corresponding to the target webpage, content corresponding to the target tag as content corresponding to the target operation.
In an alternative implementation of some embodiments, the client performs the copy processing on the content by: dynamically creating a label of a target category and initializing according to the content; a selected operation is performed on the tag, and a copy operation is performed on the selected tag.
In an alternative implementation of some embodiments, the tag is a read-only attribute.
In an optional implementation manner of some embodiments, the apparatus 500 further includes an obtaining unit configured to obtain version information of the client. The searching unit 501 is further configured to, in response to detecting a copy operation of a user in a target webpage and determining that the version information meets a preset condition, search for content corresponding to the target operation from a structure tree corresponding to the target webpage.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 3. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., the terminal device of fig. 1) 600 suitable for use in implementing some embodiments of the present disclosure. The electronic device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to the detection of the copy operation of the user in the target webpage, searching a text corresponding to the target operation from a structure tree corresponding to the target webpage; and sending the text to the client by using a bridging protocol between the client and the webpage, wherein the client is used for copying the text, and the target webpage is an embedded webpage of the client.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a lookup unit and a sending unit. The names of these units do not form a limitation to the unit itself in some cases, for example, the search unit may also be described as a unit for searching the text corresponding to the target operation from the structure tree corresponding to the target web page.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (11)

1. A content replication method, comprising:
in response to the detection of the copy operation of a user in a target webpage, searching the content corresponding to the target operation from the structure tree corresponding to the target webpage;
and sending the content to the client by using a bridging protocol between the client and the webpage, wherein the client is used for copying the content, and the target webpage is an embedded webpage of the client.
2. The method of claim 1, wherein the searching for the content corresponding to the target operation from the structure tree corresponding to the target webpage in response to detecting the copy operation of the user in the target webpage comprises:
in response to the detection of the touch operation of the user in the target webpage, searching the content corresponding to the target operation from the structure tree corresponding to the target webpage, and triggering a start touch event, wherein the start touch event comprises a timeout calling method, and the timeout calling method corresponds to the target timeout time;
and sending the content to a client using a pre-defined bridging protocol, comprising:
and in response to the difference between the current time and the time for triggering the start of the touch event being greater than or equal to the target timeout time, sending the content to the client using a predefined bridging protocol.
3. The method of claim 2, wherein the method further comprises:
in response to a time difference between a current time and a time at which a start touch event is triggered being less than the target timeout time, triggering a touch move event and/or a touch end event, and clearing the timeout calling method in the touch move event and/or the touch end event, respectively.
4. The method of claim 1, wherein the searching for the content corresponding to the target operation from the structure tree corresponding to the target webpage in response to detecting the copy operation of the user in the target webpage comprises:
and in response to the detection of the clicking operation of the user on the copy button in the target webpage, searching the content corresponding to the target label from the structure tree corresponding to the target webpage as the content corresponding to the target operation.
5. The method of claim 1, wherein the client performs a copy process on the content by:
dynamically creating a label of a target category and initializing according to the content;
performing a selected operation on the tag, and performing a copy operation on the selected tag.
6. The method of claim 5, wherein the dynamically creating tags for target categories comprises:
the tags of the target category are dynamically created and initialized before the document body tags.
7. The method of claim 5, wherein the tag is a read-only attribute.
8. The method according to any one of claims 1-7, wherein before the searching for the content corresponding to the target operation from the structure tree corresponding to the target webpage in response to detecting the copy operation of the user in the target webpage, the method further comprises:
acquiring version information of the client running in the current equipment; and
the searching the content corresponding to the target operation from the structure tree corresponding to the target webpage in response to the detection of the copy operation of the user in the target webpage comprises:
and searching the content corresponding to the target operation from the structure tree corresponding to the target webpage in response to the detection of the copy operation of the user in the target webpage and the determination that the version information meets the preset condition.
9. A content copying apparatus comprising:
the searching unit is configured to respond to the detection of the copying operation of a user in a target webpage, and search a text corresponding to the target operation from a structure tree corresponding to the target webpage;
the sending unit is configured to send the text to a client by using a bridge protocol between the client and a webpage, wherein the client is used for copying the text, and the target webpage is an embedded webpage of the client.
10. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
11. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-8.
CN202110507494.2A 2021-05-10 2021-05-10 Content copying method, device, equipment and computer readable medium Pending CN113296978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110507494.2A CN113296978A (en) 2021-05-10 2021-05-10 Content copying method, device, equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110507494.2A CN113296978A (en) 2021-05-10 2021-05-10 Content copying method, device, equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN113296978A true CN113296978A (en) 2021-08-24

Family

ID=77321309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110507494.2A Pending CN113296978A (en) 2021-05-10 2021-05-10 Content copying method, device, equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113296978A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063118A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Click display method and device of webpage content
CN108595107A (en) * 2018-05-02 2018-09-28 维沃移动通信有限公司 A kind of interface content processing method and mobile terminal
CN108984068A (en) * 2018-06-15 2018-12-11 维沃移动通信有限公司 A kind of character clone method and terminal device
CN109408754A (en) * 2018-11-07 2019-03-01 北京字节跳动网络技术有限公司 Processing method, device, electronic equipment and the storage medium of web page operation data
CN111241439A (en) * 2018-11-29 2020-06-05 北京京东尚科信息技术有限公司 Method and device for copying webpage content, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063118A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Click display method and device of webpage content
CN108595107A (en) * 2018-05-02 2018-09-28 维沃移动通信有限公司 A kind of interface content processing method and mobile terminal
CN108984068A (en) * 2018-06-15 2018-12-11 维沃移动通信有限公司 A kind of character clone method and terminal device
CN109408754A (en) * 2018-11-07 2019-03-01 北京字节跳动网络技术有限公司 Processing method, device, electronic equipment and the storage medium of web page operation data
CN111241439A (en) * 2018-11-29 2020-06-05 北京京东尚科信息技术有限公司 Method and device for copying webpage content, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN107622135B (en) Method and apparatus for displaying information
CN110764671A (en) Information display method and device, electronic equipment and computer readable medium
WO2020168893A1 (en) Name label display method and apparatus
CN111597467A (en) Display method and device and electronic equipment
CN111310482A (en) Real-time translation method, device, terminal and storage medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN109992719B (en) Method and apparatus for determining push priority information
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN112307375A (en) Page display method and device, electronic equipment and computer readable medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN110865734A (en) Target object display method and device, electronic equipment and computer readable medium
CN110990038B (en) Method, apparatus, electronic device and medium for applying local update
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN106897202B (en) Method and apparatus for outputting data
CN111694629A (en) Information display method and device and electronic equipment
CN116126447A (en) Information processing method, device, electronic equipment and computer readable medium
CN110619101B (en) Method and apparatus for processing information
CN114417782A (en) Display method and device and electronic equipment
CN110519373B (en) Method and device for pushing information
CN112835671A (en) Application page scene switching method, device and equipment
CN110069186B (en) Method and equipment for displaying operation interface of application
CN112083982B (en) Information processing method and device
CN110618811B (en) Information presentation method and device
CN115113787B (en) Message processing method, device, equipment and medium

Legal Events

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