JS函数立即执行
https://blog.csdn.net/u011215669/article/details/89086362
(()=>{ let canShow = true if(this.props.isPlayerOnly){ canShow = false }else{ if(isFullScreen){ canShow = false } } return {display: canShow ? 'flex':'none' } })()
原生JS代码立即执行:
(function(x){console.log(x)}(1))