お世話になります。
こちらのサイトにある一部の抜粋となります。
html
1<script type="text/javascript"> 2 function getProducts() { 3 $.getJSON("api/products", 4 function (data) { 5 $('#products').empty(); // Clear the table body. 6 7 // Loop through the list of products. 8 $.each(data, function (key, val) { 9 // Add a table row for the product. 10 var row = '<td>' + val.Name + '</td><td>' + val.Price + '</td>'; 11 $('<tr/>', { html: row }) // Append the name. 12 .appendTo($('#products')); 13 }); 14 }); 15 } 16 17 $(document).ready(getProducts); 18</script>
このjavascriptのコードの中に{html:row}という記載があるのですが
これは何となくrow(行)の部分の何かを示していると思っているのですが
検索で「Javascript row」「Javascript html:row」で調べても正確な意味が把握できておりません。
こちらが示している意味を教えて頂ければ幸いです。
よろしくお願いします。
回答2件
あなたの回答
tips
プレビュー