加了这句course_org = CourseOrg.objects.get(id=int(org_id))不能跳转
来源:10-12 课程机构详情页

慕粉3543411
2020-04-24
``加这句的时候能跳转,加了后就不能了,请问老师是什么问题呢?
{
$(document).ready(function() {
$('#jsStayBtn').on('click', function () {
$.ajax({
cache: false,
type: "POST",
url: "/org/add_ask/",
data: $('#jsStayForm').serialize(),
async: true,
success: function (data) {
if (data.status == 'success') {
$('#jsStayForm')[0].reset();
$('#jsCompanyTips').html("");
alert("提交成功")
} else if (data.status == 'fail') {
$('#jsCompanyTips').html(data.msg)
}
},
});
});
});
})
</script>
</body>
</html>
写回答
2回答
-
bobby
2020-05-06
我大概看了html没有问题 你的截图中点击哪个没有效果? 你截图 标注一下我看看
052020-05-12 -
bobby
2020-04-25
不能跳转 应该有报错信息把?
052020-05-05
相似问题