<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() ? ? ? ? ? ? }? ? ? ? /*? ? ?下面這一段該怎么寫讓用戶輸入的值能與函數(shù)的參數(shù)對應(yīng)起來? ? ? ?*/? ? ? ? ? ? ? ? var get=JobTime(prompt("請輸入年份";"請輸入月份";"請輸入日期"))? ? ? ? ? ? ? ?document.write(get) </script>
求解 怎么寫
慕圣2157743
2019-03-24 17:55:25