first I"m sorry, I"m a vegetable chicken.
I don"t know if what I described is correct, as the title says:
when I get the content of list.json, such as: how to write this link address and how to write another page to display other content in addition to title, and content, when I get the information of title as the content of the current a tag?
(in addition to title, there is also a content, in list.json. So how do I display the contents of this content on another page?)
also, there are ten pieces of information in list.json. I only want them to display five. How do I write them?
ask all kinds of free gods to give advice
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
$(document).ready(function() {
$.ajax({
type: "GET",
url: "list.json",
dataType: "json",
success: function(data) {
$.each(data, function(i, item) {
var content ="<a href="">" + item.title + "</a>" + "</br></br>";
$("-sharpresult").append(content);
})
}
})
});
</script>
</head>
<body>
<div id="result"></div>
</body>
</html>