function dy(){ clog(str)}
function fn(){ let str = 'str' dy()}
fn()
会报错,str is not defined
请问这是为啥呀
收起
let 定义的变量只在{}内
报告相同问题?