老师关于跳转的问题
跳转到这个页面,样式是这样的,但是再刷新一下就
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | /** * * * * */ $( function () { var shopId = getQueryString( 'shopId' ); var shopInfoUrl = '/o2o/shopadmin/getshopmanagementinfo?shopId=' + shopId; // $.ajax({ // url: shopInfoUrl, // dataType: 'JSON', // type: 'GET', // success: function (data) { // if (data.redirect) { // window.location.href = data.url; // } else { // if (data.shopId != undefined && data.shopId != null) { // shopId = data.shopId; // } // $('#shopInfo') // .attr('href', '/o2o/shopadmin/shopoperation?shopId=' + shopId); // } // // } // }) $.getJSON(shopInfoUrl, function (index,data) { if (data.redirect) { window.location.href = data.url; } else { if (data.shopId != undefined && data.shopId != null ) { shopId = data.shopId; } $( '#shopInfo' ) .attr( 'href' , '/o2o/shopadmin/shopoperation?shopId=' + shopId); } }) }) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | <!DOCTYPE html> < html > < div class = "page" > < head > < meta charset = "utf-8" > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" > < meta name = "viewport" content = "initial-scale=1, maximum-scale=1" > < link rel = "shortcut icon" href = "/o2o/static/favicon.ico" > < meta name = "apple-mobile-web-app-capable" content = "yes" > < meta name = "apple-mobile-web-app-status-bar-style" content = "black" > < link rel = "stylesheet" href = "/o2o/static/css/light7.min.css" > < link rel = "stylesheet" href = "/o2o/static/css/light7-swiper.min.css" > < link rel = "stylesheet" href = "/o2o/static/css/shop/shoplist.css" > < link rel = "stylesheet" href = "/o2o/static/css/shop/shopmanagement.css" /> < script type = 'text/javascript' src = '/o2o/static/js/jquery.min.js' charset = 'utf-8' ></ script > < script type = 'text/javascript' src = '/o2o/static/js/light7.min.js' charset = 'utf-8' ></ script > < script type = 'text/javascript' src = '/o2o/static/js/light7-swiper.min.js' charset = 'utf-8' ></ script > < header class = "bar bar-nav" > < a class = "icon icon-me pull-left open-panel" ></ a > < h1 class = 'title' >商店列表</ h1 > </ header > </ head > < body > <!-- 你的html代码 --> < div class = "content" > < div class = "content-block" > < div class = "row" > < div class = "col-50 mb" > < a id = "shopInfo" href = "/o2o/shopadmin/shopoperation" class = "button button-big button-fill" >商铺信息</ a > </ div > < div class = "col-50 mb" > < a href = "/o2o/shopadmin/productmanagement" class = "button button-big button-fill" >商品管理</ a > </ div > < div class = "col-50 mb" > < a href = "/o2o/shopadmin/productcategorymanagement" class = "button button-big button-fill" >类别管理</ a > </ div > < div class = "col-100 mb" > < a href = "/o2o/shopadmin/shoplist" class = "button button-big button-fill button-danger" >返回</ a > </ div > </ div > </ div > </ div > </ body > < script type = "text/javascript" src = '/o2o/static/js/common/common.js' charset = "UTF-8" ></ script > < script type = "text/javascript" src = "/o2o/static/js/shop/shopmanagement.js" charset = "UTF-8" ></ script > </ div > </ html > |
35
收起
正在回答
1回答
同学你好,
应该是跳转后css没有加载好,也可能和浏览器的缓存有关。
这个可以不用在意哦。
如果我的回答解决了你的问题,请采纳,祝学习愉快.
4. SSM到Spring Boot入门与综合实战
- 参与学习 人
- 提交作业 323 份
- 解答问题 8263 个
本阶段将带你学习主流框架SSM,以及SpringBoot ,打通成为Java工程师的最后一公里!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧