Only Web services with a [ScriptService] attribute on the class definition can be called from script. 的错误. ------------- 这个错误按字面理解,应该是webservice的.cs文件的类名前必须加上: [System.Web.Script.Services.ScriptService] public class 你的WebService类名 : System.Web.Services.WebService { //...