博客数计数

id_=document.getElementById("sidebar_categories");a_=id_.getElementsByTagName("a");len_=a_.length; sum_=0;for(i=0;i<len_;i++){n=a_[0].childNodes[0].nodeValue.split("(")[1].split(")")[0];sum_+=parseInt(n);}

原文地址:https://www.cnblogs.com/rsapaper/p/9079621.html