上面代码是javascript脚本.
-------------下面是Total.aspx的部分html代码.
---------------------上面是添加一个WebServic,名字叫Total.asmx,完了之后添加如下代码放到 Total.asmx 代码里去.