Prototype.js使用记录,随时添加
domready事件,和post方式的ajax
1 document.observe("dom:loaded",function(){2 new Ajax.Request('Ajax.asp',{3 method:'post',4 parameters:"action=allusercount",5 onSuccess:function(data){6 alert(data.responseText);7 }8 });9 });TAG: