/*************************************split url 取得每个value*****************************************/
//?pname=14 - 解脫&author='aaa'©right='bbb'&info='cccc''
var arrurlvalue="";
var urlvalue;
var url = location.search;
url = url.substring(1,url.length); //去掉?
var arrurl = url.split('&');
for(var i=0;i<arrurl.length;i++){
arrurlvalue += arrurl[i].split('=')[1]+","; //14 - 解脫,aaa,bbb,cccc
}
urlvalue = arrurlvalue.split(',')
//pname = urlvalue[0];
//pauthor= urlvalue[1];
//pcopyright= urlvalue[2];
//pinfo= urlvalue[3];
/******************************************************************************/
/**********************split url 取得每个value 拼接json***********************/
var arrurlvalue="";
var urlvalue ;
var url = location.search;
url = url.substring(1,url.length);
// json //{pname:'14 - 解脫',pauthor:'aaa',pcopyright:'bbb',pinfo:'cccc'}
var arrurl = url.split('&');
arrurlvalue = "{";
for(var i=0;i<arrurl.length;i++){
if(i == arrurl.length-1)
arrurlvalue += arrurl[i].split('=')[0] +":"+ "'"+ arrurl[i].split('=')[1] +"'";
else
arrurlvalue += arrurl[i].split('=')[0] +":"+ "'"+ arrurl[i].split('=')[1] +"'"+",";
}
arrurlvalue += "}";
//结果 arrurlvalue = "{pname:'14 - 解脫',pauthor:'aaa',pcopyright:'bbb',pinfo:'cccc',pduration:272}";
/******************************************************************************/