滚动到另一页的部分

时间:2017-04-05 19:36:42

标签: 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.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">

0 个答案:

没有答案