-
程序开着,经常会出现如下错误
检测到 Node.js v8.1.4,因此使用检查器协议调试。
node development.js
[2017-07-26 15:59:47.411] [INFO] - Server running at http://127.0.0.1:8888
[2017-07-26 15:59:47.414] [INFO] - ThinkJS versio…
-
## DESC
客户端POST数据,POST类似是 text/plain,不是常用的【form-data】,【x-www-form-urlencoded】
目前在POSTMAN中测试,无法在服务端获取到数据,是否是不支持此类型
## ENV
dev
Platform:
MAC
Node.js Version:
v6.9
ThinkJS Version:
2.6.1
…
-
页面显示导入成功700篇文章,首页刷新页面没有数据,查了一下数据库,fk_post,没文章。这是怎么回事?
istek updated
7 years ago
-
## DESC
没有找到db模糊查询的方法,这个是必须的API哟
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
您好,请问在进行跨模块调用的时候,我被调用的action接受多个参数,我该如何传递参数到action中呢?或者我被调用的action需要怎样修改可以获取到参数?
## ENV
Platform: macOS
Node.js Version: 4.2.2
ThinkJS Version: 2.2.18
-
## DESC
1、希望提供对object的子项目的验证(像是joi那样)
post:
{
p:{
c:1
}
}
希望能对p下面的c进行验证,在p是object的情况下能指定field参数
2、像object同样希望支持对数组的每一项进行验证。
3、希望区分开没有传递参数和传递的参数isEmpty返回空的情况。。
或者添加能检测实际有无传递参数的检查功能
比如string我希望知道他是…
-
当前只能改变router才能实现,然而得继承框架。。。
这样实现类似于控制器级别中间件,类似于thinkjs的__before.
action级别自动validate之类,类似于thinkjs的logic层。
-
博客地址:http://blog.geekek.me/
显示 Internal Server Error 500 页面,搞不懂,请指导!
-
## DESC
await model.where({ "_id": {'$in':ids} }).select();
这样查询不出数据
但是:
await model.where({ "name": {'$in':['aaa','bbb']} }).select()
就查询得出
不知道什么原因,如何通过id数组查询数据?
## ENV
Platform:mong…
-
## DESC
使用以下用法:
```javascript
return this.where({id: ['BETWEEN', fromDate, toDate]}).select();
```
拼接处SQL语句:
```sql
SELECT * FROM `performance` WHERE ( (`time` BETWEEN '2017-04-13 00:00:00'…