我在看jquery.ui-1.8.11.js:jQuery - 这个语法是什么意思?
$.extend(Datepicker.prototype, {
/* Class name added to elements to indicate already configured with a date picker. */
markerClassName: 'hasDatepicker',
/* Debug logging (if enabled). */
log: function() {
if (this.debug)
console.log.apply('', arguments);
},
那是什么log: function()
语法?它叫什么?它如何被使用?
这只是提供给新的原型的选项被指定。最有可能用于处理新对象上的日志记录事件。 “如果需要记录某些内容,请在调试启用的情况下调用此函数” –