prototype.js简单应用报错(ajax未定义)
<script type="text/javascript">
function readHTML(){
var myAjax = new Ajax.Request(
"TextFile.txt", //同一目录
{
method:'get',
onComplete:showText
}
);
}
function showText(s){
alert(s.responseText);
}
</script>
</head>
<body>
<input type="button" value="读取" onclick="readHTML();"/>
报ajax未定义 错在哪里? 高手指点