如何在不修改的情况下向jquery库添加更多变量?

时间:2018-03-06 07:44:14

标签: javascript jquery jquery-ui jquery-ui-datepicker

我正在使用" jQuery-v2.0.3和jQueryUI-v1.11.3"在我现有的项目中。 jQueryUI文件中有一个函数,如:

function n() {
        ..........., 
        this.regional = [], 
        this.regional[""] = {
            .....,
            monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
            monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
            dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
            dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
            .......
        }, 
        ........
    }

是否可以添加更多变量,例如" this.regional [" nl"] = {....}"没有修改这个文件?我想使用另一个JS文件,它必须能够将新变量附加到该函数,以便我可以从修改jquery-ui库中逃脱?或者还有其他等效方法吗?

0 个答案:

没有答案