我对 Javascript 很陌生,我正在尝试从这个 URL 执行这个股票图表以正常工作:http: //jsfiddle.net/2zBRt/2/
The code is excatly the same from the URL, some minor changes are made to ensure that the JQuery library is called
但是我不断收到此错误:
(1) Uncaught TypeError: Cannot call method 'setDefaults' of undefined
(2) Uncaught TypeError: Object [object Object] has no method 'datepicker'
Code:
function(chart){
// apply the date pickers
setTimeout(function(){
$('input.highcharts-range-selector',
$('#'+chart.options.chart.renderTo)).datepicker()
},0)
});
// Set the datepicker's date format
$.datepicker.setDefaults({
dateFormat: 'yy-mm-dd',
onSelect: function(dateText) {
this.onchange();
this.onblur();
}
});
请帮帮我,我的老板在我脖子上喘着粗气