考察以下程序片段: 以下選項正確的是?()
A.輸出1 B.輸出2 C.輸出p D.輸出12
考察以下程序片段: 以下選項正確的是?()
A.依次輸出”px” “px” B.依次輸出”32” “32” C.依次輸出”32px” “px” D.依次輸出”32px” “32px”
預測以下代碼片段的輸出結(jié)果:() var student = new Object(); student.study = function() {window.alert(“開始學習了”); } study();
A.輸出“開始學習了” B.程序出錯。不能在實例化對象之后,再添加方法 C.程序出錯。study()方法不能直接調(diào)用。應該用student來調(diào)用 D.程序出錯。給student.study賦值時,右邊的函數(shù)必須有名字