代碼如下:functionitem(args){varposttitle;letp=newPromise((resolve,reject)=>{hexo.extend.filter.register('after_post_render',function(post){posttitle=post.title;resolve(posttitle);//這里的post是文章的數(shù)據(jù),而post.title則是文章的標(biāo)題...});})p.then((value)=>{console.log(value);})returnvalue;//如何return.then的value值?}需要大家的幫助!~T-T...非常感謝!~
請(qǐng)各位大佬指點(diǎn)!.then的返回值問題?
瀟湘沐
2019-06-10 09:51:16