>  Q&A  >  본문

node.js - express执行mysql删除语句后,刷新页面不更新

mysql.query('delete from cm_company where com_id = ' + com_id,function(err,rows, fields){
if(err) throw err;
res.location('/comManage');

返回页面后不更新数据。(删掉的数据还显示)
黄舟黄舟2743일 전824

모든 응답(2)나는 대답할 것이다

  • PHPz

    PHPz2017-04-17 15:00:01

    强制请求一次列表页。强制刷新。。。

    회신하다
    0
  • PHP中文网

    PHP中文网2017-04-17 15:00:01

    清理一下缓存

    회신하다
    0
  • 취소회신하다