ES6 Arrow Function All In One
ES6 Arrow Function All In One
this
const log = console.log;
const arrow_func = (args) => log(`args =`, args);
// OR
const arrow_func = args => log(`args =`, args);
const arrow_func = (arg1, arg2) => {
log(`args =`, args);
// return void 0;
}
应用场景
refs
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/13892390.html
未经授权禁止转载,违者必究!