代码部分:
function Button1JSClick($sender, $params)
{
?>
//~~~~~~~~~~这个地方是原始的JS部分~~~~~~~~~~~~~~~~~
<?php
//Dump the call using Ajax to the Button1Click event
echo $this->Button1->ajaxCall("Button1Click",array(),array("Label1"));
?>
//Return false to prevent the button submit the form
return(false);
<?php
}