$(function(){
//获取跳转前的
id var thisURL = document.URL; var getval =thisURL.split(‘?‘)[1];
var id= getval.split("=")[1];
$.get(‘../../app/News/countPvnum.do?id=‘+id,{r:Math.random()},function(num) { }); });
原文:http://www.cnblogs.com/kongqinyuan/p/6822773.html