I am having problem with jquery that the ajax call is not made. Also the click should not get at the top of dom to trigger the hide af the .warning div.
我用火力看到,没有提出POST的要求。
这里是我的 j:
$(document).click(function(e) {
if($( .warning ).hasClass("active"))
$( .warning ).hide();
});
$( .ero ).click(function(e) {
e.stopPropagation();
e.preventDefault();
$.ajax({
type: POST ,
url: /stem_op/3 ,
data: {id: idv},
success:function(msg){
$( .warning ).fadeIn(500).css({
display: block ,
position: absolute ,
left: position.left + 50,
top: position.top - 25
}).append(msg).addClass("active")}
});
});