【发布时间】:2026-02-12 19:25:01
【问题描述】:
我有以下代码,谁能告诉我什么是“!!”在这儿。谢谢。
$('#calendar').fullCalendar({
events: function(start, end, timezone, callback) {
jQuery.ajax({
url: 'schedule.php/load',
type: 'POST',
dataType: 'json',
data: {
start: start.format(),
end: end.format()
},
success: function(doc) {
var events = [];
if(!!doc.result){
$.map( doc.result, function( r ) {
events.push({
id: r.id,
title: r.title,
start: r.date_start,
end: r.date_end
});
});
}
callback(events);
}
});
}
});
我做了一些谷歌搜索,不幸的是我找不到这样的运营商。如果您知道任何网站作为参考,请告诉我。
谢谢。
【问题讨论】:
-
它的 2 个
!运算符,这让我想起了->运算符 :)
标签: javascript jquery