MasterId: (masterIdUrl != null && masterIdUrl != "") ? masterIdUrl : null
ClassId: (classReportIddUrl != null && classReportIddUrl != "") ? classReportIddUrl : null
let masterIdUrl = utils.getQueryStringByName("masterId");
let classReportIddUrl = utils.getQueryStringByName("classReportId");
console.log(masterIdUrl,classReportIddUrl)
http://localhost:8080/?OpenId=gengxaio?classReportId=101218&masterId=16001#/ChuyingClassImprove
getQueryStringByName: function (name) {
var result = location.search.match(new RegExp("[?&]" + name + "=([^&]+)", "i"));
if (result == null || result.length < 1) {
return "";
}
return result[1];