<script>
function TestObjectA()
{
this.MethodA = function()
{
alert('TestObjectA.MethodA()');
}
}

function TestObjectB()
{
this.MethodB = function()
{
alert('TestObjectB.MethodB()');
}
}

TestObjectB.prototype = new TestObjectA();
var dd = new TestObjectB();
dd.MethodB();
dd.MethodA();

</script>

相关文章:

  • 2022-01-20
猜你喜欢
  • 2021-08-08
  • 2021-10-19
  • 2021-10-25
  • 2021-06-27
  • 2021-10-17
  • 2021-11-04
  • 2021-12-20
相关资源
相似解决方案