function time(){ var now = new Date(); var year = now.getFullYear(); var month = now.getMonth(); var day = now.getDate(); } alert(time());
為什么彈出的是undefined
軟弱的讀書人
2017-10-13 15:13:03