标签:
//获取地址栏 参数
function getUrlK(key){
var arr1 = window.location.toString().split(‘?‘);
for (var i=1; i<arr1.length; i++) {
var arr2 = arr1[i].split(‘=‘);
if ( arr2[0] == key ) {
return decodeURI(arr2[1]);
};
};
};
getUrlK("index");
标签:
原文地址:http://www.cnblogs.com/duowen/p/5261630.html