dahong
dahong copied to clipboard
个人技术随笔
## 前言 回头来看基础总会有不一样的感受,所以弄了个系列记录下,这篇算是起点,共勉 JS 是门弱类型语言,包含两种类型 - 基本类型 - 引用类型 先来说说基本类型,基本类型包含 - `string` - `number` - `boolean` - `undefined` - `null` - `symbol` - `bigint` 引用类型包含 - `object` - `function` -...
!!!Important This issue is a private blog, please do not open the issue. !!!重要 这个issue是私人博客,请不要乱开issue
!!!Important This issue is a private blog, please do not open the issue. !!!重要 这个issue是私人博客,请不要乱开issue
!!!Important This issue is a private blog, please do not open the issue. !!!重要 这个issue是私人博客,请不要乱开issue
!!!Important This issue is a private blog, please do not open the issue. !!!重要 这个issue是私人博客,请不要乱开issue
!!!Important This issue is a private blog, please do not open the issue. !!!重要 这个issue是私人博客,请不要乱开issue
!!!Important This issue is a private blog, please do not open the issue. !!!重要 这个issue是私人博客,请不要乱开issue
看了[冴羽大神](https://github.com/mqyqingfeng)的[JavaScript深入之call和apply的模拟实现](https://github.com/mqyqingfeng/Blog/issues/11)有所收获,所以也写了篇总结下,并且特地开了个系列,希望能够整理下自己的所学 ### call ```js fn.call(isThis, arg1, arg2, ....) ``` ### apply ```js fn.apply(isThis, [arg1, arg2, ....]) ``` 相同点: 1. 改变 this 指向 2. 可以传参 3. 立即调用 区别: 1. apply 接收一个数组参数,call...
[项目地址](https://github.com/shaodahong/jd-happy) 求个 star 在现在,商家一年不卖货,双11卖出一年的货是大家都知道的事实了,总得来说调一调蚊子腿的价格,聊胜于无,但是也会有些神价格会出现,这时候买到就是赚到 本来是想趁着双11组台电脑,买个 Z370 的板U套装,没想到京东的 8700k 一直是无货的状态,这几天有货了,价格涨到了3999,简直不能忍,看了下板U套装比较划算,但是有些板U套装是不支持自动下单的,所以 [gayhub](https://github.com) 搜搜看有没有爬虫可以监听到货自动下单的,正好有了这哥们的 [jd-autobuy](https://github.com/Adyzng/jd-autobuy) Python 脚本,还有 Go 的,看了下接口已经很齐全了,来个 node 版本的助助兴 这次用到的 http 库是 [axios](https://github.com/axios/axios),支持客户端和服务端,总得来说语法还是很简洁的,在这之前还有个 [superagent](https://github.com/visionmedia/superagent) 库,看了下也差不多,只不过 superagent 在 response 上多处理了下 因为在 vue...