mobiscroll 날짜가 올바르지 않은 날

1673 단어 scroll

 
$(function(){
    function init() {
        mobiscrllObj = $('#calendar_date').mobiscroll().calendar({
            theme: 'mobiscroll',
            lang: 'zh',
            display: 'bottom',
            controls: ['calendar'],
            buttons: [],
            closeOnSelect: true,
            // false, , true
            closeOnOverlay:true,
            // 
//            minDate: new Date(2015, 3, 27),
//            minDate: new Date(),
//            onShow:removeSign,
            // , ,5 1 ,12 24 ,12 25 
            //invalid: ['w0', 'w6', '5/1', '12/24', '12/25']
			//  invalid  , 
            invalid: ['']
        });
        console.dir(mobiscrllObj);
    }
    init();
});

 
해결 방법:
 
var setting = {
		theme: 'mobiscroll',
		lang: 'zh',
		display: 'bottom',
		controls: ['calendar'],
		buttons: [],
		closeOnSelect: true,
		closeOnOverlay:false,
		minDate: new Date(),
		maxDate:new Date().addMonths(2),
		onSelect:dialogOk,
		"goodsid":obj,
//            onShow:removeSign,
		//invalid: ps_arr_1.split(",")
		//invalid: [""]
 };
// , 
if(ps_arr_1 != ""){
	setting = $.extend(setting,{invalid: ps_arr_1.split(",")});
}

$(this_obj).mobiscroll().calendar(setting);

 

좋은 웹페이지 즐겨찾기