| setYear() | ใช้กำหนด ปีที่จะให้แสดง |
|---|
method:setYear ( year )
return type:void
content:ใช้กำหนด ปีที่จะให้แสดง
example:var config = { pagedate: "1/2009", mindate: "1/5/2009", maxdate: "1/15/2009" }; var calendar = new YAHOO.widget.Calendar ( "table", "container", config ); calendar.setYear ( 2009ss ); calendar.render ( );
comment:ตัวแปร year คือใช้กำหนด ปีที่ โดยมีค่าที่เป็นไปได้ ได้แก่ ตัวเลขสี่หลัก