我有一个这样的子课:
SyncTelemetryChannel : ITelemetryChannel
ITelemetryChannel : IDisposeable
我应该在SyncTelemetryChannel Dispose方法中添加什么?目前我有这个:
public void Dispose() {}
谢谢,彼得
答案 0 :(得分:0)
var quotes = {
'20171012':{quote:'one',author:'fred'},
'20171013':{quote:'two',author:'mary'},
'20171014':{quote:'three',author:'sue'}
};
function showQuote(quotes) {
var d = new Date();
var key = '' + d.getFullYear() +
('0'+(d.getMonth()+1)).slice(-2) +
('0'+d.getDate()).slice(-2);
return quotes[key]
}
// On 2017-10-13 shows quote: two, author: mary
console.log(showQuote(quotes));