专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »Javascript教程 » javascript函数:javascript自定义函数 »正文

javascript函数:javascript自定义函数

来源: 发布时间:星期四, 2009年1月15日 浏览:2次 评论:0
="t18"><script type="text/javascript">
///////////////////////////////////////////////////////////////

wc = function
{
this.version = "1.0";
}

wc.prototype.msg = function(e)
{
alert(this.version);
}

var d = wc;
d.version = "2.5";
d.msg;

///////////////////////////////////////////////////////////////

function x
{
this.a = "^_^";
this.b = function(f){
alert(this.a + "\r" + f);
}
}

var c = x;
c.b("___");

///////////////////////////////////////////////////////////////
</script>

相关文章

读者评论

  • 共0条 分0页

发表评论

  • 昵称:
  • 内容: