var a=function(a,c){if(a)c(a)}
undefined
a(true,(console.log))
VM177:2 Uncaught TypeError: Illegal invocation(…)a @ VM177:2(anonymous function) @ VM186:2InjectedScript._evaluateOn @ VM116:875InjectedScript._evaluateAndWrap @ VM116:808InjectedScript.evaluate @ VM116:664
a(true,console.log)
VM177:2 Uncaught TypeError: Illegal invocation(…)a @ VM177:2(anonymous function) @ VM188:2InjectedScript._evaluateOn @ VM116:875InjectedScript._evaluateAndWrap @ VM116:808InjectedScript.evaluate @ VM116:664
a(true,()=>console.log)
undefined
a(true,(e)=>console.log(e))
VM190:2 true
undefined
a(false,(e)=>console.log(e))
undefined
a(true,(e)=>console.log(e))
VM192:2 true
undefined

  

相关文章:

  • 2021-07-20
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-07-13
  • 2021-12-23
  • 2021-04-15
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-09-17
  • 2021-11-13
  • 2021-06-23
  • 2021-05-15
  • 2021-09-06
相关资源
相似解决方案