text: function comment() {
      let content = $('#comment-content-container').val();
      let re = /^[\s\n\r]+$/;
      if(re.test(content) || content===""){
          alert('不要不输入内容鸭（*＾-＾*）');
          return;
      }
      console.log(content);
      $.ajax('/api/comments', {
          type: 'POST',
          dataType: 'json',
          data: {'content': content},
          success: function (response) {
              $('#comment-content-container').val("");
              setTimeout(comment_list, 1000);
          },
          error: function (response) {
  
          }
      })
  }
  
  function comment_list() {
      $.ajax('/api/comments', {
          type: 'GET',
          success: function (response) {
              $('#comments-container').html(response);
          },
          error: function (response) {
          }
      })
  }
  
  $(document).ready(function () {
      comment_list()
  });
  
  