87,915
社区成员
发帖
与我相关
我的任务
分享
var regx = /\/teach\/[-a-zA-Z0-9]{0,62}\/\d+(?:\/(.*))?$/,
url = "http://localhost:8081/sand/teach/D2/10/xx";
var result = url.match(regx);
if(result[1]){
$('#tech-course-round-' + result[1]).addClass("");
}else{
$('#tech-course-round-index').addClass("");
}