<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post//</link>
<title><![CDATA[JS也玩OO继承]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Wed, 15 Aug 2007 11:07:43 +0000</pubDate> 
<guid>https://blog.liuts.com/post//</guid> 
<description>
<![CDATA[ 
	jvascript实现的OO方法：<br/><textarea name="code" class="javascript" rows="15" cols="100">
&lt;SCRIPT language=JavaScript&gt;
&lt;!--
function Base( v_sBaseName )
&#123;
&nbsp;&nbsp;this.BaseName = v_sBaseName
&nbsp;&nbsp;this.BaseMethod = BaseMethod;
&nbsp;&nbsp;function BaseMethod( v_sStr )
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;BaseName: &quot; + this.BaseName + &quot;&#92;n&quot; + &quot;ExtendStr: &quot; + v_sStr);
&nbsp;&nbsp;&#125;
&#125;
function Son( v_sName )
&#123;
&nbsp;&nbsp;this.Name = v_sName
&nbsp;&nbsp;this.BaseName = this.Name;
&nbsp;&nbsp;this.Method = Method;
&nbsp;&nbsp;function Method( v_sStr )
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;Name: &quot; + this.Name + &quot;&#92;n&quot; + &quot;ExtendStr: &quot; + v_sStr);
&nbsp;&nbsp;&#125;
&#125;
Son.prototype = new Base();
var O = new Son(&quot;初始化字串&quot;)
O.Method(&quot;Method附加字串&quot;);
O.BaseMethod(&quot;BaseMethod附加字串&quot;);
//--&gt;
&lt;/SCRIPT&gt;
</textarea><br/>Tags - <a href="https://blog.liuts.com/tags/oo/" rel="tag">oo</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post//#blogcomment</link>
<title><![CDATA[[评论] JS也玩OO继承]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.liuts.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>