首页 > 代码库 > 前端分页(输入页号)

前端分页(输入页号)

 $(‘#submitgo‘).click(function(){
        if($(‘#fillNum‘).val()!=‘‘){

            var u = location.href.toString();

            if(u.indexOf(‘page‘) >=0){
                var url=replaceParamVal(‘page‘,$(‘#fillNum‘).val());
                location.href=http://www.mamicode.com/url;
            }else{

                location.href= http://www.mamicode.com/u+‘&page=‘+$(‘#fillNum‘).val();
            }

        }
    })