SPSERVICES中completefunc的等效函数

时间:2015-05-04 05:05:38

标签: sharepoint attachment spservices

我正在尝试在SPSERVICES中实现completefunc以用于文件附件。我已经使用completefunc完成了该功能,该功能是成功的。但实际上并不需要completefunc。所以,我尝试删除completefunc,我面临以下错误。

Uncaught TypeError: av.completefunc is not a function

我的代码是:

$().SPServices( {        
        operation: "Attachment",
        listName: ,//name of the list
        listItemID: ,//list item id
        fileName: attachmentInformation[attachmentName + '_NAME'],
        attachment: attachment,
        async: false,
        debug: true,
        completefunc:null
    } );

我尝试按照要求删除completefunc,我面临上述错误。 请通过删除completefunc

建议我这样做的方法

1 个答案:

答案 0 :(得分:1)

您是否尝试过删除completefunc行?

$().SPServices( {        
    operation: "Attachment",
    listName: ,//name of the list
    listItemID: ,//list item id
    fileName: attachmentInformation[attachmentName + '_NAME'],
    attachment: attachment,
    async: false,
    debug: true
} );