举例说明如何为JavaScript的方法参数设置默认值 你是否遇到过这样的情况,写了个function,无参数。 function showUserInfo(){ alert("你好!我是小明。"); JavaScript 2022-04-17 176 点赞 2 评论 266 浏览