こんにちは、divにテーブルを追加しようとしていますが、firebugで次のエラーが発生します:SyntaxError:unterminated stringliteral [Break On This Error] $('#news-tweets')。append( '
これは実行中のコードです:
for (var i in array) {
var location = array[i].location;
var user = array[i].user;
var date = array[i].date;
var profile_img = array[i].profile_img;
var text = array[i].text;
var url = array[i].url;
show_tweets(user,date,profile_img,text,url);
geocode(user, date, profile_img, text, url, location);
}
function show_tweets(user, date, profile_img, text, contentString){
$('#news-tweets').append('<table width="320" border="1">
<tr>
<td colspan="2" rowspan="1">"+user+"</td>
</tr>
<tr>
<td width="118">"+profile_img+"</td>
<td width="186">"+text+"</td>
</tr>
</table>');
}
直前にエラーが発生したことを示しています