我有一些json,我想将文件的内容加载到其中。见下文。
<script>
var data2 = [{
image: 'images2/Blake_Stothard.jpg',
thumb: 'images2/Blake_StothardT.jpg',
}, {
image: 'images2/Blake_painting.jpg',
thumb: 'images2/Blake_paintingT.jpg',
}, {
image: 'images2/Stothard_engraving.jpg',
thumb: 'images2/Stothard_engravingT.jpg',
description: 'blah blah<i>blah blah blah</i>',
}, {
image: 'images2/Stothard_painting.jpg',
thumb: 'images2/Stothard_paintingT.jpg',
description: I WANT TO LOAD THE CONTENTS OF A FILE HERE, IN PARTICULAR AN HTML FILE. description expects a string like so: '<p>blah blah blah<p>'
}, ];
</script>