Jquery 滚动到另一页的部分
我的问题很简单,但由于某种原因,我无法解决它 我想导航到特定部分的特定页面。这是代码Jquery 滚动到另一页的部分,jquery,html,twitter-bootstrap,Jquery,Html,Twitter Bootstrap,我的问题很简单,但由于某种原因,我无法解决它 我想导航到特定部分的特定页面。这是代码 $.ajax({ type: 'get', url: 'profile.php', cache: false, dataType: 'json', data: '&uid=' +uid, success: function(data) { // console.log =data; if(data.fi
$.ajax({
type: 'get',
url: 'profile.php',
cache: false,
dataType: 'json',
data: '&uid=' +uid,
success: function(data) {
// console.log =data;
if(data.first != 'yes'){
alert('Your profile is incomplete. Redirecting to update the profile.');
location.href = "./add_resume.php";
}else if(data.two != 'yes'){
alert('Your profile is incomplete. Redirecting to update the profile.');
location.href = "./edit_resume.php#education";
}else if(data.third != 'yes'){
alert('Your profile is incomplete. Redirecting to update the profile.');
location.href = "./edit_resume.php#experience";
}else if(data.four != 'yes'){
alert('Your profile is incomplete. Redirecting to update the profile.');
location.href = "./edit_resume.php#skillset";
}else if(data.five != 'yes'){
}else if(data.six != 'yes'){
alert('Your profile is incomplete. Redirecting to update the profile.');
location.href = "./edit_resume.php#personal";
}else if(data.seven != 'yes'){
alert('Your profile is incomplete. Redirecting to update the profile.');
location.href = "./edit_resume.php#contact";
}else{
alert('Need to create a new profile.');
}
---------这里有更多的代码-----------
它正在重定向到特定页面,但不在特定部分
请告诉我现在该怎么办
编辑简历文件中的一些代码。
<section id="experience" class="block">
<div class="container">
<div class="row">
<div class="col-sm-12 wow fadeInRight animated">
edit_resume.php页面应该有id不同的div(联系人、个人、技能集等),对吗?页面上要重定向的元素是否有与上述代码匹配的id?例如,您是否有一个ID为contact(ID=“contact”
)的元素来匹配/edit_resume.php#contact
?实际上,他们在edit_resume.php中有ID。您是否有任何js scroll插件或javascriptscrollToTop
类型的代码添加到您的网页中?