set

?? [set]

vt. ?? ??? ??? ?

vi. ??; ???? ??

adj. ??; ??; ??

3?? ??: ?? ???: ?? ????: ??

English [m?nθ] US [m?nθ]

n. ?, ? ??

???: ?

?????? setMonth() ??? ???

??: ?? ???? ? ?????.

??: ??dateObject.setMonth(?,?)

????: month ?????. ?? ???? 0(1?)?? 11(12?) ??? ?????. ??? ?? ?????. ?? ?? ???? ??(1~31(?? ??))???. EMCAScript? ????? ??? ? ????? ???? ?????.


??: ??? ??? ??? ??. ECMAScript? ????? ??? ? ???? ???? ???? ?????.

??: ? ???? ?? Date ??? ?? ?????.

?????? setMonth() ??? ?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
//通過 setMonth() 方法把對(duì)象 d 的月字段設(shè)置為 0 (一月)
    var d=new Date()
    d.setMonth(0)
    document.write(d)

</script>

</body>
</html>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????