ThinkJs2.0开发手册APIthink
上一篇:推荐模块
下一篇:think.base
think
- 属性
- think.startTime
- think.env
- think.dirname
- think.port
- think.cli
- think.lang
- think.mode
- think.version
- think.module
- think.THINK_PATH
- think.THINK_LIB_PATH
- think.ROOT_PATH
- think.APP_PATH
- think.RESOURCE_PATH
- 方法
- think.Class(methods, clean)
- think.extend(target, source1, source2, ...)
- think.isBoolean(obj)
- think.isNumber(obj)
- think.isObject(obj)
- think.isString(obj)
- think.isFunction(obj)
- think.isDate(obj)
- think.isRegexp(obj)
- think.isError(obj)
- think.isEmpty(obj)
- think.isArray(obj)
- think.isIP4(obj)
- think.isIP6(obj)
- think.isIP(obj)
- think.isFile(file)
- think.isDir(dir)
- think.isBuffer(obj)
- think.isNumberString(obj)
- think.isPromise(obj)
- think.isHttp(obj)
- think.isWritable(path)
- think.isPrevent(obj)
- think.mkdir(p, mode)
- think.rmdir(p, reserve)
- think.chmod(p, mode)
- think.md5(str)
- think.defer()
- think.promisify(fn, receiver)
- think.reject(err)
- think.co
- think.lookClass(name, type, module, base)
- think.getPath(module, type, prefix)
- think.require(name, flag)
- think.safeRequire(file)
- think.prevent()
- think.log(msg, type, showTime)
- think.config(name, value, data)
- think.getModuleConfig(module)
- think.hook()
- think.middleware()
- think.adapter()
- think.gc(instance)
- think.http(req, res)
- think.uuid(length)
- think.session(http)
- think.controller()
- think.logic()
- think.model()
- think.service()
- think.cache(name, value, options)
- think.locale(key, ...data)
- think.validate()
- think.await(key, callback)
- think.npm(pkg)
- think.error(err, addon)
- think.statusAction(status, http, log)
- 类
上一篇:推荐模块
下一篇:think.base