HEHANG / KNOWLEDGE
开发手记
标签下的文章
- IP Insight 开发手记:多源检测是怎么拼起来的IP Insight Dev Notes: How Multi-Source Detection Comes Together
第一版很糙:一个窗口,一个按钮,一个结果区。点击检测后,用 Promise.all 同时请求三个 API,哪个先回来先显示。代码不到 200 行。The first version was rough: one window, one button, one result area.Click detect, fire three APIs with Promise.all, display whichever returns first. Under 200 lines of code.