=>
是es6语法中的arrow function
例如:(x) => x + 6 含义如下:
function(x)
{
return x + 6;
};
代码中有一处语法用到了该知识点:
get enabledCalendars() {
return this.mCalendars.filter(e => !e.getProperty("disabled"));
},
=>
是es6语法中的arrow function
例如:(x) => x + 6 含义如下:
function(x)
{
return x + 6;
};
代码中有一处语法用到了该知识点:
get enabledCalendars() {
return this.mCalendars.filter(e => !e.getProperty("disabled"));
},