通过location.href,进行页面的跳转
<input id="title" type="text" placeholder="请输入标题">
<input id="input" type="button" value="发布">
$("#input").click(function () {
$.post({
url: "/editormd",
data: {
title: $("#title").val(),
},
success: function () {
location.href="/";
}
});