function main(){ var read = read();}function read() { return 6;}main();為什么報(bào)錯(cuò)呀,read不是應(yīng)該等于6嗎?
JavaScript中一個(gè)關(guān)于變量提升的問(wèn)題
莫回?zé)o
2018-08-03 06:05:50