 |
ถามโค็ดปฎิทินสักนิดค่ะ พี่ อยากทราบว่าเค้าเปลี่ยน รูปแบบการแสดงวันเดือนปีตรงไหนค่ะ |
|
 |
|
|
 |
 |
|
อยากทราบว่าจากโค็ดนี้เค้าเปลี่ยน รูปแบบการแสดงวันที่เป็น วัน - เดือน- ปี ตรงไหนค่ะ หนูหาจนตาลายแล้วค่ะ ยังไม่เจอสักที มีสองไฟล์ค่ะที่คาดว่าน่าจะเปลี่ยนตรงไฟล์นี้ หนูลองเปลี่ยนตรงนู้นตรงนี้ก้อยังไม่ได้สักที
Code (PHP)
$(document).ready(function() {
$('#datepicker-example1').Zebra_DatePicker();
$('#datepicker-example2').Zebra_DatePicker({
direction: 1 // boolean true would've made the date picker future only
// but starting from today, rather than tomorrow
});
$('#datepicker-example3').Zebra_DatePicker({
direction: true,
disabled_dates: ['* * * 0,6'] // all days, all monts, all years as long
// as the weekday is 0 or 6 (Sunday or Saturday)
});
$('#datepicker-example4').Zebra_DatePicker({
direction: [1, 10]
});
$('#datepicker-example5').Zebra_DatePicker({
// remember that the way you write down dates
// depends on the value of the "format" property!
direction: ['2012-08-01', '2012-08-12']
});
$('#datepicker-example6').Zebra_DatePicker({
// remember that the way you write down dates
// depends on the value of the "format" property!
direction: ['2012-08-01', false]
});
$('#datepicker-example7-start').Zebra_DatePicker({
direction: true,
pair: $('#datepicker-example7-end')
});
$('#datepicker-example7-end').Zebra_DatePicker({
direction: 1
});
$('#datepicker-example8').Zebra_DatePicker({
format: 'M d, Y'
});
$('#datepicker-example9').Zebra_DatePicker({
show_week_number: 'Wk'
});
$('#datepicker-example10').Zebra_DatePicker({
view: 'years'
});
$('#datepicker-example11').Zebra_DatePicker({
format: 'm Y'
});
$('#datepicker-example12').Zebra_DatePicker({
onChange: function(view, elements) {
if (view == 'days') {
elements.each(function() {
if ($(this).data('date').match(/\-24$/))
$(this).css({
background: '#C40000',
color: '#FFF'
});
});
}
}
});
$('#datepicker-example13').Zebra_DatePicker({
always_visible: $('#container')
});
$('#datepicker-example14').Zebra_DatePicker();
});
Tag : Java, HTML/CSS, JavaScript
|
|
 |
 |
 |
 |
Date :
2013-09-30 17:15:17 |
By :
nongtoom |
View :
790 |
Reply :
3 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
งง แฮะๆ
|
 |
 |
 |
 |
Date :
2013-10-01 12:07:36 |
By :
nongtoom |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
จากข้างบนเค้าบอกให้ ฟังก์ชันที่มี format: 'M d, Y' ครับ
|
ประวัติการแก้ไข 2013-10-01 14:08:34
 |
 |
 |
 |
Date :
2013-10-01 14:05:53 |
By :
tonmasterbp |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|