Cho ning Luk

Results 5 issues of Cho ning Luk

使用最新的 koa-generator 生成的项目 app.js 文件中,有如下一段代码: // routes app.use(index.routes(), index.allowedMethods()) app.use(users.routes(), users.allowedMethods()) IDE 提示 Invalid number of arguments, expected 1 查看了相关文档和 koa 源码,其中 app.use 只接收一个参数 fn。 index.allowedMethods() 等操作是否可以放在 routers 的相关文件中,在 module.exports...

章节地址 https://ts.xcatliu.com/advanced/tuple#jian-dan-de-li-zi 当赋值或访问一个已知索引的元素时,会得到正确的类型: let tom: [string, number]; tom[0] = 'Tom'; tom[1] = 25; tom[0].slice(1); tom[1].toFixed(2); 也可以只赋值其中一项: let tom: [string, number]; tom[0] = 'Tom'; 示例代码报错,查询ts官网和其他网站,并没有发现这种写法,只能整个数组一起赋值 let tom: [string, number]; tom =...

# 希望可以添加支持arm版本 看了package里面配置,打包是使用 -x86 的配置,希望可以调整 electron 版本 并增加 build-arm 的 script ,万分感谢

按需引入的demo中的查看main.js传送门404(用了梯子也404),麻烦修复一下,谢谢

在页面的非第一屏引用时,样式出现问题 demo.wxml ``` 内容 内容 少量内容,不足以填充calendar的高度时 ``` calendar的wxml中,下拉的日历view定位为fixed,在组件之后没有内容或内容过少,会出现下拉日历显示不全的问题