Helllo。我尝试使用最简单的jQuery从Wikipedia API获取数据,但到目前为止,我只是到了下面这一点。我怎样才能做到这一点?谢谢!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$.getJSON('https://en.wikipedia.org/w/api.php?action=query&titles=Conchita_Wurst&prop=revisions&rvprop=content&format=json', function(data)
{
$('#demo').text(data.query.normalized[0].to);
});
});
</script>
</head>
<body>
<p id="demo"></p>
</body>
</html>
答案 0 :(得分:1)
您应该将@Test ()
public void testingMethod3() {
Assert.assertEquals(0, calc.quotient(5,0));
}
添加到您的网址:
&callback=?