Vue选人
<input id="Name" onclick="Open('Name','文本框ID','','')" type="text">
//获取路径中传递的值:GetQueryString("Name")
function GetQueryString(p) {
var re = new RegExp("[&,?]" + p + "=([^\\&]*)", "i");
var a = re.exec(document.location.search);
if (a == null)
return "";
return a[1];
}
可通过方法打开 选人列表,在下图位置自定义传递返回值,传入指定位置;
例如: $("#" + GetQueryString(“Name”) + “”,window.parent.document).val(selectedEmpName);得到文本框ID 将选中数据赋值