嗨,我需要在分区中生成图像标签,它接收对象的次数。但它不起作用。任何人都可以请帮助我。任何帮助都深表感谢。
<div id="validation" class="subcontent" >
<script type="text/javascript">
Parse.initialize("@@@@", "@@@@");
//var description1 = document.getElementById("news").value;
var uid1 = document.getElementById("uid").value;
var interior= Parse.Object.extend("Interior");
var query = new Parse.Query(interior);
query.equalTo("user_id", uid1);
query.find({
success: function(results) {
alert("Successfully retrieved " + results.length + " scores.");
for (var i = 0; i < results.length; i++) {
// This does not require a network access.
var Imageurl = results[i].get("image_url");
var Imageur2 = results[i].get("image_title");
var elemen = Imageurl;
var elemen1 = Imageur2;
var content = "<img src='+elemen+' />";
// Insert using this:
document.getElementById('validation').innerHTML = content;
}
},
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
});
</script>