function getCurrentUserInfo(fieldName)///fieldName的值可以为"Name”,"Email"等/
{
currentSite = getCurrentSite();
var thisField = "";
var thisTextValue = RegExp("FieldInternalName=\"" + fieldName + "\"", "gi");
$.ajax({
async: false,
url: currentSite + "/_layouts/userdisp.aspx?Force=True&" + new Date().getTime(),
complete: function (xData, Status) {
$(xData.responseText).find("table.ms-formtable td[id^='SPField']").each(function() {
if(thisTextValue.test($(this).html())) {
// Each fieldtype contains a different data type, as indicated by the id
switch($(this).attr("id")) {
case "SPFieldText":
thisField = $(this).text();
break;
case "SPFieldNote":
thisFiel
{
currentSite = getCurrentSite();
var thisField = "";
var thisTextValue = RegExp("FieldInternalName=\"" + fieldName + "\"", "gi");
$.ajax({
async: false,
url: currentSite + "/_layouts/userdisp.aspx?Force=True&" + new Date().getTime(),
complete: function (xData, Status) {
$(xData.responseText).find("table.ms-formtable td[id^='SPField']").each(function() {
if(thisTextValue.test($(this).html())) {
// Each fieldtype contains a different data type, as indicated by the id
switch($(this).attr("id")) {
case "SPFieldText":
thisField = $(this).text();
break;
case "SPFieldNote":
thisFiel