search

Home  >  Q&A  >  body text

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');

返回页面后不更新数据。(删掉的数据还显示)
黄舟黄舟2812 days ago864

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-17 15:00:01

    Force to request the list page once. Force refresh. . .

    reply
    0
  • PHP中文网

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

    Clear cache

    reply
    0
  • Cancelreply