<script language="javascript" type="text/javascript">
$(function () {
/* HTML Menu Example Code */
$('#GlobalNav')
.load('http://navservice.intranet.hpr/api/gethtml', function(){
initmenu();
});
});
</script>
我如何将它转换成这样的东西?除了数据类型是来自 web 服务的纯 html 吗?
$.ajax({
url: "Common.asmx/InsertClient",
type: "POST",
dataType: "json",
data: "{BizName:'" + BizName + "'}",
contentType: "application/json; charset=utf-8",
success: function(msg) {
$('#status').html('Id: '+msg['d']['Id']);
}
});