2016-04-19 23 views

答えて

1

使用||(OR)演算:JsFiddle:それ

例を並べ替えるために私を助けてください -

var picker = new Pikaday({ 
    disableDayFn: function(date){ 
     // Disable Monday and Tuesday 
     return (date.getDay() === 1 || date.getDay() === 2); 
    }, 
    field: document.getElementById('datepicker') 
}); 

DEMO

+0

おかげスカンダ –

+0

RonaldJoseph..you're歓迎@:このように! –

1

あなたは2日間無効にする必要が||を使用して

var picker = new Pikaday({ 
disableDayFn: function(date){ 
    // Disable Monday 
    return date.getDay() === 1 || date.getDay() === 2; 
}, 
field: document.getElementById('datepicker') 
}); 
関連する問題