摘要:
写一个最为简单的JQuery 调用 WCF 示例:1.新建一个WCF应用程序2.新建一个html文件3.引入jQuery建立好后如下图示:(我将所有WCF服务的接口写在一个ILib中)写代码1)ICarService如下:using System.Collections.Generic;using System.Runtime.Serialization;using System.ServiceModel;using System.ServiceModel.Web;namespace aco.service{ // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口 阅读全文