Sylvia

Results 6 comments of Sylvia

req.body为空可能是上传体积超过express默认的100kb导致,可以试一下修改body size的limit,如: app.use(express.json({ limit: '10mb' })); app.use(express.urlencoded({ extended: false, limit: '10mb' })); Example中的Node-Server代码由非官方贡献者提供,仅为示例,建议开发者使用官方指定的Server代码:https://github.com/Meituan-Dianping/Logan/tree/master/Logan/Server

2020年内排不进了。明年时间未定,内部的logan小程序版本先优化迭代下,之后考虑开。

精确的节流函数中 > if (remaining { fn.apply(context, args) starttime = Date.now() }, remaining)

> Object.prototype.toString({}) // "[object Object]" 这句用法有误,toString方法是没有入参的,所以楼1有那样的疑惑。 这句相当于是执行了Object.prototype这个原型对象的toString。 为何要用Object.prototype.toString.call是因为这样执行的就是目标对象在Object原型上的toString方法,回避了有些目标对象自己覆盖的toString方法。