js mendapatkan kabar sebelum tanda tanya
var str = "/root/Users?SkillId=201;"
str = str.replace(/\?.*$/g,"");
console.log(str);
Borma
var str = "/root/Users?SkillId=201;"
str = str.replace(/\?.*$/g,"");
console.log(str);