function onLoad() { //console.log("jason top.location:"+unescape(top.location)); //Type appropriate comment here, and begin script below var requestBy = getParameterValue("sysparm_request_by"); g_form.setValue('request_for_fulfiller',requestBy); } function getParameterValue(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(unescape(top.location)); if (results == null) { return ""; } else { return unescape(results[1]); } }
client script 获取URL参数
原创ServiceNow 博主文章分类:ServiceNow ©著作权
文章标签 Client Script 文章分类 后端开发
-
jquery获取url参数
jquery获取url参数
jquery javascript 正则表达式 -
获取url地址参数
获取url地址参数
获取url地址参数 -
jquery 从url获取参数 jquery获取url参数对象
/*1*/ $.extend({ queryString: function (name) { var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
jquery 从url获取参数 javascript ViewUI jQuery 正则表达式