初始化时添加click方法 $(function () { $("#btnback").click(function () { window.location.href = "${ctx}/ship/shipInfoAdd"; });})