James58899 says to YSITD
那應該是var的scope問題吧