-
## DESC
我在"src/common/bootstrap/global.ts",中准备添加一个全局函数,
发现Typescript提示"Cannot find name 'global'",
然后我在这个ts文件中添加了"/// "这段申明,任然报错。
请我我该怎么获得global这个变量,需要我自己定义吗?
## ENV
Platform:Windows10
…
-
https://github.com/thinkjs/think-validator/blob/9342e4e261a5635d79e8ca7a51d8fc055a1123a7/rules.js#L211
追了下代码: currentQuery 两次定义好像不需要, 取不到post的里的值
rule
```
let rule = {
password: {
…
-
通过微信给服务端发送消息后,服务端报错
``` javascript
Unhandled rejection Error: PREVENT_NEXT_PROCESS
at Object.think.prevent (/home/project/weixin-demo/node_modules/thinkjs/lib/core/think.js:511:13)
at _class.…
-
```
[2018-01-19T04:15:54.045] [12618] [INFO] - Workers: 1
/home/pi/www/app/logic/.AppleDouble/index.js:1
(function (exports, require, module, __filename, __dirname) {
…
-
错误提示:await is a reserved word
放在client外面就不会出错!
有什么解决办法?
-
## DESC
不清楚 在typescript 的情况下,怎么实现读写文件
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
### ENV
OS Platform: window10 x64
Node.js Version: v8.7.0
ThinkJS Version: 3.2.2
### code
```js
thinkjs new demo --mode=module
cd demo
thinkjs module admin
thinkjs servic…
-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:3.0
### code
```js
// your code here
thinkJs new XXXX --mode=module
```
### error message
```
// your error me…
-
INSERT INTO `fk_options` (`key`, `value`, `desc`)
VALUES
('analyze_code','','统计代码,可以添加百度统计、Google 统计等'),
('comment','{\"type\":\"duoshuo\",\"name\":\"welefen2013\"}','评论类型'),
('description',…
-
请问怎么在thinkjs项目接口请求的path里加上一个一个前缀,类似于加上一个项目名一样的东西。