<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
* { margin:0; padding:0;}
body { font-size:12px;}
</style>
<!-- 引入jQuery -->
<script src="jquery-1.3.1.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
$(function(){
//$('#send').click(function() {
$.ajax({
type: "GET",
url: "price.json",
dataType: "json",
success : function(data){
console.log(data);
$('#resText').empty();
var html = '';
$.each( data.data , function(i, d) {
var index = i+1;
// inPrice = "{" + comment.config.split(",")[1] + "}";
// memberPrice = "{" + comment.config.split(",")[2] + "}";
// objInPrice = eval("[" + inPrice +"]")[0];
// objMemberPrice = eval("[" + memberPrice +"]")[0];
objConfig = eval("[" + d.config + "]")[0];
expName = unescape(d.name);
//console.log(objConfig);
//html += '<tr class="comment"><td>' + objConfig.in_price + '---' + objConfig.price.a1 + ':</td><td>' + comment['sort_order'] + '</td></tr>';
html += '<tr class="comment"><td>' + index + '</td><td>'+ expName + '</td><td>' + d.kb_identifier + '</td><td>'+ objConfig.in_price + '元/單</td><td>'+ objConfig.price.a1 + '元/單</td><td>'+ objConfig.price.a3 + '元/單</td><td>'+ objConfig.price.a4 + '元/單</td></tr>';
})
$('#resText').html(html);
}
});
//});
});
//]]>
</script>
</head>
<body style="width:800px; margin:0 auto;">
<table width="100%" border="0">
<thead>
<tr>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
</tr>
</thead>
<tbody id="resText">
</tbody>
</table>
<div class="comment">已有評論:</div>
<div >
</div>
</body>
</html>