JavaScript基礎題、練習題、考試題、面試題(一)

1.如下代碼執行後,分別彈出來的值是: var num1=1; function testf1(){ num1=2; var num1; alert(num1); } function testf2(){ alert(num1); } testf1(); testf2(); A 2,1 B 2,2 C undefined,undefined D 2,undefined 正確答案: A 解析: te
相關文章
相關標籤/搜索