I have an array, and each item within the array contains a title and a description, I would also like to add an image to each item as well. How can I do this?
var myArray = [
{title: "my title", description: "my description."},
{title: "my title", description: "my description."},
{title: "my title", description: "my description."},
];
I've already tried {title: "my title", description: "my description.", image: src="my file path here"}, but that didn't work for me.
Aucun commentaire:
Enregistrer un commentaire