egg中获得当前函数内获得当前函数的名称

Created on 24 Jan 2018  ·  5Comments  ·  Source: eggjs/egg

请问有获取方法吗?arguments.callee类似于这样的

All 5 comments

egg 就是普通的 js 代码,没有特殊的能力

JS 可以怎么样,就怎么样。

要是可以用 我也不会来问了啊 被框架禁用了 在controller里面的async函数中console.log(arguments) 会提示严格模式下禁用该属性的访问
我关了仍然是这个提示

这个跟框架没啥关系.... use strict 是 ES6 特性来着,建议还是去看看 JS 基础吧。
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee

这是一个JS领域的『月经』问题。

可以看看这个讨论:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

XadillaX picture XadillaX  ·  44Comments

killagu picture killagu  ·  48Comments

popomore picture popomore  ·  70Comments

andylei18 picture andylei18  ·  35Comments

popomore picture popomore  ·  59Comments