-
## DESC
![w z4x aru8sq6e3ii i0k](https://user-images.githubusercontent.com/18344919/28916298-5963253e-7874-11e7-9c22-f955d99bc4f2.png)
## ENV
Platform:
Node.js Version:
Thin…
-
## DESC
> 事务使用方式
```
let model = this.model('log')
try {
await model.startTrans()
let res = await model.where({ id: 10 }).update({
text: 'xxxxxxx'
})
await model.c…
-
## DESC
think-model中关于关联模型使用非int值关联错误问题详细情况如下图所示:
如图所示,应该属于失误,烦请尽快修复。
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
https://thinkjs.org/zh-cn/doc/3.0/think.html
这里开头是这样写的 框架中内置 think 全局对象,方便在项目中随时随地使用。
但是文档翻遍了也没有找到在view下面如何使用的例子!
至少我在尝试的方法上都没有成功过!
## ENV
Platform:
Node.js Version:
Think…
-
是我通过nginx来部署,并按照文档里说的:src/common/config/env/prodution.js 里关闭了静态资源处理;
然后发现:访问不到静态文件!
但此时如果通过npm start来启用自带服务器的话,能访问到,因为在src/common/config/config.js中的配置是:
>export default {
resource_on: true, …
-
具体场景是这样的:比如微信登陆,需要传递一个回跳地址,所以需要一个完整的URL地址,现在的方法是用 ctx中的protocol host port path之类的自己拼接,有点麻烦
希望后续能增加这类功能。
-
## DESC
Extend,注入 think.Mongo 和 think.mongo、controller.mongo
模块名为 [think-mongo](https://github.com/thinkjs/think-mongo)
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
- 前段时间有使用egg做过项目,今天看了一遍 thinkjs 3.0 文档,感觉很是相近(当然都是基于koa进行的),想了解下有何异同,该如何取舍(个人更偏向用thinkjs ,感觉文档和命令行打印做的更好一些)
- 目前看 thinkjs 3.0 暂时只支持 Mysql, 是否有扩展其他数据库(如 Mongodb)的计划?
- 感谢奉献好工具,辛苦了。
##…
-
socket 房间概念怎么配置呢?能不能通过path设置?
-
## DESC
## ENV
Platform:
Node.js Version:
ThinkJS Version: