1.去掉值得全部空格 $.trim($("#title").val()); 转载于:https://www.cnblogs.com/BLE77/p/5169686.html