• 2022-06-12
    以下哪段代码能正确创建函数show()
    A: var showFun = new function{"text","alert(text)"};
    B: function show(text){alert(text);}
    C: var showFun = function show(text){alert(text);}
    D: var showFun = function(text){alert(text);}
  • 举一反三