文件名称:react-native-promise
文件大小:3KB
文件格式:ZIP
更新时间:2024-05-29 10:00:12
JavaScript
React本国承诺 import runPromisesInSeries from 'react-native-promise' const p1 = ()=>{ return new Promise((resolve,reject)=>{ resolve('测试常见的Promise用法'); }).then(r=>{ return r; }).catch(error=>{ console.log('error'+error); }); }; const p2 = ()=>{ return new Promise((resolve,reject)=>{ resolve('测试常见的Promise用法,串行执行'); }).then(r=>{ return r;
【文件预览】:
react-native-promise-master
----package.json(563B)
----src()
--------runPromisesInSeries.js(1KB)
----LICENSE(1KB)
----index.js(97B)
----README.md(731B)