给定以下JavaScript代码:
var someFunction = function(id) {
//do some stuff
var modifyId = function(id) {
//do some stuff
outer.id = id; //is there any way to modify the id variable in the outer scope from here?
}
}
如何在内部函数作用域中修改传递到外部函数作用域的id?