<SCRIPT LANGUAGE="JavaScript">
<!--
function Base( v_sBaseName )
{
this.BaseName = v_sBaseName
this.BaseMethod = BaseMethod;
function BaseMethod( v_sStr )
{
alert("BaseName: " + this.BaseName + "\n" + "ExtendStr: " + v_sStr);
}
}function Son( v_sName )
{
this.Name = v_sName
this.BaseName = this.Name;
this.Method = Method;
function Method( v_sStr )
{
alert("Name: " + this.Name + "\n" + "ExtendStr: " + v_sStr);
}
}Son.prototype = new Base();var O = new Son("初始化字串")O.Method("Method附加字串");
O.BaseMethod("BaseMethod附加字串");
//-->
</SCRIPT>
<!--
function Base( v_sBaseName )
{
this.BaseName = v_sBaseName
this.BaseMethod = BaseMethod;
function BaseMethod( v_sStr )
{
alert("BaseName: " + this.BaseName + "\n" + "ExtendStr: " + v_sStr);
}
}function Son( v_sName )
{
this.Name = v_sName
this.BaseName = this.Name;
this.Method = Method;
function Method( v_sStr )
{
alert("Name: " + this.Name + "\n" + "ExtendStr: " + v_sStr);
}
}Son.prototype = new Base();var O = new Son("初始化字串")O.Method("Method附加字串");
O.BaseMethod("BaseMethod附加字串");
//-->
</SCRIPT>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货