Prototype.emptyFunction

書式

Prototype.emptyFunction

説明

prototype.jsでは空の関数としてPrototype.emptyFunctionが用意されています。

サンプルコード [実行]

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<link rel="stylesheet" href="main.css" type="text/css" media="all">
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript"><!--
window.onload = function() {
emptyFunc = Prototype.emptyFunction;
$("result").innerHTML = emptyFunc;
}
// --></script>
</head>
<body>
<h1>空の関数</h1>
<div id="result"></div>
</body>
</html>