我正在尝试在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
建议我这样做的方法答案 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
} );