AJAX asynchronously collects all videos and information from Youku album (JavaScript code)_javascript skills
WBOY
Release: 2016-05-16 18:15:53
Original
1266 people have browsed it
Personally, I feel dissatisfied because VB.NET performs collection in the .NET environment, and the resulting network connection and regular matching consume too much. And my final application is in video collection and submission, so I considered using JS's AJAX regular expression. way to accomplish this goal. I have never studied JS and regular expressions systematically before, so it took longer than expected. After struggling all night, I came up with the following code. =..=
The idea is basically the same as last time, so I won’t go into details. The collection time of a page using VB.NET is generally about 1 second, and this code relies on client scripts. The collection time of each page is about 0.3~0.5 seconds, depending on the user's computer configuration. I personally tested it with IE7 and passed it, but the code is more random, so the compatibility is not very good. If you need to use it, please modify the code yourself. Original work by Ye Wenxiang, please keep this information when reprinting Blog: http://clso.cnblogs.com/ Homepage: http://www.cleclso.cn/
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn