js代码
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
</head>
<script src="../js/jquery.js"></script>
<script>
function f(t) {
$.ajax({
"url":"../Do_limit",
"type":"post",
"dataType":"json",
"data":"t="+t,
"success":function (data) {
$('table').empty();
for(var i=0;i<data.length;i++){
var note="<tr>";
note+="<th>"+data[i].bid+"</th>";
note+="<th>"+data[i].bname+"</th>";
note+="<th>"+data[i].bprice+"</th>";
note+="<th>"+data[i].bcolor+"</th>";
note+="<th>"+data[i].btime+"</th>";
note+="<th><a href='../Do_delete?id="+data[i].bid+"'>删除</a></th>";
note+="</tr>";
$("table").append(note);
}
},
"error":function () {
alert("报错")
}
})
}
function a(){
var color=$("#color").val();
$.ajax({
"url":"../Do_getLike",
"type":"post",
"dataType":"json",
"data":"color="+color,
"success":function (data) {
$('table').empty();
for(