我在写类的时候做了一步这样的操作:
function A(Tname)
{
   if(typeof(Tname) != "string" || Tname == "")
      throw(new Error(-1, 'Input instance name'));
   this.Text = "";
   this.SetText = function(text)
   { .... }
   this.Show(left, top)
   {
      //动态的生成一个textbox, 我现在希望能够textbox的onclick事件中调用SetText的函数
      //请问怎么实现.谢谢
      var str = "<input onclick='"+ Tname +".SetText(this)'>"
    }
}
var abc = new A("abc");