1

我知道 Firebug Json 在成功后会生成一条消息:函数但找不到如何显示它......所以我尝试添加这个:

if(data.status == 'ERROR'){
                        jQuery("#ajax_message").html("product out of stock.").hide().fadeIn().delay(10000).fadeOut();
                    }else{if(data.status == 'SUCCESS'){
                             jQuery("#ajax_message").html("product added.").hide().fadeIn().delay(10000).fadeOut();
                        } 

但是添加产品后什么都没有发现。

任何想法?

4

1 回答 1

0

检查您在 data.status 中获得的响应

检查是否存在冲突。使用 noConflict。.hide 会隐藏 div

希望你解决了:)

于 2013-04-26T09:43:29.483 回答