为了账号安全,请及时绑定邮箱和手机立即绑定

求解 怎么写

求解 怎么写

慕圣2157743 2019-03-24 17:55:25
<script>function JobTime(year,month,date){            var a=parseInt(year),                 b=parseInt(month),                 c=parseInt(date);           var today=new Date();                 today.setFullYear(a+3);                 today.setMonth(b+1);                 today.setDate(c);                 return "该员工的合同到期日期为"+today.getFullYear()+"-"+today.getMonth()+"-"+today.getDate()             }        /*     下面这一段该怎么写让用户输入的值能与函数的参数对应起来       */                var get=JobTime(prompt("请输入年份";"请输入月份";"请输入日期"))               document.write(get) </script>
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 528 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信