我正在使用PptxGenJS,我想在保存我的PowerPoint之后运行一个函数。我想我可以使用.then(...)方法,因为这个库已经使用了Promise。
然而,当我尝试这样的事情时:
pptx.save('Sample Presentation').then(function(){
alert('done saving');
});.then(..)块不执行。
有没有其他方法可以让我的脚本等到保存操作完全完成?
发布于 2018-12-12 15:30:13
在“PptxGenJS”文档中,他们也提到,
pptx.save('Sample Presentation', ()=> {
//do your stuff here
});https://stackoverflow.com/questions/53346927
复制相似问题