日期:2014-05-17 浏览次数:20776 次
$.post("book/book_findById.action",{"book.bookId":id},function(data){
if(data=="true"){
obj.html("编号重复");
obj.css("color","red");
flag=1;
}else{
obj.html("");
obj.attr("class","right");
flag=0;
}
},"text");
public void findById()throws Exception{
boolean b=false;
try {
System.out.println("bookId="+book.getBookId());
b = bo.findById(book.getBookId());
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}