var Obj = function( target ) { this.target = $(target); this.num = 0; this.setNum = setNum;}Obj.prototype.display = function() { alert( this.num );}function setNum() { var $t = this.target; $t.on('click', 'a', function(e) { 使this.num的值为a的value; 这里执行原型函数display; });}应该怎么写?
添加回答
举报
0/150
提交
取消