- Mastering JavaScript Promises
- Muzzamil Hussain
- 86字
- 2021-07-16 13:46:50
Interactive promises
Interactive promises are extended promises that add more value to the paradigm by adding two more functions to its arsenal, get
and call
:
get(propertyName)
: This function requests the given property from the target of promise. This also returns a promise to provide the value of the stated property from promise's target.call(functionName, arg1, arg2…)
: This function requests to call the given method/function on the target of promise. It also returns a promise to provide the return value of the requested function call.
推薦閱讀
- 造個(gè)小程序:與微信一起干件正經(jīng)事兒
- Rake Task Management Essentials
- R語言數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南
- Expert Android Programming
- Android開發(fā)案例教程與項(xiàng)目實(shí)戰(zhàn)(在線實(shí)驗(yàn)+在線自測(cè))
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- 一步一步跟我學(xué)Scratch3.0案例
- 分布式架構(gòu)原理與實(shí)踐
- 現(xiàn)代CPU性能分析與優(yōu)化
- Visual Basic 程序設(shè)計(jì)實(shí)踐教程
- After Effects CC案例設(shè)計(jì)與經(jīng)典插件(視頻教學(xué)版)
- MySQL數(shù)據(jù)庫教程(視頻指導(dǎo)版)
- 編寫高質(zhì)量代碼之Java(套裝共2冊(cè))
- Python網(wǎng)絡(luò)爬蟲從入門到實(shí)踐
- Python深度學(xué)習(xí):基于PyTorch