異步編程的理解

回調函數 函數也是一種數據類型,既能夠作參數,又能夠充當返回值node 傳統的函數 直接經過return 返回結果web function add (x,y){ return x+y } add(10,20) 異步函數 函數封裝了異步的操做ajax 異步操做:編程 setTimeoutpromise setInterval異步 ajaxasync node中的文件操做svg 通常異步API
相關文章
相關標籤/搜索