修改地址后的参数:
<script>
function getNewUrl(oldurl,paramname,pvalue){
var reg = new RegExp("(\\?|&)"+ paramname +"=([^&]*)(&|$)","gi");
获取地址参数:
<script>
function aa(source, name)
{
var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
if (reg.test(source)) return RegExp.$2; return "";
};
alert(aa("http://community.csdn.net/Expert/topic/4223/4223277.xml?temp=6.502932E-02", "temp"))
</script>