一.操作当前用户 //Load current user info function LoadCurUser() { var curUser; curUser = curWeb.get_currentUser(); curContext.load(curUser); curContext.executeQueryAsync(onQuerySucceeded, onQueryFailed); function onQuerySucceeded() { $("#hdUserName").t…
function createListItem() { var clientContext = new SP.ClientContext(_spPageContextInfo.siteAbsoluteUrl); var oList = clientContext.get_web().get_lists().getByTitle('TestList'); var itemCreateInfo = new SP.ListItemCreationInformation(); …