给出以下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?
}
}
Run Code Online (Sandbox Code Playgroud)
如何修改从内部函数范围内传递到外部函数作用域的id?
| 归档时间: |
|
| 查看次数: |
2694 次 |
| 最近记录: |