📅  最后修改于: 2022-03-11 14:57:56.528000             🧑  作者: Mango
var fn3 = (function() {
var first = true;
return function() {
first ? fn1() : fn2();
first = !first;
}
})();
function fn1() {
console.log(1);
};
function fn2() {
console.log(2);
};