寫了一個(gè)簡(jiǎn)單的基于chreeio的數(shù)據(jù)爬取代碼,node http的模塊獲取html 然后用chreeio爬取。想使用最新的async await 來異步操作.代碼如下:不知道哪里寫錯(cuò)了,目的就是想在test()里面能直接拿到getList返回的newCollection;
nodejs 中http模塊的async 用法
溫溫醬
2018-11-14 13:10:53