Landing page
<meta charset="UTF-8">Login & lt;/title> AddEventListener (" load ", function () {setTimeout (hideURLbar, 0); }, false);
The function hideURLbar () {
Window. ScrollTo (0, 1);
}
/* page load time, add a timer 0 seconds after executing hideURLbar function, page scrolling hideURLbar function to coordinate (0, 1) */
The function the login () {
Var data={
https://bbs.csdn.net/topics/UserName: $(" # userName "). The val (.) replace (/\ s +/g, ""),
Password: $(" # "password," "). The val (.) replace (/\ s +/g, ""),
}
The sendRequest ("/user/login ", data, loginSuccess)
}
The function loginSuccess (data) {
Window. The location. Href="https://bbs.csdn.net/static/index.html"
}
</script>
<body>