Copyright statement: original works can be reproduced. During reprinting, be sure to mark them as hyperlinks. ArticleOriginal publication, author information, and this statement. Otherwise, legal liability will be held. Http://blog.csdn.net/mayongzhan-ma yongzhan, myz, mayongzhan
Suddenly thought of Firefox's firebug...
It's so evil.
I immediately opened firebug for hi.csdn.net.
Perform the following operations:
VaR I = 0;
Do {
$ ("Input [value = 'add as friend ']") [I]. Click ();
I ++;
} While ($ ("input [value = 'add as friend ']") [I]);
Then you can see the number of requests sent one by one, and then the number of friends requests on the page is reduced one by one.
Finally, a number is displayed in console. Log in csdn, which is the total number... It seems that some ProgramThe member forgot to test CodeRemove it.
OK.
What if I want to reject them in batches?
If you are interested, try it.
By the way, I am most pleased that csdn actually supports jquery! Csdn is good.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.