function Paid(){
var params = {
url:"/order/all/1/2",
type:"GET",
dataType:"json",
sCallback:function(res){
//console.log(res)
var data = eval(res);
var Str2="";
//var name = new Array(); //同一条订单中的商品种类名称
var num;
var order;
for(var j in data["data"]){
// console.log(data["data"][j])
num = data["data"][j]
order = num['id']
// console.log(Id)
Str2+="<tr class='success'>";
Str2+="<th scope='row'>"+order + "</th>";
Str2+="<td>"+ num['snap_name'] + "</td>";
Str2+="<td>"+ num['create_time'] + "</td>";
Str2+="<td>"+ num['order_no'] + "</td> ";
Str2+="<td id='detail'><a href='detail.html?order_id="+order+"'>查看订单详情</a><td></tr>";
// Str2+="<td id='detail'><a href='javascript:void(0)' onclick='{window.location= \"/detail.html?order=\"+ order;}' >查看订单详情</a><td></tr>"
$(".list").html(Str2);
}
}
};
window.base.getData(params)
}
a href='detail.html?order_id="+order+" ’
单引号(双引号)‘ xxxxxxx=“+aaaaaaa+” ’