我有以下代码,任何人都可以告诉我什么“!!”在这儿。谢谢。
$('#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);
}
});
}
});
我做了一些谷歌搜索,遗憾的是我找不到这样的运营商。如果您知道任何网站作为参考,请告诉我。
感谢。
答案 0 :(得分:1)
它是双重否定,用于明确地将值转换为布尔值。