こんにちは誰かがjsonをjqueryにロードするのを手伝ってくれますか私はそれをこの構造で動作させることができるだけのようです
{"name": "Zemi All"、 "smpx": "2564"、 "scuser": "zajihi"、 "scfollowers": "female"}
これは私が持っているフォーマットページです-http://newmusicproducer.com/filterable/indexj.php
以下の私のコードは次のとおりです。
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$("#driver").click(function(event){
$.getJSON('test.json', function(data) {
$.each(data.results,function(){
$('#stage').html('<p> Name: ' + data.name + '</p>');
$('#stage').append('<p> Smpx : ' + data.smpx+ '</p>');
$('#stage').append('<p> Scuser: ' + data.scuser+ '</p>');
$('#stage').append('<p> Scfollowers: ' + data.scfollowers+ '</p>');
});
});
});
});
</script>
</head>
<body>
<p>Click on the button to load results:</p>
<div id="stage" style="background-color:blue;">
Display area.
</div>
<input type="button" id="driver" value="Load Data" />
</body>