staticexample
来源:互联网 发布:送货统计软件 编辑:程序博客网 时间:2024/06/05 08:13
<html>
<head>
<title>Example</title>
</head>
<body>
<script type="text/javascript">
function sayHi() {
alert("hi");
}
sayHi.alternate = function() {
alert("hola");
};
sayHi(); //outputs "hi"
sayHi.alternate(); //outputs "hola"
</script>
</body>
</html>