基本信息
源码名称:javascript 调用wcf示例源码下载
源码大小:0.05M
文件格式:.zip
开发语言:C#
更新时间:2014-06-07
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
<script src="js/jquery-1.4.1.js" type="text/javascript"></script>
  <script type="text/javascript">
  	function ReturnAjax() {

  		$.ajax({
  			type: "GET",
  			url: "ProductService/all",
  			contentType: "application/json;charset=utf-8",
  			dataType: "json",
  			cache: false,
  			success: function (data) {
  				$.each(data, function (i) { $("#list").append("<li>编号:"   data[i].Id   "&nbsp; 部门:"   data[i].Department   "</li>") })
 }
  		});
  	
  	}
    </script>
</head>
<body>
   <form id="form1" runat="server">
    <input id="Button1" type="button" onclick="ReturnAjax();" value="测试" />
   <ul id="list"></ul>
    </form>
</body>
</html>