찾다

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

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

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

  • PHPz

    PHPz2017-04-17 15:00:01

    목록 페이지를 강제로 한 번 요청합니다. 강제 새로 고침. . .

    회신하다
    0
  • PHP中文网

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

    캐시 지우기

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