我的js模块是这样的:
/* `querystring` is outside of the func `foo` below. */
const querystring = require('querystring');
let foo = (params) => (dispatch, getState) => {
// In Chrome Dev Tools I set a breakpoint here inside `foo` func.
// And I want to reference `querystring` here in Chrome Dev Tools
// And Chrome Dev Tools says it is not available.
}
这是一张照片。为什么会这样?如何在Chrome Dev Tools中有效引用Closure
中的变量?
BTW,Closure.querystring
也不可用。