将关键字传到后台,然后连接数据库,select * from table where name like '%关键字%';最后将返回结果再传到前台展现。其中还有可能用到limit m,n或排序
select * from ar where add like '%公司%';