Why is this javascript expression evaluated to false?
This question already has an answer here:
What am I missing?
That your fun
function is testing the variable f
, which still is bound to the function you passed in, not the variable nullify
(which has the value null
indeed).
上一篇: 如何在Android中声明全局变量?