; function visit_statistics(){ $('.visit_statistics').click(function(){ name = $(this).attr('visit-name'); if(name=='' || name == null){ return; } url = $(this).attr('visit-url'); yyzx_type = $(this).attr('visit-yyzx_type'); type = $(this).attr('visit-type'); services_id = $(this).attr('visit-services_id'); user_id = $(this).attr('visit-user_id'); need_login = $(this).attr('visit-need_login'); if(need_login==1 && user_id==0){ }else{ $.get('http://yyzx.wendaifu.com/index/tongji/visit_statistics',{name:name,url:encodeURIComponent(url),type:type,services_id:services_id,user_id:user_id,refer:1,yyzx_type:yyzx_type},function(){}); } }) }