用js增加PV的方法


JavaScript #pv2012-07-05 21:50
//增加PV方法
    function addPv(){
        var _hasp = /\#p\=/i.test(window.location.href);
        if(!_hasp){
            window.location.href = window.location.href+"#p=1";
        }else{
            window.location.href = window.location.href.split("#p=")[0] + "#p="+parseInt(count);
        }
    }
 
//注: count  为变量

相关文章

粤ICP备11097351号-1