Javascript括号表达式

括号表达式,里面有多项,只执行最后一项

function fn1 () {console.log(1)}
function fn2 () {console.log(2)}

//匿名函数自执行
(fn1,fn2) () //2

相关文章:

  • 2022-02-07
  • 2022-02-07
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-02-07
相关资源
相似解决方案