-
Node.js Version:5.6.0
ThinkJS Version:3.0
let result=await this.model('a_menu').page(getData.pageNumber,getData.pageSize).countSelect();
分页的时候默认用id统计总条数,但我的主键名不是id,分页时就报错了
![image](https://user-…
-
![default](https://user-images.githubusercontent.com/14636247/32928343-7a0df6ea-cb8c-11e7-9967-224d0ba95855.png)
如图
若使用 `thinkjs new thinkjs-demo typescript` 则没有问题
-
## DESC
assign如何赋值数组或对象
### ENV
OS Platform:centos7.3
Node.js Version:v8.9.4
ThinkJS Version:2.2.1
### code
controller
```js
const Base = require('./base.js');
module.exports =…
-
### ENV
OS Platform: window 7 64bit
Node.js Version:v8.9.3
ThinkJS Version:v2.2.24
### code
```js
//path src/common/bootstrap/crontab.js
let CronJob = require('cron').CronJob
new C…
-
## DESC
请问thinkjs 3如何实现类似thinkjs2的配置错误号和错误信息?
### ENV
OS Platform: win7_64
Node.js Version: 8.9.3
ThinkJS Version: 3+
### more description
在thinkjs 2中可以通过config文件夹下的locale/en.js配置错误号和…
-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
```
### error message
```
// your error message here
```
### more descrip…
-
已经在使用thinkjs的产品可以在这里列出
-
为什么我从mac上面直接npm -g install thinkjs-cli 结果是2.2.1?如何安装3.0?
-
## DESC
## ENV
Platform:MAC OS
Node.js Version:v6.3.0
ThinkJS Version:2.2.18
https://github.com/zhipenglin/exhibition
-
## DESC
express结合supertest能够非常方便的模拟http请求进行测试
``` js
var request = require('supertest');
var express = require('express');
var app = express();
app.get('/user', function(req, res) {
res.status(2…