CN110611713A - A data download method, system, electronic device and storage medium - Google Patents
A data download method, system, electronic device and storage medium Download PDFInfo
- Publication number
- CN110611713A CN110611713A CN201910877055.3A CN201910877055A CN110611713A CN 110611713 A CN110611713 A CN 110611713A CN 201910877055 A CN201910877055 A CN 201910877055A CN 110611713 A CN110611713 A CN 110611713A
- Authority
- CN
- China
- Prior art keywords
- node
- target
- clone
- event
- download
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 238000012544 monitoring process Methods 0.000 claims abstract description 50
- 230000014509 gene expression Effects 0.000 claims abstract description 30
- 230000006399 behavior Effects 0.000 claims description 8
- 238000012216 screening Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 description 16
- 238000005516 engineering process Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 230000005587 bubbling Effects 0.000 description 5
- 238000010367 cloning Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000012795 verification Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000002265 prevention Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000010304 firing Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请公开了一种数据下载方法、系统及一种电子设备和计算机可读存储介质,该方法包括:利用正则表达式筛选待处理节点得到目标节点;生成所述目标节点的克隆节点,并移除所述克隆节点中的原监听事件;向所述克隆节点中添加目标监听事件,并利用所述目标监听事件获取所述克隆节点的下载链接;利用所述下载链接执行数据下载操作,本申请能够提高数据下载稳定性。
The present application discloses a data download method and system, an electronic device and a computer-readable storage medium. The method includes: using a regular expression to screen nodes to be processed to obtain a target node; generating a clone node of the target node, and moving Remove the original monitoring event in the clone node; add a target monitoring event to the clone node, and use the target monitoring event to obtain the download link of the clone node; use the download link to perform a data download operation, the present application Can improve data download stability.
Description
技术领域technical field
本申请涉及计算机技术领域,更具体地说,涉及一种数据下载方法、系统及一种电子设备和一种计算机可读存储介质。The present application relates to the field of computer technology, and more specifically, to a data downloading method and system, an electronic device, and a computer-readable storage medium.
背景技术Background technique
随着网络技术的发展,通过网络下载的方式获得数据已经成为常见的数据获取方法。With the development of network technology, obtaining data through network download has become a common data acquisition method.
在APP中通过获取第三方网页的下载链接实现数据下载是一种较为常见的数据下载方式,但是第三方网页往往会存在网页跳转等状况,导致无法获得稳定且高效的下载数据。It is a relatively common data download method to realize data download by obtaining the download link of the third-party webpage in the APP, but the third-party webpage often has situations such as web page jumps, resulting in the inability to obtain stable and efficient download data.
因此,如何提高数据下载稳定性是本领域技术人员需要解决的问题。Therefore, how to improve data download stability is a problem to be solved by those skilled in the art.
发明内容Contents of the invention
本申请的目的在于提供一种数据下载方法、系统及一种电子设备和一种计算机可读存储介质,提高了数据下载稳定性。The purpose of the present application is to provide a data downloading method and system, an electronic device and a computer-readable storage medium, which improve the stability of data downloading.
为实现上述目的,本申请提供了一种数据下载方法,包括:In order to achieve the above purpose, the application provides a data download method, including:
利用正则表达式筛选待处理节点得到目标节点;Use regular expressions to filter nodes to be processed to obtain target nodes;
生成所述目标节点的克隆节点,并移除所述克隆节点中的原监听事件;Generate a clone node of the target node, and remove the original listening event in the clone node;
向所述克隆节点中添加目标监听事件,并利用所述目标监听事件获取所述克隆节点的下载链接;Adding a target monitoring event to the clone node, and using the target monitoring event to obtain a download link of the clone node;
利用所述下载链接执行数据下载操作。Use the download link to perform a data download operation.
可选的,还包括:Optionally, also include:
调用所述目标事件的stopPropagation方法阻止通过事件委托方式添加的事件。Call the stopPropagation method of the target event to prevent events added through event delegation.
可选的,还包括:Optionally, also include:
调用所述目标事件的PreventDefault方法阻止元素默认行为。Calling the PreventDefault method of the target event prevents the element's default behavior.
可选的,还包括:Optionally, also include:
判断所述目标节点的URL是否变化;Judging whether the URL of the target node changes;
若是,则生成新的克隆节点并移除所述新的克隆节点中的原监听事件;If so, generate a new clone node and remove the original listening event in the new clone node;
向所述新的克隆节点中添加所述目标监听事件,并利用所述目标监听事件获取所述新的克隆节点的下载链接。Adding the target listening event to the new clone node, and using the target listening event to obtain a download link of the new clone node.
可选的,在利用所述目标监听事件获取所述新的克隆节点的下载链接之后,还包括:Optionally, after obtaining the download link of the new clone node by using the target listening event, the method further includes:
利用所述新的克隆节点的下载链接执行数据下载操作。A data download operation is performed using the download link of the new clone node.
可选的,生成所述目标节点的克隆节点包括:Optionally, generating the clone node of the target node includes:
通过cloneNode的方法生成所述目标节点的克隆节点。A clone node of the target node is generated by the method of cloneNode.
可选的,利用正则表达式筛选待处理节点得到目标节点包括:Optionally, using regular expressions to filter nodes to be processed to obtain target nodes includes:
将下载链接后缀符合所述正则表达式的待处理节点设置为目标节点。The node to be processed whose download link suffix matches the regular expression is set as the target node.
为实现上述目的,本申请提供了一种数据下载系统,包括:In order to achieve the above purpose, the application provides a data download system, including:
节点筛选模块,用于利用正则表达式筛选待处理节点得到目标节点;A node screening module, used to filter nodes to be processed by regular expressions to obtain target nodes;
监听事件移除模块,用于生成所述目标节点的克隆节点,并移除所述克隆节点中的原监听事件;A monitoring event removal module, configured to generate a clone node of the target node, and remove the original monitoring event in the clone node;
链接获取模块,用于向所述克隆节点中添加目标监听事件,并利用所述目标监听事件获取所述克隆节点的下载链接;A link obtaining module, configured to add a target monitoring event to the clone node, and use the target monitoring event to obtain a download link of the clone node;
数据下载模块,用于利用所述下载链接执行数据下载操作。A data download module, configured to use the download link to perform a data download operation.
为实现上述目的,本申请提供了一种电子设备,所述电子设备包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的数据下载程序,所述数据下载程序被所述处理器执行时实现:利用正则表达式筛选待处理节点得到目标节点;生成所述目标节点的克隆节点,并移除所述克隆节点中的原监听事件;向所述克隆节点中添加目标监听事件,并利用所述目标监听事件获取所述克隆节点的下载链接;利用所述下载链接执行数据下载操作。To achieve the above object, the present application provides an electronic device, the electronic device includes a memory and a processor, the memory stores a data download program that can run on the processor, and the data download program is executed by the When the processor executes, it realizes: using regular expressions to filter nodes to be processed to obtain a target node; generating a clone node of the target node, and removing the original monitoring event in the clone node; adding target monitoring to the clone node event, and use the target listener event to obtain the download link of the clone node; use the download link to execute a data download operation.
为实现上述目的,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有数据下载程序,所述数据下载程序被处理器执行时实现如上述数据下载方法的步骤。To achieve the above object, the present application provides a computer-readable storage medium, on which a data download program is stored, and when the data download program is executed by a processor, the steps of the above-mentioned data download method are implemented.
为实现上述目的,本申请提供了一种计算机程序产品,包括计算机指令,当其在计算机上运行时,使得计算机可以执行上述任一项所述数据下载方法。To achieve the above purpose, the present application provides a computer program product, including computer instructions, which, when run on a computer, enable the computer to execute the data downloading method described in any one of the above.
通过以上方案可知,本申请提供的一种数据下载方法,包括:利用正则表达式筛选待处理节点得到目标节点;生成所述目标节点的克隆节点,并移除所述克隆节点中的原监听事件;向所述克隆节点中添加目标监听事件,并利用所述目标监听事件获取所述克隆节点的下载链接;利用所述下载链接执行数据下载操作。本申请通过正则表达式选择进行数据下载的节点,通过克隆该节点并去除克隆节点中原监听事件能够避免产生网页跳转的情况,利用目标监听事件获取克隆节点的下载链接,可以下载该节点提供的数据,上述过程提高数据下载稳定性,提高了获取下载链接的成功率。It can be seen from the above scheme that a data download method provided by the present application includes: using regular expressions to filter the nodes to be processed to obtain the target node; generating a clone node of the target node, and removing the original listening event in the clone node ; Adding a target monitoring event to the clone node, and using the target monitoring event to obtain a download link of the clone node; using the download link to perform a data download operation. This application uses a regular expression to select a node for data download. By cloning the node and removing the original listening event in the cloned node, web page jumps can be avoided, and the download link of the cloned node can be obtained by using the target listening event, and the data provided by the node can be downloaded. Data, the above process improves the stability of data download and improves the success rate of obtaining download links.
本申请还公开了一种数据下载系统及一种电子设备和一种计算机可读存储介质,同样能实现上述技术效果。The application also discloses a data downloading system, an electronic device and a computer-readable storage medium, which can also achieve the above-mentioned technical effects.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本申请实施例公开的一种数据下载方法的流程图;FIG. 1 is a flowchart of a data download method disclosed in an embodiment of the present application;
图2为本申请实施例提供的另一种数据下载方法的流程图;FIG. 2 is a flow chart of another data downloading method provided by the embodiment of the present application;
图3为本申请实施例提供的一种数据下载系统的结构图;FIG. 3 is a structural diagram of a data download system provided by an embodiment of the present application;
图4为本申请实施例提供的一种电子设备的结构图;FIG. 4 is a structural diagram of an electronic device provided in an embodiment of the present application;
图5为本申请实施例公开的另一种电子设备的结构图。FIG. 5 is a structural diagram of another electronic device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for descriptive purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features . Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.
在现有技术中,通过直接向目标节点添加监听事件的方式获取下载链接,为用户提供下载服务,但是上述利用现有技术获取的下载链接容易受到网页跳转的影响,数据下载的稳定性较低。In the prior art, the download link is obtained by directly adding a monitoring event to the target node to provide download service for the user, but the download link obtained by using the prior art is easily affected by the webpage jump, and the stability of data download is relatively low. Low.
因此,本申请通过以下几个实施例提供新的数据下载方法,能够提高数据下载稳定性。Therefore, the present application provides a new data download method through the following several embodiments, which can improve the stability of data download.
参见图1,本申请实施例公开的一种数据下载方法的流程图,如图1所示,包括:Referring to FIG. 1, a flow chart of a data download method disclosed in the embodiment of the present application, as shown in FIG. 1, includes:
S101:利用正则表达式筛选待处理节点得到目标节点;S101: Use regular expressions to filter nodes to be processed to obtain target nodes;
其中,本步骤的目的在于从大量的待处理节点中筛选得到目标节点,待处理节点可以为标签名为a标签的节点,即存在下载链接的节点。本实施例中的节点可以为包含下载链接的JavaScript网页。Wherein, the purpose of this step is to obtain a target node from a large number of nodes to be processed. The node to be processed may be a node with a label named a, that is, a node with a download link. The node in this embodiment may be a JavaScript web page containing a download link.
本实施例不对正则表达式的具体形式进行限定,下面举例说明通过正则表达式筛选待处理节点的过程:This embodiment does not limit the specific form of the regular expression. The following example illustrates the process of filtering nodes to be processed through regular expressions:
例如可以通过http、ftp链接后缀判断正则表达式进行筛选。对于视频下载链接的正则表达式可以为:/^(.*\.)?(wmv|asf|asx|rm|rmvb|mpeg|mp4|mpg|3gp|3g2|mov|m4v|avi|dat|mkv|flv|vob|webm|ogv|ogx|swf)[]*$/;对于音频下载链接正则表达式可以为/^(.*\.)?(mp3|m4a|wav|aac|aif|au|ram|wma|mmf|amr|flac|weba|oga|ogg)[]*$/;对于文本文件下载链接的正则表达式可以为/^(.*\.)?(txt|nfo|info|doc|docx|htm|xhtml|html|xml|ppt|pptx|pdf)[]*$/;对于图片下载链接正则表达式可以为:/^(.*\.)?(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp)[]*$/;对于压缩文件下载链接正则表达式可以为:/^(.*\.)?(zip|rar|7z|tar|tgz)[]*$/;对于安装包下载链接正则表达式可以为/^(.*\.)?apk$/;对于其它类型下载链接正则表达式可以为/^(thunder|flashget|qqdl|magnet|ed2k):/。For example, regular expressions can be judged by http and ftp link suffixes to filter. The regular expression for video download link can be: /^(.*\.)? (wmv|asf|asx|rm|rmvb|mpeg|mp4|mpg|3gp|3g2|mov|m4v|avi|dat|mkv|flv|vob|webm|ogv|ogx|swf)[]*$/; for Can the regular expression of the audio download link be /^(.*\.)? (mp3|m4a|wav|aac|aif|au|ram|wma|mmf|amr|flac|weba|oga|ogg)[]*$/; the regular expression for the text file download link can be /^(. *\.)? (txt|nfo|info|doc|docx|htm|xhtml|html|xml|ppt|pptx|pdf)[]*$/; for image download links, the regular expression can be: /^(.*\.)? (bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp)[]*$/; for compressed files The download link regular expression can be: /^(.*\.)? (zip|rar|7z|tar|tgz)[]*$/; For the download link of the installation package, the regular expression can be /^(.*\.)? apk$/; for other types of download links, the regular expression can be /^(thunder|flashget|qqdl|magnet|ed2k):/.
通过上述方法能够滤除不符合正则表达式的节点,例如存在以下标签:Nodes that do not match the regular expression can be filtered out through the above method, for example, the following tags exist:
(1)<aclass=“download”href=“http://www.foo.bar/asdas”>;(1) <aclass="download" href="http://www.foo.bar/asdas">;
(2)<aclass=“download”href=“http://www.foo.bar/a.mp4”>;(2) <aclass="download" href="http://www.foo.bar/a.mp4">;
(3)<divclass=“a-tag”>;(3) <divclass="a-tag">;
(4)<ahref=“magnet:?xt=urn:btih:AC9AE47134CE7A…”>;(4) <ahref="magnet:?xt=urn:btih:AC9AE47134CE7A...">;
其中(3)不是a标签,(1)、(2)和(4)都为a标签,但(1)的href属性没有通过上述两种规则校验,(2)为http且后缀为mp4,通过第1种正则校验;(4)为magnet链接,通过第2种正则校验,通过校验。所以(2)、(4)可标记为下载链接,可以作为目标节点。Among them, (3) is not a tag, (1), (2) and (4) are all a tags, but the href attribute of (1) does not pass the verification of the above two rules, (2) is http and the suffix is mp4, Pass the first type of regular verification; (4) is a magnet link, pass the second type of regular verification, and pass the verification. So (2) and (4) can be marked as download links and can be used as target nodes.
S102:生成所述目标节点的克隆节点,并移除所述克隆节点中的原监听事件;S102: Generate a clone node of the target node, and remove the original monitoring event in the clone node;
具体的,本实施例可以通过cloneNode方法克隆目标节点得到克隆节点,以便移除addEventListener方式的监听事件。通过addEventListener方法监听的事件无法直观的看到,所以容易被忽略,对标签进行节点克隆并替换,可以移除所有addEventListener方式添加的事件,防止不可预料的网页事件影响劫持。Specifically, in this embodiment, the clone node can be obtained by cloning the target node through the cloneNode method, so as to remove the listening event in the addEventListener manner. The events monitored by the addEventListener method cannot be seen intuitively, so they are easy to be ignored. Clone and replace the node of the label to remove all events added by the addEventListener method to prevent unpredictable web events from affecting hijacking.
本步骤中还可以存在移除克隆节点中其他原监听事件的操作,例如通过移除相应属性的方式移除写入到节点中的原监听事件。In this step, there may also be an operation of removing other original listening events in the cloned node, for example, removing the original listening events written in the node by removing corresponding attributes.
S103:向所述克隆节点中添加目标监听事件,并利用所述目标监听事件获取所述克隆节点的下载链接;S103: Add a target monitoring event to the clone node, and use the target monitoring event to obtain a download link of the clone node;
本步骤的目的在于向克隆节点中添加自定义事件,即目标监听事件,可以利用目标监听事件获取克隆节点的下载链接。当然,该目标监听事件还可以通过stopPropagation的方式阻止冒泡,通过阻止冒泡可以防止触发通过事件委托方式添加的事件。The purpose of this step is to add a custom event to the clone node, that is, the target monitoring event, and the target monitoring event can be used to obtain the download link of the clone node. Of course, the target listening event can also prevent bubbling by means of stopPropagation, which can prevent triggering of events added through event delegation.
具体的,利用目标监听事件获取克隆节点的下载链接的过程可以为:Specifically, the process of using the target listening event to obtain the download link of the cloned node can be as follows:
S104:利用所述下载链接执行数据下载操作。S104: Perform a data download operation by using the download link.
在得到了目标节点的下载链接的基础上,本实施例可以利用该下载链接进行数据下载。On the basis of obtaining the download link of the target node, this embodiment can use the download link to download data.
本实施例通过正则表达式选择进行数据下载的节点,通过克隆该节点并去除克隆节点中原监听事件能够避免产生网页跳转的情况,利用目标监听事件获取克隆节点的下载链接,可以下载该节点提供的数据,上述过程提高数据下载稳定性,提高了获取下载链接的成功率。In this embodiment, the node for data download is selected through a regular expression. By cloning the node and removing the original monitoring event in the clone node, the situation of webpage jump can be avoided, and the download link of the clone node can be obtained by using the target monitoring event, and the node can be downloaded. The above process improves the stability of data downloading and the success rate of obtaining download links.
本申请实施例公开了一种数据下载方法,相对于上一实施例,本实施例对技术方案作了进一步的说明和优化。具体的请参见图2,图2本申请实施例提供的另一种数据下载方法的流程图,如图2所示,包括:The embodiment of the present application discloses a data downloading method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Please refer to FIG. 2 for details. FIG. 2 is a flow chart of another data downloading method provided by the embodiment of the present application, as shown in FIG. 2 , including:
S201:将下载链接后缀符合所述正则表达式的待处理节点设置为目标节点;S201: Set the node to be processed whose download link suffix matches the regular expression as the target node;
S202:通过cloneNode的方法生成所述目标节点的克隆节点,并移除所述克隆节点中的原监听事件;S202: Generate a clone node of the target node through the cloneNode method, and remove the original listening event in the clone node;
其中,移除克隆节点的原监听事件的过程可以包括如移除写入到HTML的监听事件onclick,$element.removeAttribute(‘onclick')。Wherein, the process of removing the original listening event of the cloned node may include, for example, removing the listening event onclick written in HTML, $element.removeAttribute('onclick').
S203:调用所述目标事件的stopPropagation方法阻止通过事件委托方式添加的事件。S203: Call the stopPropagation method of the target event to stop the event added through event delegation.
其中,本实施例可以通过自定义事件中调用stopPropagation方法阻止冒泡。阻止冒泡可以防止触发通过事件委托方式添加的事件。Wherein, this embodiment can prevent bubbling by calling the stopPropagation method in the custom event. Blocking bubbling prevents events added via event delegation from firing.
阻止冒泡的过程可以为:The process of preventing bubbling can be:
$element.addEventListener(‘click’,(e)=>{$element.addEventListener('click',(e)=>{
e.stopPropagation();e. stopPropagation();
})。}).
S204:调用所述目标事件的PreventDefault方法阻止元素默认行为。S204: Call the PreventDefault method of the target event to prevent the default behavior of the element.
其中在目标事件中调用preventDefault方法,阻止元素默认行为可以实现对于a标签默认跳转行为的阻止,具体的实现方式可以为:Among them, calling the preventDefault method in the target event to prevent the default behavior of the element can prevent the default jump behavior of the a tag. The specific implementation method can be as follows:
S205:向所述克隆节点中添加目标监听事件,并利用所述目标监听事件获取所述克隆节点的下载链接;S205: Add a target monitoring event to the clone node, and use the target monitoring event to obtain a download link of the clone node;
S206:利用所述下载链接执行数据下载操作。S206: Perform a data download operation by using the download link.
本实施例通过多种方式来去除原监听事件添加目标监听事件,保证了链接获取的完备性,防止如页面跳转等影响链接获取。In this embodiment, multiple methods are used to remove the original monitoring event and add a target monitoring event, which ensures the completeness of link acquisition and prevents link acquisition such as page jump from being affected.
作为一种可行的实施方式,在S206之后还可以存在监听当前节点的Url变化情况,判断该节点进行了单页跳转,重复上述步骤。具体的可以包括以下步骤:As a feasible implementation manner, after S206, there may be a situation of monitoring the Url change of the current node, judging that the node has performed a single-page jump, and repeating the above steps. Specifically, the following steps may be included:
步骤1:判断所述目标节点的URL是否变化;若是,则进入步骤2;Step 1: judging whether the URL of the target node has changed; if so, proceed to step 2;
步骤2:生成新的克隆节点并移除所述新的克隆节点中的原监听事件;Step 2: Generate a new clone node and remove the original listening event in the new clone node;
步骤3:向所述新的克隆节点中添加所述目标监听事件,并利用所述目标监听事件获取所述新的克隆节点的下载链接。Step 3: Add the target monitoring event to the new clone node, and use the target monitoring event to obtain a download link of the new clone node.
步骤4:利用所述新的克隆节点的下载链接执行数据下载操作。Step 4: Perform a data download operation using the download link of the new clone node.
其中,URL(Uniform Resource Locator)为统一资源定位符,当URL变化时本实施例可以针对目标节点生成新的克隆节点。去除该新的克隆节点的原监听时间并添加目标监听事件,以便重新获取下载链接。可以理解的是,在生成新克隆节点之后,还可以存在调用所述目标事件的stopPropagation方法阻止通过事件委托方式添加的事件的操作,也可以存在调用所述目标事件的PreventDefault方法阻止元素默认行为的操作,以便提高链接获取的完备性。Wherein, URL (Uniform Resource Locator) is a Uniform Resource Locator, and this embodiment can generate a new clone node for the target node when the URL changes. Remove the original listening time of the new clone node and add the target listening event so as to obtain the download link again. It can be understood that after the new clone node is generated, there may also be an operation of calling the stopPropagation method of the target event to prevent the event added through event delegation, or there may be a call of the PreventDefault method of the target event to prevent the default behavior of the element operation in order to improve the completeness of link acquisition.
下面对本申请实施例提供的一种数据下载系统进行介绍,下文描述的一种数据下载系统与上文描述的一种数据下载方法可以相互参照。A data download system provided in the embodiment of the present application is introduced below, and a data download system described below and a data download method described above may refer to each other.
参见图3,本申请实施例提供的一种数据下载系统的结构图,如图3所示,包括:Referring to FIG. 3, a structural diagram of a data downloading system provided in an embodiment of the present application, as shown in FIG. 3, includes:
节点筛选模块100,用于利用正则表达式筛选待处理节点得到目标节点;A node screening module 100, configured to utilize regular expressions to screen nodes to be processed to obtain target nodes;
监听事件移除模块200,用于生成所述目标节点的克隆节点,并移除所述克隆节点中的原监听事件;A monitoring event removal module 200, configured to generate a clone node of the target node, and remove the original monitoring event in the clone node;
链接获取模块300,用于向所述克隆节点中添加目标监听事件,并利用所述目标监听事件获取所述克隆节点的下载链接;A link obtaining module 300, configured to add a target monitoring event to the clone node, and use the target monitoring event to obtain a download link of the clone node;
数据下载模块400,用于利用所述下载链接执行数据下载操作。The data downloading module 400 is configured to use the download link to perform a data downloading operation.
本实施例通过正则表达式选择进行数据下载的节点,通过克隆该节点并去除克隆节点中原监听事件能够避免产生网页跳转的情况,利用目标监听事件获取克隆节点的下载链接,可以下载该节点提供的数据,上述过程提高数据下载稳定性,提高了获取下载链接的成功率。In this embodiment, the node for data download is selected through a regular expression. By cloning the node and removing the original monitoring event in the clone node, the situation of webpage jump can be avoided, and the download link of the clone node can be obtained by using the target monitoring event, and the node can be downloaded. The above process improves the stability of data downloading and the success rate of obtaining download links.
进一步的,还包括:Further, it also includes:
阻止冒泡模块,用于调用所述目标事件的stopPropagation方法阻止通过事件委托方式添加的事件。The bubbling prevention module is used to call the stopPropagation method of the target event to prevent events added through event delegation.
进一步的,还包括:Further, it also includes:
默认行为阻止模块,用于调用所述目标事件的PreventDefault方法阻止元素默认行为。The default behavior prevention module is used to call the PreventDefault method of the target event to prevent the default behavior of the element.
进一步的,还包括:Further, it also includes:
URL判断模块,用于判断所述目标节点的URL是否变化;若是,则生成新的克隆节点并移除所述新的克隆节点中的原监听事件;The URL judging module is used to judge whether the URL of the target node changes; if so, then generate a new clone node and remove the former listening event in the new clone node;
新链接获取模块,用于向所述新的克隆节点中添加所述目标监听事件,并利用所述目标监听事件获取所述新的克隆节点的下载链接,以便利用所述新的克隆节点的下载链接执行数据下载操作。A new link obtaining module, configured to add the target monitoring event to the new clone node, and use the target monitoring event to obtain the download link of the new clone node, so as to use the download link of the new clone node The link performs a data download operation.
进一步的,监听事件移除模块200包括:Further, the monitoring event removal module 200 includes:
克隆单元,用于通过cloneNode的方法生成所述目标节点的克隆节点;a cloning unit, configured to generate a clone node of the target node through a cloneNode method;
事件移除单元,用于移除所述克隆节点中的原监听事件;an event removal unit, configured to remove the original listening event in the clone node;
进一步的,节点筛选模块100具体为用于将下载链接后缀符合所述正则表达式的待处理节点设置为目标节点的模块。Further, the node screening module 100 is specifically a module for setting a node to be processed whose download link suffix conforms to the regular expression as a target node.
本申请还提供了一种电子设备,该电子设备可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、掌上电脑、便携计算机、智能路由器等终端设备。The present application also provides an electronic device, which may be a PC (Personal Computer, personal computer), or may be a terminal device such as a smart phone, a tablet computer, a palmtop computer, a portable computer, or an intelligent router.
参见图4,本申请实施例提供的一种电子设备的结构图,如图4所示,可以包括存储器11、处理器12和总线13。Referring to FIG. 4 , a structural diagram of an electronic device provided by an embodiment of the present application, as shown in FIG. 4 , may include a memory 11 , a processor 12 and a bus 13 .
其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是电子设备的内部存储单元,例如该电子设备的硬盘。存储器11在另一些实施例中也可以是电子设备的外部存储设备,例如电子设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(FlashCard)等。进一步地,存储器11还可以既包括电子设备的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装电子设备的应用软件及各类数据,例如数据下载程序01的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。Wherein, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device, such as a hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, Flash card (FlashCard), etc. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store the application software and various data installed in the electronic device, such as the code of the data download program 01, etc., but also can be used to temporarily store the data that has been output or will be output.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,实现上述任一实施例提供的数据下载方法,例如执行数据下载程序01等。In some embodiments, the processor 12 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips for running program codes or processing stored in the memory 11. Data, implement the data download method provided by any of the above embodiments, for example, execute the data download program 01 and so on.
该总线13可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 13 may be a peripheral component interconnect standard (PCI for short) bus or an extended industry standard architecture (EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 4 , but it does not mean that there is only one bus or one type of bus.
上述实施例的基础上,作为优选实施方式,参见图5,所述电子设备还包括:On the basis of the foregoing embodiments, as a preferred implementation manner, referring to FIG. 5 , the electronic device further includes:
输入接口14,用于获取外部导入的计算机程序、参数和指令,经处理器12控制保存至存储器11中。该输入接口14可以与输入装置相连,接收用户手动输入的参数或指令。该输入装置可以是显示屏上覆盖的触摸层,也可以是终端外壳上设置的按键、轨迹球或触控板,也可以是键盘(Keyboard)、触控板或鼠标等。The input interface 14 is used to obtain computer programs, parameters and instructions imported from the outside, which are stored in the memory 11 under the control of the processor 12 . The input interface 14 can be connected with an input device to receive parameters or instructions manually input by the user. The input device may be a touch layer covered on the display screen, or may be a button, a trackball, or a touch pad provided on the terminal shell, or may be a keyboard, a touch pad, or a mouse.
显示单元15,用于显示处理器12处理的数据以及用于显示可视化的用户界面。该显示单元15可以为LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。The display unit 15 is used for displaying data processed by the processor 12 and for displaying a visualized user interface. The display unit 15 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, Organic Light-Emitting Diode) touch device, and the like.
网络端口16,用于与外部各终端设备进行通信连接。该通信连接所采用的通信技术可以为有线通信技术或无线通信技术,如移动高清链接技术(MHL)、通用串行总线(USB)、高清多媒体接口(HDMI)、无线保真技术(WiFi)、蓝牙通信技术、低功耗蓝牙通信技术、基于IEEE802.11s的通信技术等。The network port 16 is used for communicating with various external terminal devices. The communication technology used in the communication connection can be wired communication technology or wireless communication technology, such as mobile high-definition link technology (MHL), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s, etc.
图5仅示出了具有组件11-16以及数据下载程序01的电子设备,本领域技术人员可以理解的是,图5示出的结构并不构成对电子设备的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。Figure 5 only shows an electronic device with components 11-16 and a data download program 01, those skilled in the art can understand that the structure shown in Figure 5 does not constitute a limitation on the electronic device, and may include more Fewer or more components, or combinations of certain components, or different arrangements of components.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.
需要说明的是,上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that the serial numbers of the above embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments. And herein the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, apparatus, article or method comprising a set of elements includes not only those elements, but also includes the elements not expressly included. other elements listed, or also include elements inherent in the process, apparatus, article, or method. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional same elements in the process, apparatus, article or method comprising the element.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910877055.3A CN110611713A (en) | 2019-09-17 | 2019-09-17 | A data download method, system, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910877055.3A CN110611713A (en) | 2019-09-17 | 2019-09-17 | A data download method, system, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110611713A true CN110611713A (en) | 2019-12-24 |
Family
ID=68892813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910877055.3A Pending CN110611713A (en) | 2019-09-17 | 2019-09-17 | A data download method, system, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110611713A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102654831A (en) * | 2011-03-04 | 2012-09-05 | 百度在线网络技术(北京)有限公司 | Device and method for intensively controlling WEB page event and state |
CN102819451A (en) * | 2011-06-09 | 2012-12-12 | 深圳市财付通科技有限公司 | Method and system for calling browser plug-in |
CN104408204A (en) * | 2014-12-18 | 2015-03-11 | 北京国双科技有限公司 | Method and device for obtaining webpage page link address |
CN104767636A (en) * | 2015-02-02 | 2015-07-08 | 北京极科极客科技有限公司 | Router setting method and device |
US20160026356A1 (en) * | 2014-07-28 | 2016-01-28 | International Business Machines Corporation | Client-side dynamic control of visualization of frozen region in a data table |
CN106339426A (en) * | 2016-08-16 | 2017-01-18 | 金蝶软件(中国)有限公司 | Mobile application page control method and system |
CN107870914A (en) * | 2016-09-23 | 2018-04-03 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus for preventing that the page is tampered |
CN108959095A (en) * | 2018-07-12 | 2018-12-07 | 中国工程物理研究院计算机应用研究所 | Method based on XML Schema verifying XML document |
CN109657121A (en) * | 2018-12-09 | 2019-04-19 | 佛山市金穗数据服务有限公司 | A kind of Web page information acquisition method and device based on web crawlers |
-
2019
- 2019-09-17 CN CN201910877055.3A patent/CN110611713A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102654831A (en) * | 2011-03-04 | 2012-09-05 | 百度在线网络技术(北京)有限公司 | Device and method for intensively controlling WEB page event and state |
CN102819451A (en) * | 2011-06-09 | 2012-12-12 | 深圳市财付通科技有限公司 | Method and system for calling browser plug-in |
US20160026356A1 (en) * | 2014-07-28 | 2016-01-28 | International Business Machines Corporation | Client-side dynamic control of visualization of frozen region in a data table |
CN104408204A (en) * | 2014-12-18 | 2015-03-11 | 北京国双科技有限公司 | Method and device for obtaining webpage page link address |
CN104767636A (en) * | 2015-02-02 | 2015-07-08 | 北京极科极客科技有限公司 | Router setting method and device |
CN106339426A (en) * | 2016-08-16 | 2017-01-18 | 金蝶软件(中国)有限公司 | Mobile application page control method and system |
CN107870914A (en) * | 2016-09-23 | 2018-04-03 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus for preventing that the page is tampered |
CN108959095A (en) * | 2018-07-12 | 2018-12-07 | 中国工程物理研究院计算机应用研究所 | Method based on XML Schema verifying XML document |
CN109657121A (en) * | 2018-12-09 | 2019-04-19 | 佛山市金穗数据服务有限公司 | A kind of Web page information acquisition method and device based on web crawlers |
Non-Patent Citations (4)
Title |
---|
TOM PIXLEY: ""Document Object Model Events"", 《HTTPS://WWW.W3.ORG/TR/DOM-LEVEL-2-EVENTS/EVENTS.HTML》 * |
TOM PIXLEY: ""Document Object Model Events"", 《HTTPS://WWW.W3.ORG/TR/DOM-LEVEL-2-EVENTS/EVENTS.HTML》, 13 November 2000 (2000-11-13), pages 1 - 25 * |
等风来: ""cloneNode与事件拷贝"", 《HTTPS://WWW.CNBLOGS.COM/MENGFF/P/9553842.HTML》 * |
等风来: ""cloneNode与事件拷贝"", 《HTTPS://WWW.CNBLOGS.COM/MENGFF/P/9553842.HTML》, 29 August 2018 (2018-08-29), pages 1 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10565293B2 (en) | Synchronizing DOM element references | |
CN106598673B (en) | Application program upgrading method and system | |
CN108549568B (en) | Application entry processing method, device, storage medium and electronic device | |
CN102663319B (en) | Prompting method and device for download link security | |
US20130144934A1 (en) | Web Content Targeting Based on Client Application Availability | |
CN107729452B (en) | Webpage loading method and device, electronic equipment and computer readable storage medium | |
US9307010B2 (en) | Data upload method using shortcut | |
CN105426761B (en) | A kind of recognition methods of illegal application and mobile terminal | |
CN109491962B (en) | A file directory tree management method and related device | |
CN103618936A (en) | Smart television, as well as method and device for pre-downloading link pages in browser of smart television | |
CN103559056A (en) | File downloading method and device | |
WO2014108040A1 (en) | Method and apparatus for presenting content on electronic device | |
CN106649543A (en) | Method, device and terminal for recording reading progress | |
CN104504060A (en) | File downloading method in browser, browser client side and device | |
CN103678506A (en) | Method and device for loading application program shortcuts in browser and browser | |
CN107798064A (en) | Page processing method, electronic equipment and computer-readable recording medium | |
CN112068828A (en) | Method, apparatus, system, device and medium for generating title control | |
CN103617055A (en) | Browser and method and device of starting applications in browser | |
CN112269635B (en) | Functional module configuration method, system, electronic device and storage medium | |
CN108563476A (en) | Application program running method and device, storage medium and electronic equipment | |
CN105630304A (en) | Browser operation method and electronic equipment | |
CN115017428A (en) | Information display method, device, system and storage medium | |
CN104572981A (en) | A web page cache processing method and mobile terminal equipment | |
CN112131024A (en) | Multifunctional jumping method, device, electronic device and storage medium for light application | |
CN110611713A (en) | A data download method, system, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191224 |