![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nodeJS
文章平均质量分 83
Eviwa
这个作者很懒,什么都没留下…
展开
-
promise
function dbUpAsync(val){ return new Promise((resolve,reject)=>{ setTimeout(()=>{ if (val < 5 ) { console.log(val + ' is ok'); resolve(val+1); }else{ console.log(val + ' is fals...原创 2018-07-06 15:59:27 · 107 阅读 · 0 评论 -
callBack
function testFunction(val1,call){ console.log(val1); call(val1+10);}testFunction(1,function(a){ console.log(a);})/*等价*/testFunction(1,result =>{ console.log(result);})原创 2018-07-06 15:59:48 · 123 阅读 · 0 评论 -
Vue element admin template node nodeJs配置环境
以新装好的系统为例:Ubuntu 14.04#不要使用默认apt intsall 命令安装,默认安装的node版本过低。1:下载node安装包 ,我下载的是8.11.3版本( 为什么呢,因我司项目版本是8.11.3 ,为了避免莫名错误和bug)2:解压下载好的安装包cd node-v8.11.3-linux-x64/bin./node -v 版本:8.11.3这样就可...原创 2018-10-24 16:47:19 · 2331 阅读 · 0 评论