-
[joi](https://github.com/hapijs/joi) 不方便在前端使用,来个菊苣挖坑!
大致就是这样的效果:
``` js
import {dataTypes, validate} from 'checkon'
const schema = {
username: dataTypes.string().range(8, 20).required(),
email…
-
## DESC
order函数升序中文显示正常,DESC降序中文乱码
## ENV
Platform:window 8
Node.js Version:6.10.3
ThinkJS Version:2.2.18
-
## DESC
Think.js 3.x 如何同时配置mysql和mongodb
-
## 早报
1. 小程序组件化开发框架,https://mp.weixin.qq.com/s/bUuHM_U1W5rFxWoGGvQwJQ ,https://github.com/Tencent/wepy
2. React 性能优化,主要是 shouldComponentUpdate、控制 rerender 范围,以及合理利用 debounce 和 throttle,https://med…
-
## DESC
typescript 编译时没有类型检测
### ENV
OS Platform:
win7, centos
Node.js Version:
8.9.1
ThinkJS Version:
think-cli 2.2.1
### code
### 创建命令
```js
thinkjs new xxx typescript
```
##js代码…
-
## DESC
### ENV
OS Platform:windows
Node.js Version:8.9.4
ThinkJS Version:2.2.5
### code
```js
// model.js
create_time:{
type: 'datetime',
default: () => think.d…
-
## DESC
think-mongo怎么连接replica set和使用事务?要用到mongoose吗?
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
```
### error message
```
// you…
-
-
## DESC
按文档配置mysql的读写分离后
出现内存不断升高,不回落。
单数据库没有问题。
## ENV
Platform:
Node.js Version: 8.3
ThinkJS Version: 2.2
-
## DESC
目前还是存在很多企业在用oracle,希望集成oracledb
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
```
### error message
```
// your error messag…