保存后bootstrap-datepicker.js文件问题

时间:2015-11-26 11:37:01

标签: javascript jquery datepicker

我遇到bootstrap-datepicker.js的问题。我想更改默认日期格式。更改并保存文件后,更改不会反映在页面上。当我检查网站上的页面源时,该值仍然与默认值相同。另一方面,当我打开文件时,vaue会保存为我想要的。

知道如何解决这个问题吗?

我的价值观:

var defaults = $.fn.datepicker.defaults = {
    autoclose: true,     <============ My Value
    beforeShowDay: $.noop,
    calendarWeeks: false,
    clearBtn: false,
    daysOfWeekDisabled: [],
    endDate: Infinity,
    forceParse: true,
    format: 'dd/mm/yyyy', <============ My Value
    keyboardNavigation: true,
    language: 'en',
    minViewMode: 0,
    multidate: false,
    multidateSeparator: ',',
    orientation: "auto",
    rtl: false,
    startDate: -1,
    startView: 0,
    todayBtn: false,
    todayHighlight: true,
    weekStart: 0
};

页面来源值:

var defaults = $.fn.datepicker.defaults = {
    autoclose: false,   <============ Default Value
    beforeShowDay: $.noop,
    calendarWeeks: false,
    clearBtn: false,
    daysOfWeekDisabled: [],
    endDate: Infinity,
    forceParse: true,
    format: 'mm/dd/yyyy',   <============ Default Value
    keyboardNavigation: true,
    language: 'en',
    minViewMode: 0,
    multidate: false,
    multidateSeparator: ',',
    orientation: "auto",
    rtl: false,
    startDate: -Infinity,
    startView: 0,
    todayBtn: false,
    todayHighlight: false,
    weekStart: 0
};

0 个答案:

没有答案