js访问静态变量

function A(){
}

A.fun1 = function(){
      console.log('this is fun1');
}

var a = new A;
a.constructor.fun1();//call the static function
   

Published: July 10 2012

  • category:
  • tags: