方式1:使用function關鍵字 https://link.juejin.cn/?target= 方式2:匿名函數 https://link.juejin.cn/?target= 方式3:new Function() ES6—23:函數的定義方式