Copyright statement: original works can be reproduced. During reprinting, you must mark the original publication, author information, and this statement in hyperlink form. 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... Some programmers forget to remove the test code.
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.