我正按照代码进行 ajax 请求。 但是当它收到回复时, 如何配置 < b> value b> 属性 。
$.ajax({
url:url,
cache:false,
type: POST ,
dataType:"json",
data: json ,
beforeSend:function(x){
$( #main ).html("<progress id= bar value= 0 max= 100 ></progress>").show();
},
success:function(json){
$( #bar ).val(100);
parseResponse(json);
},
complete:function(){
$( #bar ).hide();
}
});