2015-05-04 45 views
0

我試圖在文件附件中實現SPSERVICES中的completefunc。我已經完成了函數使用completefunc這是成功的。但實際上completefunc並不是必需的。所以,我嘗試刪除completefunc,我面臨以下錯誤。SPSERVICES中的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

這樣做你有沒有試過只刪除completefunc行?

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