//keyNum/(d{1,2})/?/.exec(window.location.href);
window.location.href 获取urlkeyNum可以替换为自己的key值exec()匹配并返回匹配到的数据