首页 > 代码库 > 新项目CRM(1)

新项目CRM(1)

<title>CRM登陆</title>
<script type="text/javascript">
if (window.parent.window != window) {
window.top.location.href = "http://www.mamicode.com/Home/CheckLogin";
}
</script>
<script src="http://www.mamicode.com/~/Scripts/jquery-1.7.1.min.js"></script>
<script src="http://www.mamicode.com/~/Scripts/jquery.validate.min.js"></script>
<script src="http://www.mamicode.com/~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
<script type="text/javascript">
function changeCheckCode() {
$("#img").attr("src", $("#img").attr("src") + 1);
}
function afterLogin(data) {
var serverData = http://www.mamicode.com/data.split(‘:‘);
if (serverData[0] == "ok") {
window.location.href = "http://www.mamicode.com/Home/Index";
} else {
$("#errorMsg").css("display", "block");
$("#errorMsg").text(serverData[1]);
changeCheckCode();
}
}
</script>

注:jquery-1.7.1.min.js,jquery.unobtrusive-ajax.min.js 这两个js很重要,不能错。

新项目CRM(1)