jQuery数据更新“超出了最大调用堆栈大小”

时间:2018-12-22 15:38:10

标签: jquery callstack exceed

我的代码始终出现此错误,但仍然找不到我做错的部分。我几乎尝试了所有操作,但仍然出现错误:

  

未捕获的RangeError:超出了最大调用堆栈大小
      在HTMLInputElement.toString()
      在x(VM1355 jquery.min.js:2)

我刚刚开始学习jQuery,所以希望获得一些帮助。

new ArraList<>()
<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Düzenle</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <label>İsim</label>
          <input type="text" id="isim2" class="form-control">
          <label>Aciklama</label>
          <input type="text" id="aciklama2" class="form-control">
          <label>Haksayısı</label>
          <input type="text" id="haksayisi" class="form-control">
        </div>
        <input type="hidden" id="id" class="form-control">
      </div>
      <div class="modal-footer">
        <a href="" id="save" class="btn btn-primary pull-rigt">Kaydet</a>
        <button type="button" class="btn btn-default" data-dismiss="modal">Kapat</button>
      </div>
    </div>
  </div>
</div>
if (isset($_POST['haksayisi']))
{
  $isim = $_POST['isim'];
  $haksayisi = $_POST['haksayisi'];
  $aciklama = $_POST['aciklama'];
  $id = $_POST['id'];

  $sonuc = mysqli_query($link, "UPDATE sorgu SET isim = '$isim', haksayisi = '$haksayisi', aciklama = '$aciklama' WHERE id = '$id'");
  if ($sonuc)
  {
    return 'data updated'; 
  }
}

0 个答案:

没有答案