在ie8 中 jQuery.ajax执行完崩溃 其他浏览器则没问题
jQuery.ajax({type:"POST",asyc:false,url:"<%=request.getContextPath()%>/minfosDetail.d...
jQuery.ajax({
type : "POST",
asyc : false,
url : "<%=request.getContextPath()%>/minfosDetail.do",
data : "id="+id,
success : function(msg) {
if(msg != "0") {
var obj = eval("("+msg+")");
jQuery("#orgId").text(obj.orgId);
jQuery("#name").text(obj.name);
jQuery("#settleObj").text(obj.settleObj=="1"?"账户":"银行卡");
jQuery("#accName").text(obj.accName);
jQuery("#cardType").text(obj.cardType=="A"?"个人":"企业");
jQuery("#path").html("<a href='<%=request.getContextPath()%>/downFile.do?fileName="+obj.fileName+"'>下载账户资料</a>");
jQuery("#registerTime").text(obj.registerTime);
jQuery("#cardNo").text(obj.cardNo);
jQuery("#bankUser").text(obj.bankUser);
jQuery("#bankName").text(obj.bankName);
jQuery("#subBank").text(obj.subBank);
jQuery("#bankNo").text(obj.bankNo);
jQuery("#contactor").text(obj.contactor);
jQuery("#telephone").text(obj.telephone);
jQuery("#level").text(obj.level=="1"?"一级账户":"二级账户");
jQuery("#parentNo").text(obj.parentNo);
jQuery("#feeType").text(obj.feeType=="1"?"每笔收款":"按交易量比例");
jQuery("#fee").text(obj.fee);
jQuery("#state").text(obj.state=="1"?"开通":"关闭");
document.getElementById("mid").value=obj.id;
}
}
}); 展开
type : "POST",
asyc : false,
url : "<%=request.getContextPath()%>/minfosDetail.do",
data : "id="+id,
success : function(msg) {
if(msg != "0") {
var obj = eval("("+msg+")");
jQuery("#orgId").text(obj.orgId);
jQuery("#name").text(obj.name);
jQuery("#settleObj").text(obj.settleObj=="1"?"账户":"银行卡");
jQuery("#accName").text(obj.accName);
jQuery("#cardType").text(obj.cardType=="A"?"个人":"企业");
jQuery("#path").html("<a href='<%=request.getContextPath()%>/downFile.do?fileName="+obj.fileName+"'>下载账户资料</a>");
jQuery("#registerTime").text(obj.registerTime);
jQuery("#cardNo").text(obj.cardNo);
jQuery("#bankUser").text(obj.bankUser);
jQuery("#bankName").text(obj.bankName);
jQuery("#subBank").text(obj.subBank);
jQuery("#bankNo").text(obj.bankNo);
jQuery("#contactor").text(obj.contactor);
jQuery("#telephone").text(obj.telephone);
jQuery("#level").text(obj.level=="1"?"一级账户":"二级账户");
jQuery("#parentNo").text(obj.parentNo);
jQuery("#feeType").text(obj.feeType=="1"?"每笔收款":"按交易量比例");
jQuery("#fee").text(obj.fee);
jQuery("#state").text(obj.state=="1"?"开通":"关闭");
document.getElementById("mid").value=obj.id;
}
}
}); 展开
2015-03-04
展开全部
<!DOCTYPE HTML>
<html>
<head>
<title>yugi</title>
<meta charset=UTF-8 />
<style type="text/css">
</style>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript">
var path = "<%=request.getContextPath()%>/";
jQuery (function ($)
{
$.ajax (
{
url : path + "minfosDetail.do",
data : "id=" + id,
type : "POST",
async : true, // 异步就不会卡了,默认
success : function (msg)
{
if (msg != 0)
{
var obj = eval ("(" + msg + ")");
var tmp = "orgId,name,accName,registerTime,cardNo,bankUser,bankName,subBank,bankNo,contactor,telephone,parentNo,fee".split(",");
for ( var i = 0, len = tmp.length; i < len; i++)
{
var p = tmp[i];
$ ("#" + p).text (obj[p]);
}
$ ("#settleObj").text (obj.settleObj == 1 ? "账户" : "银行卡");
$ ("#cardType").text (obj.cardType == "A" ? "个人" : "企业");
$ ("#path").html ("<a href='" + path + "downFile.do?fileName=" + obj.fileName + "'>下载账户资料</a>");
$ ("#level").text (obj.level == 1 ? "一级账户" : "二级账户");
$ ("#feeType").text (obj.feeType == 1 ? "每笔收款" : "按交易量比例");
$ ("#state").text (obj.state == 1 ? "开通" : "关闭");
$ ("#mid").val (obj.id);
}
}
});
});
</script>
</head>
<body>
<body>
</body>
</html>
追问
不是异步的问题!
追答
那你拉倒
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询