我需要一些关于 ajax 请求和在 jQuery 进度条中使用数据的帮助。
这是 index.html
<div id="progressbar"></div>
这是test.json
{ "progressbar":12 }
这是JavaScript代码
$(function() {
$.ajax({ dataType:"json",
url: test.json,
success: <!-- dont know what to do here -->,
});
$( "#progressbar" ).progressbar({
value: <!-- Dont know what to do here -->
});
});
对不起,我不习惯 jQuery 和 json。我会很高兴有一个很好的例子!!!
非常感谢你!