这是别人写好的代码,bll层的IWebservice代码
namespace BLL.IWebService { public interface IBPartsWebService : IBaseService { System.Data.DataSet DQueryDataSet(string orderField, int pageSize, int currentPage, int orderType, string[][] fields, out int records, SessionModel sessionModel = null); } }
我现在需要用ajax调用webservice,代码怎么写?
$.ajax({ contentType:"application/json", url: "/BPartsWebService.asmx/DQueryDataSet", //data: "{gradeid:'" + gradeid + "' }", //data: "{}", //dataType: "xml", data: { },
换成类
为啥需要跨域啊?还有方法的参数我的怎么传啊?
System.Data.DataSet DQueryDataSet(string orderField, int pageSize, int currentPage, int orderType, string[][] fields, out int records, SessionModel sessionModel = null);