一个逗号引发的IE7 Jquery Ajax失效
IE7 下
导致 jquery ajax 在IE7下失效的原因,只因高亮处多了个逗号,去掉即可,其他浏览器则不受此影响,GTNNDIE
js code:
function DeliveryDelayMessage() { };
DeliveryDelayMessage.prototype =
{
catalogId:0,
msg: function (dom, msg, color)
{
$(dom).next(".msg").remove();
$(dom).after("<span class=\"msg\">" + msg + "</span>");
$(dom).next(".msg").css({ color: color, "margin-left": "5px", "font-weight": "bold" }).fadeOut("slow").fadeIn("slow").fadeOut(5000);
},
}
DeliveryDelayMessage.prototype =
{
catalogId:0,
msg: function (dom, msg, color)
{
$(dom).next(".msg").remove();
$(dom).after("<span class=\"msg\">" + msg + "</span>");
$(dom).next(".msg").css({ color: color, "margin-left": "5px", "font-weight": "bold" }).fadeOut("slow").fadeIn("slow").fadeOut(5000);
},
}