如何在下面的函数中使用(传递)3列。 [英] How to use (pass) 3 columns in the below function.

查看:89
本文介绍了如何在下面的函数中使用(传递)3列。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi al,

我正在使用下面的代码,但在这里我只用了1个coloumn,如果我想带一个像Coloumn2& Coloumn3这样的两个cololmn,那么我需要做什么。

$ ()。 SPServices ({
operation
" GetVersionCollection"
async
strlistID
" list1"
strFieldName
" column1"
completefunc
功能 xData < span class ="pln"style ="margin:0px; padding:0px; border:0px; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; font-family:inherit ; vertical-align:baseline; color:#303336"> Status {
console
日志 xData );
$
xData < span class ="pln"style ="margin:0px; padding:0px; border:0px; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; font-family:inherit ; vertical-align:baseline; color:#303336"> responseText )。 找到 " Version" )。 每个 function i {
}

$().SPServices({ operation: "GetVersionCollection", async: false, strlistID: "list1", strFieldName: "column1", completefunc: function (xData, Status) { console.log(xData); $(xData.responseText).find("Version").each(function (i) { }




Shiv Sharma


Shiv Sharma

推荐答案

嗨  SharePoint User02

尝试以下方法也提及listitemId 

try below approach also mention the listitemId 


()。SPServices({
operation:" GetVersionCollection",
async:false,
strlistID:" List1",
strlistItemID:1,
strFieldName:" coulmn1",
completefunc:function(xData,Status){
().SPServices({ operation: "GetVersionCollection", async: false, strlistID: "List1", strlistItemID: 1, strFieldName: "coulmn1", completefunc: function (xData, Status) {


(xData.responseText).find(" Version")。each(function(i){
console.log(" coulmn1header:" +
(xData.responseText).find("Version").each(function(i) { console.log("coulmn1header: " +


这篇关于如何在下面的函数中使用(传递)3列。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆