我有以下功能在我的购物篮中添加一篇文章:
$(".addtocart").click(function(){
var product = $("#pid").val();
var qty = $("#qty").val();
if(isNaN(qty) || qty == '') alert("ERROR");
else{
alert("HIHI");
$.ajax({
type:"post",url:"index.php",data:"page=ajax&action=add_product&product=" + product + "&qty=" + qty,success: function(html){
alert("AAA");
/*
$("#maininf").html($("#thumbimg").html());
$("#tinfo").html(html);
var leftPoint = (Fensterweite()-$(".readybuy").width())/2;
$(".readybuy").css("left",leftPoint);
$(".glassbox").fadeIn();
$(".readybuy").fadeIn();
*/
},});
}
第一个警报在IE中每次都在关联.
beforeSend Step也在工作.
但第二个警报永远不会到来.
有谁知道为什么它不适用于IE?
谢谢.