阅读背景:

使用异步函数构建数组,然后将数组传递给Node JS中的GET方法

来源:互联网 

I'm using the Twitter node package for a GET request to retrieve a bunch of tweets. I put all the info I want into an object call 'element' and push into an array call 'ary'. I plan on using this array to dynamically build an ordered list. How would I pass this ary into a webpage so that it would build a new 'ary' every time it loads the webpage and so the server would wait until it gets back the 'ary' before it renders the page. Here's my newbie attempt with little understanding of how to use asynchronous function below. Btw "client" is just a new Twitter() object.I'm using the Twitter node package for a GET re




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: