Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/thinkjs/thinkjs
/ functions
Functions
198 in github.com/thinkjs/thinkjs
⨍
Functions
198
◇
Types & classes
43
↓ 34 callers
Method
config
* get config
index.d.ts:40
↓ 22 callers
Method
param
* get param * * @memberOf Context
index.d.ts:142
↓ 18 callers
Method
post
* get post data * @memberOf Context
index.d.ts:170
↓ 15 callers
Function
getApplication
()
test/case/application.js:7
↓ 10 callers
Method
fail
* send fail data * @memberOf Context
index.d.ts:130
↓ 9 callers
Method
run
* run
lib/application.js:229
↓ 9 callers
Method
service
(name: string)
index.d.ts:496
↓ 8 callers
Method
file
* get file data * * @memberOf Context
index.d.ts:198
↓ 7 callers
Method
__after
()
test/case/extend/controller.js:328
↓ 7 callers
Method
cookie
* get cookie
index.d.ts:24
↓ 7 callers
Method
header
* get this.ctx.header[name] * @memberOf Controller
index.d.ts:363
↓ 7 callers
Method
isMethod
* @memberOf Context
index.d.ts:95
↓ 6 callers
Method
error
(msg: string)
index.d.ts:464
↓ 6 callers
Method
set
(name, value, options)
test/lib/mockie.js:119
↓ 5 callers
Method
_watcherCallBack
* watcher callback
lib/application.js:50
↓ 5 callers
Method
info
(msg: string)
index.d.ts:462
↓ 5 callers
Method
jsonp
* send jsonp data, callbackField default to this.config('jsonpCallbackField') * * @memberOf Context
index.d.ts:114
↓ 5 callers
Method
referer
* get referer header * @memberOf Context
index.d.ts:86
↓ 5 callers
Method
validate
(rules: Object, msgs?: Object)
index.d.ts:468
↓ 4 callers
Method
action
* execute action * * @memberOf Controller
index.d.ts:436
↓ 4 callers
Method
download
* download * @memberOf Context
index.d.ts:233
↓ 4 callers
Method
isAjax
* is ajax request * @memberOf Context
index.d.ts:100
↓ 4 callers
Method
isJsonp
* is jsonp request * callbackField default to this.config('jsonpCallbackField') * * @memberOf Context
index.d.ts:107
↓ 4 callers
Method
loadAll
* load all data
lib/loader.js:100
↓ 3 callers
Method
controller
* get controller instance * @memberOf Controller
index.d.ts:408
↓ 3 callers
Method
expires
* set expires header * @memberOf Context
index.d.ts:135
↓ 3 callers
Method
get
* get or set param * * @memberOf Controller
index.d.ts:318
↓ 3 callers
Method
json
* send json data * @memberOf Context
index.d.ts:119
↓ 3 callers
Method
notifier
* notify error
lib/application.js:36
↓ 3 callers
Method
parseArgv
* parse argv
lib/application.js:91
↓ 3 callers
Method
success
* send success data * @memberOf Context
index.d.ts:124
↓ 2 callers
Method
beforeStartServer
(fn: Function)
index.d.ts:499
↓ 2 callers
Function
getLoader
()
test/case/loader.js:7
↓ 2 callers
Method
initPath
* init path
lib/loader.js:24
↓ 2 callers
Method
loadMiddleware
* load middleware
lib/loader.js:54
↓ 2 callers
Method
redirect
* Perform a 302 redirect to `url`. * * The string "back" is special-cased * to provide Referrer support, when Referrer * is not presen
index.d.ts:402
↓ 2 callers
Method
referrer
* get referer header * @memberOf Context
index.d.ts:91
↓ 2 callers
Method
startServer
()
test/lib/mockie.js:80
↓ 1 callers
Method
__before
()
test/case/extend/controller.js:346
↓ 1 callers
Method
_getMasterInstance
(argv)
lib/application.js:105
↓ 1 callers
Method
_getWorkerInstance
(argv)
lib/application.js:138
↓ 1 callers
Method
_isRunInTest
* check test env
lib/application.js:189
↓ 1 callers
Method
addRule
()
test/lib/mockie.js:146
↓ 1 callers
Method
captureEvents
()
test/lib/mockie.js:87
↓ 1 callers
Function
createFile
(dir, filename, content, cb)
test/lib/utils.js:7
↓ 1 callers
Method
forceReloadWorkers
()
test/lib/mockie.js:78
↓ 1 callers
Method
get
(name, options)
test/lib/mockie.js:122
↓ 1 callers
Function
getApplication
()
test/case/extend/controller.js:8
↓ 1 callers
Method
loadCrontab
* load crontab
lib/loader.js:83
↓ 1 callers
Method
loadData
* load app data
lib/loader.js:41
↓ 1 callers
Method
loadExtend
* load extend
lib/loader.js:63
↓ 1 callers
Method
query
* get or set param * * @memberOf Controller
index.d.ts:324
↓ 1 callers
Method
runInCli
* command line invoke
lib/application.js:178
↓ 1 callers
Method
runInMaster
* run in master
lib/application.js:128
↓ 1 callers
Method
runInWorker
* run in worker * @param {Object} argv
lib/application.js:165
↓ 1 callers
Method
runTask
()
test/case/loader.js:16
↓ 1 callers
Method
startWatcher
* start watcher
lib/application.js:79
↓ 1 callers
Method
validate
(rules, msgs)
test/lib/mockie.js:143
↓ 1 callers
Method
watch
()
test/case/application.js:97
↓ 1 callers
Method
writeConfig
* write config to file * @param {Config} config
lib/loader.js:92
Function
__after
* after magic method
lib/extend/logic.js:48
Method
__call
()
test/case/extend/controller.js:325
Function
action
* execute action * @param {String} controller * @param {String} actionName * @param {String} m
lib/extend/controller.js:270
Function
attachment
()
test/case/extend/context.js:39
Function
babel
(options)
test/case/application.js:110
Function
body
* body getter
lib/extend/controller.js:11
Function
config
* get or set config * @param {String} name * @param {Mix} value * @param {String} m
lib/extend/controller.js:92
Function
config
* get or set configs * @param {String} name * @param {Mixed} value * @param {String} m
lib/extend/context.js:158
Function
config
(name)
test/case/extend/context.js:69
Function
construct
(data)
test/case/application.js:150
Method
constructor
(options = {})
lib/loader.js:18
Method
constructor
* constructor
lib/application.js:19
Method
constructor
(ctx)
lib/think.js:48
Method
constructor
(options,cb)
test/case/application.js:93
Method
constructor
(options = {})
test/lib/mockie.js:72
Method
constructor
(options = {})
test/lib/mockie.js:83
Method
constructor
(req, res, options)
test/lib/mockie.js:109
Method
constructor
(ctx)
test/lib/mockie.js:140
Function
controller
* get controller instance * @param {String} name * @param {String} m
lib/extend/controller.js:234
Function
controller
()
test/case/extend/context.js:72
Function
cookie
* get or set cookies * @param {String} name * @param {String} value * @param {Object} options
lib/extend/controller.js:185
Function
cookie
* get or set cookie * @param {String} name * @param {String} value * @param {Object} options
lib/extend/context.js:259
Function
cookie
(name, value)
test/case/extend/controller.js:91
Method
createServer
()
lib/application.js:144
Method
createServer
()
test/lib/mockie.js:96
Method
debug
(msg: string)
index.d.ts:461
Function
download
* download * @param {String} filepath * @param {String} filename
lib/extend/controller.js:298
Function
download
* download * @param {String} filepath * @param {String} filename
lib/extend/context.js:303
Function
download
()
test/case/extend/controller.js:32
Method
download
* download * @memberOf Controller
index.d.ts:449
Function
emit
()
test/case/extend/context.js:37
Function
expires
* set expires header * @param {Number} time
lib/extend/controller.js:144
Function
expires
* set expires header
lib/extend/context.js:146
Function
expires
(time)
test/case/extend/controller.js:81
Method
expires
* set expires header * @memberOf Controller
index.d.ts:311
Function
fail
* send fail data
lib/extend/controller.js:137
Function
fail
* send fail data
lib/extend/context.js:116
Function
fail
({errno, errmsg, data})
test/case/extend/controller.js:78
Method
fail
* send fail data * @memberOf Controller
index.d.ts:306
Function
file
* get or set file data * @param {String} name * @param {Mixed} value
lib/extend/controller.js:176
next →
1–100 of 198, ranked by callers