我试图定义一个简单的函数,例如: function example(foo, bar = 'hello') { console.log(bar); } example('hi'); JS Fiddle(运行时请参阅控制台中的错误):
確定! 回上一頁