发布网友
共2个回答
热心网友
jQuery是网页端执行的,数据库查询是服务器端的,jQuery没法访问数据库
使用AJAX, jQuery给服务器端发送信息,让服务器端的Servlet访问数据库查询,然后返回数据给jQuery
热心网友
ajax,不是node,只能调接口