摘要:
规律1:函数用圆括号调用,函数的上下文是window对象 比如小题目: function fun(){ var a = 888; alert(this.a); //实际上访问的是window.a } var a = 666; fun(); //弹出666 函数function fun(){}的上下文 阅读全文
摘要:
翻译自react的大部分文档,方便自己查阅。 目录 生命周期 实例化 存在期 销毁期 state Do Not Modify State Directly State Updates May Be Asynchronous State Updates are Merged The Data Flow 阅读全文