// 实现继承
function C_parent()
{
this.tmp = "Hello world.";
}
function C_child()
{
}
C_child.prototype = new C_parent();
var obj_child = new C_child();
WSH.Echo(obj_child.tmp);
// 实现继承
function C_parent()
{
this.tmp = "Hello world.";
}
function C_child()
{
}
C_child.prototype = new C_parent();
var obj_child = new C_child();
WSH.Echo(obj_child.tmp);