参考链接: http://www.cnblogs.com/shytong/p/5005704.html
由于是回调函数,事先就需要先把数据储存在event上,否则只能用全局变量做为参数传递,建议用bind方式