var show = function() { // do some thing } var hide = function() { return function(e) { // do some thing } } // 1 on( target,"focus",lang.hitch(this,show,参数1,参数2)); // 2 on( target,"blur",hide(参数1,参数2));
var show = function() { // do some thing } var hide = function() { return function(e) { // do some thing } } // 1 on( target,"focus",lang.hitch(this,show,参数1,参数2)); // 2 on( target,"blur",hide(参数1,参数2));