网上的方法:

$("#create_modal").on("hidden.bs.modal", function() {
    $(this).removeData("bs.modal");
});
实测:
$('#Modal').on('hidden.bs.modal', function () {
$('#Id').html('');
});
这种方法只适合一个输入框的情况。如果是form表单可以采用jq的重置表单方法。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2022-02-05
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2021-11-30
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案