You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f=function(){returntrue};g=function(){returnfalse};(function(){if(g()&&[]==![]){f=function(){returnfalse};functiong(){returntrue}}})();alert(f());//true or false?
Activity
Yoomin233 commentedon Nov 16, 2016
1
应该alert出
false, 因为function g在第七行开始的匿名函数中被提升了, 导致if()表达式中的两个式子值都为true.2
3
呆尾递归优化的递归版本:
4
现在好像都是直接用
innerHeight和innerWidth了...5
现在好像都是用
postMessage...