Closures are functions that refer to independent (free) variables
闭包是静态方式/词法方式进行存储所有父作用域的一个函数
在 JavaScript 高级程序设计里面通过一个createComparisonFunction()函数和这个函数的作用域链之间的关系图说得很明白为什么闭包可以访问外部函数的变量,是因为闭包的作用域链不仅包括自己本地的活动对象,还包括外部函数作用域链所指向的活动对象继续阅读 »
这里收藏工作中用到的脚本,也为了防止做重复的搜索工作,同时分享给大家。
more
查看当前表的自增序列
mysql
SELECT `AUTO_INCREMENT` FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'DatabaseName' AND TABLE_NAME = 'TableName';
修改自增序列
mysql
alter table tablename auto_increment=NUMBER;
查看binlog
mysql
show binary logs;
查看binlog位置
mysql
show binlog events in继续阅读 »
Last month I have study a course on Coursera, it is called
Learning how to learn.
It is a course that teach you how to learn efficiently. I made some notes about it
and share here.
(I just list each view point which I think is important, but I think I can figure out
better way to show next time)继续阅读 »