const callbackOne = () => {console.log('console log callBack One');};
callbackOne();
// console log callBack One
const callbackTwo = console.log;
callbackTwo('console log callback Two');
// console log callback Two
const funcB = () => { return 617;}
const callbackThree = () => {funcB()};
console.log(callbackThree());
// 617
const callbackFour = funcB;
console.log(callbackFour());
// 617
const callbackFive = () => {window.alert('callback Five');};
callbackFive();
// popup with 'callback Five'
const callbackSix = window.alert;
callbackSix('callback Six');
// popup with 'callback Six'
const callbackSeven = () => {window.history.back();};
callbackSeven();
// browser back
const callbackEight = window.history.back;
callbackEight();
// 'Uncaught TypeError: Illegal invocation' ?????????
网友评论