What's the meaning of “=>” (an arrow formed from equals & greater than) in JavaScript?
问题 I know that the >= operator means more than or equal to, but I\'ve seen => in some source code. What\'s the meaning of that operator? Here\'s the code: promiseTargetFile(fpParams, aSkipPrompt, relatedURI).then(aDialogAccepted => { if (!aDialogAccepted) return; saveAsType = fpParams.saveAsType; file = fpParams.file; continueSave(); }).then(null, Components.utils.reportError); 回答1: What It Is This is an arrow function. Arrow functions are a short syntax, introduced by ECMAscript 6, that can be