CINXE.COM
宝马X5(进口)储物空间-宝马X5(进口) 2019款 xDrive40i 尊享型 M运动套装后备厢详解「图」-太平洋汽车
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>宝马X5(进口)储物空间-宝马X5(进口) 2019款 xDrive40i 尊享型 M运动套装后备厢详解「图」-太平洋汽车</title> <meta name="keywords" content="宝马X5(进口)储物空间,宝马X5(进口) 2019款储物空间" /> <meta name="description" content="带你全面了解宝马X5(进口)外观、内饰、空间、发动机动力性能等信息,更多信息请登录太平洋汽车"/> <meta content="always" name="referrer"> <meta name="Author" content="liaoxiaobin_gz none_gz"> <meta name="mobile-agent" content="format=html5;url=//m.pcauto.com.cn/auto/pic/md/1-1-m86078.html"> <meta http-equiv="Cache-Control" content="no-transform" /> <meta name="applicable-device" content="pc"> <link href="//js.3conline.com/pcautonew1/pc/2017/price/css/carshowgloble.css" rel="stylesheet"> <link rel="alternate" media="only screen and(max-width: 640px)" href="//m.pcauto.com.cn/auto/pic/md/1-1-m86078.html" /> <!--[if IE 6]><script>document.execCommand("BackgroundImageCache", false, true)</script><![endif]--> <script src="//www.pcauto.com.cn/3g/wap2013/intf/1305/intf1727.js" charset="utf-8" class=" defer"></script> <script> //填上对应版本的链接 , 如无某个版本的链接 则留空 deviceJump.init({ "wap":"//m.pcauto.com.cn/auto/pic/md/1-1-m86078.html", "wap_3g":"//m.pcauto.com.cn/auto/pic/md/1-1-m86078.html", "ipad":"", "main":"" }); </script> </head> <body class="page-final"> <!-- 广告头部 --> <script>if(!window._addIvyID) document.write("<scr"+"ipt src='//www.pconline.com.cn/_hux_/auto/default/index.js'><\/scr"+"ipt>");</script> <!-- 计数器 --> <span class="spanclass"> <script> document.write("<img style=display:none src=//count.pcauto.com.cn/count.php?channel=8445&screen="+screen.width+"*"+screen.height+"&__uuid=169:1&refer="+encodeURIComponent(document.referrer)+"&anticache="+new Date().getTime()+"&url="+encodeURIComponent(location.href)+" >"); </script> </span> <!-- 预加载用到的js --> <script type="text/javascript"> // 工具函数 var unit = { getId: function(id) { return (typeof(id) == 'object') ? id : document.getElementById(id); }, getClass: function(className, parent) { var elem = [], node = parent != undefined && parent.nodeType == 1 ? parent.getElementsByTagName('*') : document.getElementsByTagName('*'), p = new RegExp("(^|\\s)" + className + "(\\s|$)"); for (var n = 0, i = node.length; n < i; n++) { if (p.test(node[n].className)) { elem.push(node[n]); } } return elem; }, addEvent: function(node, type, fn) { if (node.addEventListener) { node.addEventListener(type, fn, false); } else { node.attachEvent('on' + type, function() { fn.apply(node, arguments); }); } }, setCookie: function(name, value, time) { //time=1024 * 24 * 3600 * 1000 //天、小时、秒、毫秒 document.cookie = name + "=" + encodeURIComponent(value) + "; path=/; domain=" + window.location.hostname.replace(/.+((\.\w+)\.com(\.cn)?)/, "$1") + "; expires=" + new Date(+new Date() + time).toGMTString(); }, getCookie: function(name) { return decodeURIComponent(document.cookie.replace(new RegExp(".*(?:^|; )" + name + "=([^;]*).*|.*"), "$1")); } }; var docCltWidth = document.documentElement.clientWidth, CLIENTWIDTH = 1400, // 1400 //__countId__ = 1411, // 7653, 9436 zsurl_ori = '', //修改20170710:增加一个变量用于记录jpg图片 zsurl = '', g_picData, picurl01='https://img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c41/128872120_1547802300236_1024.jpg', picurl02='https://img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c41/128872120_1547802300236_800x600.jpg', sSzie = [ '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c41/128872121_1547802301669_800x600.jpg' , '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c41/128872476_1547802302750_800x600.jpg' , '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c40/128872315_1547802296560_800x600.jpg' , '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c40/128872324_1547802297043_800x600.jpg' , '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c40/128872471_1547802299117_800x600.jpg' ],//800图 bSzie = [ '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c41/128872121_1547802301669_1024.jpg' , '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c41/128872476_1547802302750_1024.jpg' , '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c40/128872315_1547802296560_1024.jpg' , '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c40/128872324_1547802297043_1024.jpg' , '//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c40/128872471_1547802299117_1024.jpg' ],//1024图 canWebp = (function() { var ua = navigator.userAgent.toLowerCase(), isIe, canWebpCookie; (ua.indexOf('msie') != -1 || ua.indexOf('rv:11') != -1 || ua.indexOf('edge') != -1) ? (isIe = true) : (isIe = false); if(isIe) { return false; }else{ canWebpCookie = unit.getCookie("canWebp"); if(canWebpCookie == '1') { return true; }else if(canWebpCookie == '0') { return false; }else{ var d = document, supportWebp; try { var ele = d.createElement('object'); ele.type = 'image/webp'; ele.innerHTML = '!'; d.body.appendChild(ele); supportWebp = !ele.offsetWidth; d.body.removeChild(ele); }catch (err) { supportWebp = false; } supportWebp ? unit.setCookie('canWebp', '1', 9e10) : unit.setCookie('canWebp', '0', 9e10); return supportWebp; } } })(); if (docCltWidth >= CLIENTWIDTH) { zsurl_ori = zsurl = picurl01; //修改20170710:增加一个变量用于记录jpg图片 g_picData = bSzie; document.getElementsByTagName('body')[0].className = 'page-final bigWidth'; } else { zsurl_ori = zsurl = picurl02; //修改20170710:增加一个变量用于记录jpg图片 g_picData = sSzie; document.getElementsByTagName('body')[0].className = 'page-final'; } if(canWebp) { zsurl = zsurl.replace(/jpg$/i, "webp"); for (var i = 0, l = g_picData.length; i < l; i++) { g_picData[i] = g_picData[i].replace(/jpg$/i, "webp"); } } function preLoadImg(c, b) { if (b >= c.length) return; var a = new Image(); a.onload = function() { preLoadImg(c, b + 1); }; a.src = c[b]; } unit.addEvent(window, 'load', function() { preLoadImg(g_picData, 0); }); </script> <script type="text/javascript"> if (canWebp) { for (var i = 0, l = g_picData.length; i < l; i++) { g_picData[i] = g_picData[i].replace(/jpg$/i, "webp"); } } function preLoadImg(c, b) { if (b >= c.length) return; var a = new Image(); a.onload = function() { preLoadImg(c, b + 1); }; a.src = c[b]; } unit.addEvent(window, 'load', function() { preLoadImg(g_picData, 0); }); </script> <div class="doc"> <div class="header" id="J-header"> <div class="topBar" id="j-topBar"> <div class="mark crumbs"> <a href="//www.pcauto.com.cn">太平洋汽车</a><i>></i> <a href="/cars/md.html">车型详解</a><i>></i> <a href="/cars/md/nb20/">宝马</a><i>></i> <a href="/cars/sg169/">宝马X5(进口)</a><i>></i> <a href="/cars/md/64926-1-m86078.html">2019款 xDrive40i 尊享型 M运动套装</a> </div> <div class="subMark subMenu"> <a href="/sg169/" target="_blank">宝马X5(进口)频道</a><i>|</i> <a href="//price.pcauto.com.cn/sg169/price.html" target="_blank">报价</a> <a href="/cars/sg169/" target="_blank">图片</a> <a href="/sg169/config.html" target="_blank">参配</a> <a href="//bbs.pcauto.com.cn/forum-17448.html" target="_blank">论坛</a> <a href="//price.pcauto.com.cn/comment/sg169/" target="_blank">点评</a> <a href="/shangjia/sg169/" target="_blank">经销商</a> </div> </div> <div class="moc"> <div class="topCon" id="j-topCon"> <div class="topCon-r">提示:支持“← →”键翻页</div> <div class="topCon-l"> <div class="inner"> <span class="name fl block mr15"><i class="fz20">宝马X5(进口)</i></span> <div class="type fl block mr25 xialchanges" id="J-othertype"> <i class="fz20">2019款 xDrive40i 尊享型 M运动套装</i> <i class="tips-icon"></i> <div class="subtype"> <a href="/cars/md/37528-1-m41040.html">2015款 xDrive28i</a> <i class="tips-up"></i> </div> </div> <span class="des fl block"> <i class="fz20"> 储物空间(<i class="red">126</i>/131) </i> </span> <a href="/cars/mdlist/m86078.html" class="back block fr ml20"><i class="allin-icon"></i>查看全部</a> <span class="share block fr modShare" id="J-share"> <i class="share-icon"></i>分享 <div class="sharebox"> <i class="tips-icon-up"></i> <div class="artOpenShare"> <div sharetype="tools" id="bdshare_warp"> <div id="bdshare" class="bdsharebuttonbox bds_tools"></div> </div> </div> </div> </span> </div> </div> </div> </div> </div> <div class="wraper moc"> <div class="aside side" id="J-aside"> <div class="menuBox"> <div id="menuBox"> <div id="J_menu" class="fmenu"> <div class="collapsed frist-child " id="f_1"> <span class="tit"><a data-src="64926" href="/cars/md/64926-1-m86078.html"><i class="menu-icon menu-icon-1"></i>概述<i class="tips-icon"></i></a></span> <div class="link"> </div> </div> <div class="collapsed " id="f_2"> <span class="tit"><a data-src="71350" href="/cars/md/71350-1-m86078.html"><i class="menu-icon menu-icon-2"></i>外观<i class="tips-icon"></i></a></span> <div class="link"> <a data-src="99" id="s_99" href="/cars/md/64792-1-m86078.html" ><i class="m">整车外观<em>(7张)</em></i></a> <a data-src="135" id="s_135" href="/cars/md/64821-1-m86078.html" ><i class="m">车辆标识<em>(2张)</em></i></a> <a data-src="109" id="s_109" href="/cars/md/64799-1-m86078.html" ><i class="m">中网<em>(6张)</em></i></a> <a data-src="30" id="s_30" href="/cars/md/64805-1-m86078.html" ><i class="m">车灯<em>(11张)</em></i></a> <a data-src="32" id="s_32" href="/cars/md/64810-1-m86078.html" ><i class="m">驾驶辅助<em>(2张)</em></i></a> <a data-src="100" id="s_100" href="/cars/md/64896-1-m86078.html" ><i class="m">车门<em>(7张)</em></i></a> <a data-src="31" id="s_31" href="/cars/md/64920-1-m86078.html" ><i class="m">车轮<em>(3张)</em></i></a> <a data-src="33" id="s_33" href="/cars/md/64826-1-m86078.html" ><i class="m">后视镜<em>(2张)</em></i></a> <a data-src="8" id="s_8" href="/cars/md/64921-1-m86078.html" ><i class="m">燃油加注口<em>(1张)</em></i></a> <a data-src="34" id="s_34" href="/cars/md/64929-1-m86078.html" ><i class="m">雨刮<em>(2张)</em></i></a> <a data-src="130" id="s_130" href="/cars/md/64832-1-m86078.html" ><i class="m">行李架<em>(1张)</em></i></a> <a data-src="35" id="s_35" href="/cars/md/64833-1-m86078.html" ><i class="m">天线<em>(1张)</em></i></a> <a data-src="36" id="s_36" href="/cars/md/64819-1-m86078.html" ><i class="m">尾翼<em>(1张)</em></i></a> <a data-src="131" id="s_131" href="/cars/md/64822-1-m86078.html" ><i class="m">排气管<em>(1张)</em></i></a> <a data-src="112" id="s_112" href="/cars/md/64812-1-m86078.html" ><i class="m">其他<em>(3张)</em></i></a> </div> </div> <div class="collapsed " id="f_3"> <span class="tit"><a data-src="71351" href="/cars/md/71351-1-m86078.html"><i class="menu-icon menu-icon-3"></i>前排<i class="tips-icon"></i></a></span> <div class="link"> <a data-src="39" id="s_39" href="/cars/md/64836-1-m86078.html" ><i class="m">中控区<em>(31张)</em></i></a> <a data-src="18" id="s_18" href="/cars/md/64837-1-m86078.html" ><i class="m">方向盘<em>(8张)</em></i></a> <a data-src="37" id="s_37" href="/cars/md/64845-1-m86078.html" ><i class="m">仪表盘<em>(5张)</em></i></a> <a data-src="136" id="s_136" href="/cars/md/64871-1-m86078.html" ><i class="m">启动方式<em>(1张)</em></i></a> <a data-src="38" id="s_38" href="/cars/md/64922-1-m86078.html" ><i class="m">钥匙<em>(1张)</em></i></a> <a data-src="111" id="s_111" href="/cars/md/64868-1-m86078.html" ><i class="m">换挡方式<em>(3张)</em></i></a> <a data-src="44" id="s_44" href="/cars/md/64883-1-m86078.html" ><i class="m">前排座椅<em>(5张)</em></i></a> <a data-src="42" id="s_42" href="/cars/md/64906-1-m86078.html" ><i class="m">前排储物空间<em>(4张)</em></i></a> <a data-src="45" id="s_45" href="/cars/md/64892-1-m86078.html" ><i class="m">前排车顶功能区<em>(4张)</em></i></a> </div> </div> <div class="collapsed " id="f_4"> <span class="tit"><a data-src="71352" href="/cars/md/71352-1-m86078.html"><i class="menu-icon menu-icon-4"></i>后排<i class="tips-icon"></i></a></span> <div class="link"> <a data-src="47" id="s_47" href="/cars/md/64887-1-m86078.html" ><i class="m">后排座椅<em>(5张)</em></i></a> <a data-src="50" id="s_50" href="/cars/md/64903-1-m86078.html" ><i class="m">地面凸起<em>(1张)</em></i></a> <a data-src="147" id="s_147" href="/cars/md/64890-1-m86078.html" ><i class="m">后排空调<em>(2张)</em></i></a> <a data-src="51" id="s_51" href="/cars/md/64904-1-m86078.html" ><i class="m">后排储物空间<em>(1张)</em></i></a> </div> </div> <div class="collapsed " id="f_5"> <span class="tit"><a data-src="71353" href="/cars/md/71353-1-m86078.html"><i class="menu-icon menu-icon-5"></i>动力及底盘<i class="tips-icon"></i></a></span> <div class="link"> <a data-src="58" id="s_58" href="/cars/md/64916-1-m86078.html" ><i class="m">动力总成<em>(3张)</em></i></a> <a data-src="59" id="s_59" href="/cars/md/64919-1-m86078.html" ><i class="m">底盘<em>(1张)</em></i></a> </div> </div> <div class="collapsed active" id="f_6"> <span class="tit"><a data-src="71354" href="/cars/md/71354-1-m86078.html"><i class="menu-icon menu-icon-6"></i>后备厢<i class="tips-icon"></i></a></span> <div class="link"> <a data-src="60" id="s_60" href="/cars/md/64913-1-m86078.html" class="current"><i class="m">储物空间<em>(1张)</em></i></a> <a data-src="61" id="s_61" href="/cars/md/64914-1-m86078.html" ><i class="m">空间拓展<em>(2张)</em></i></a> <a data-src="62" id="s_62" href="/cars/md/64910-1-m86078.html" ><i class="m">开关方式<em>(1张)</em></i></a> <a data-src="64" id="s_64" href="/cars/md/64911-1-m86078.html" ><i class="m">附件<em>(2张)</em></i></a> </div> </div> </div> <div class="relp"> <a href="/cars/image/7927130-1-sg169-o1.html" target="_blank"><i></i>看实拍图<em class="gray">(9899张)</em></a> </div> <div class="relp relpchange"> <a href="//pcauto.pcvideo.com.cn/video-62694.html" target="_blank"><i></i>视频实拍</a> </div> <div class="relp relpallv"> <a onclick="cntSFView('https://www1.pcauto.com.cn/panorama/994/tour.html')" href="javascript:void(0);"><i></i>VR看车</a> </div> <div class="addmore"> <p>宝马X5(进口) 2019款 xDrive40i 尊享型 M运动套装</p> <span class="price vam" id="lowestModelPrice_86078"></span> <a class="btn-cx" rel="nofollow" target="_blank" href="//qdfront.pcauto.com.cn/order/pc/common/order_detail.xsp?ad=5858&mid=86078">获取底价</a> </div> </div> </div> </div> <script> function cntSFView(url){ new Image().src = "//count.pcauto.com.cn/count.php?channel=9287&screen="+screen.width+"*"+screen.height+"&refer="+encodeURIComponent(document.referrer)+"&anticache="+new Date().getTime()+"&url="+encodeURIComponent(location.href)+"&from=event"; var aView = document.createElement("a"); aView.href = url; aView.target = '_blank'; document.body.appendChild(aView); aView.click() } </script> <script src="//js.3conline.com/min/temp/v1/lib-jquery1.10.2.js"></script> <script type="text/javascript"> var mid = "86078"; var sgId = ""; localMinPrice(mid); //全国4S最低价 function localMinPrice(mid){ // $.ajax({ // url:'//price.pcauto.com.cn/dealer/interface/price/getLowestModelPrice4All.jsp', // data:{mid:mid}, // type:'get', // dataType:'jsonp', // jsonpCallback:'setLowestModelPrice', // cache: true // }); $.ajax({ url: 'https://qdfront.pcauto.com.cn/qd/price/intf/range/sgModelPrice', type: 'GET', data: {serialGroupId: sgId}, success: function (result) { if (result.data && result.data.models) { var mPrice = result.data.models[mid]; if (mPrice && mPrice.minPrice > 0) { var shtml = '全国4S最低价:<a href="//price.pcauto.com.cn/m'+mPrice.modelId+'/market/#ad=8532" target="_blank"><strong class="orange fz14">'+mPrice.minPrice+'万</strong></a>'; $("#lowestModelPrice_"+mPrice.modelId).html(shtml); } } } }) } function setLowestModelPrice(data) { if(data.minPrice > 0){ var shtml = '全国4S最低价:<a href="//price.pcauto.com.cn/m'+data.mid+'/market/#ad=8532" target="_blank"><strong class="orange fz14">'+data.minPrice+'万</strong></a>'; $("#lowestModelPrice_"+data.mid).html(shtml); } } </script> <div class="content pb50"> <!-- 图片切换层 --> <div id="j-pic-wrap" class="box-pic"> <img src="//img.pcauto.com.cn/images/upload/upc/tx/auto5/1901/18/c41/128872120_1547802300236.jpg" side="1" id="pic_img" style="cursor: url(//www1.pcauto.com.cn/2009/price/img/right.cur), pointer;"> <script type="text/javascript"> // 给主图绑定事件,如果webp图加载出错,则回滚加载jpg图片 var mainImg = document.getElementById('pic_img'); if(canWebp) { mainImg.onerror = function() { mainImg.src = zsurl_ori; mainImg.onerror = null; } } mainImg.src = zsurl; </script> </div> <div class="pic-infor clearfix" id="j-pic-infor"> <p class="mark"> </p> </div> <!--20181204 新增广告--> <div class="ivy_banner"> <script src="//ivy.pconline.com.cn/adpuba/show?id=auto.tuku.zdy.zsdstl1.&media=js&channel=inline&trace=1"></script> <script src="//ivy.pconline.com.cn/adpuba/show?id=auto.tuku.zdy.zsdstl2.&media=js&channel=inline&trace=1"></script> <script src="//ivy.pconline.com.cn/adpuba/show?id=auto.qctp.dbtl.&media=js&channel=inline&trace=1"></script> </div> </div> </div> </div> <div id="j-mask-bg" class="mask-bg"></div> <div id="j-view-fix"><a href="//my.pcauto.com.cn/action/report/report.jsp" target="_blank"><em></em>用户反馈</a></div> <a href="javascript:void(0)" class="erweimaforp" id="erweimaforp"><em><img src="/price/api/v1/common/qrcode?width=300&height=300&url=http://m.pcauto.com.cn/auto/pic/md/1-1-m86078.html" width="153" height="153" /></em></a> <script type="text/javascript"> var iViewH = document.documentElement.clientHeight; //窗口高度 var iVideW = document.documentElement.clientWidth; //窗口宽度 var iWinH = document.body.offsetHeight; //文档内容高度 var iHeaderH = document.getElementById("J-header").offsetHeight; var allH = Math.max(iViewH, iWinH); var Tools = { arrayEach: function(arr, callback) { var ret; for (var i = 0, l = arr.length; i < l; i++) { ret = callback.call(arr, arr[i], i, arr); if (ret === false) { break; } else { continue; } } }, trim: function(str) { if (typeof String.prototype.trim === 'function') return str; return str.replace(/^\s+/, '').replace(/\s+$/, ''); }, getId: function(id) { return (typeof(id) == 'object') ? id : document.getElementById(id); }, hasClass: function(element, className) { var s = ' ' + element.className + ' '; return s.indexOf(' ' + className + ' ') !== -1; }, addClass: function(element, className) { var self = this; var res = this.trim(element.className), parts = className.split(/\s+/); this.arrayEach(parts, function(part) { if (!self.hasClass(element, part)) { res += ' ' + part; } }); element.className = this.trim(res); }, removeClass: function(element, className) { var res = element.className.split(/\s+/), parts = className.split(/\s+/); this.arrayEach(parts, function(part) { for (var i = res.length - 1; i >= 0; i--) { if (res[i] == part) { res.splice(i, 1); } } }); element.className = res.join(' '); }, getByClass: function(className, context, tag) { var classElements = [], ctx = context || document; tag = tag || '*'; var els = ctx.getElementsByTagName(tag); for (var i = 0, ele; (ele = els[i]) !== undefined; i++) { if (this.hasClass(ele, className)) { classElements.push(ele); } } return classElements; }, on: function(obj, type, fn) { if (typeof window.addEventListener === 'function') { obj.addEventListener(type, fn, false); } else { var wrapFn = function() { fn.call(obj, window.event); }; obj.attachEvent('on' + type, wrapFn); } } } //setAsideHeight(); function setAsideHeight() { var oAside = document.getElementById("J-aside"); oAside.style.height = allH - iHeaderH + "px"; } </script> <script type="text/javascript"> (function(){ //类型鼠标效果 var otherType = document.getElementById("J-othertype"); if(!otherType) return; var oldOtherType = otherType.className; otherType.onmouseover = function(){ this.className +=" showtype"; } otherType.onmouseout = function(e) { e = e || event; var relatedTarget = e.toElement || e.relatedTarget; while (relatedTarget && relatedTarget != this) { relatedTarget = relatedTarget.parentNode; if (!relatedTarget) { Tools.removeClass(otherType, "showtype"); } } } //分享-显示隐藏 var oShare = document.getElementById("J-share"); if(!oShare) return; var oldShare = oShare.className; oShare.onmouseover = function(){ this.className +=" share-active"; } oShare.onmouseout = function(e) { e = e || event; var relatedTarget = e.toElement || e.relatedTarget; while (relatedTarget && relatedTarget != this) { relatedTarget = relatedTarget.parentNode; if (!relatedTarget) { Tools.removeClass(oShare, "share-active"); } } } /** * 用一个 object 来扩展另一个 object,一般是对 json 应用。破坏性操作 * @param {JSON} target 待扩展的 object. * @param {JSON} source 扩展来源 object. * @param {Boolean} override 存在同名键时,是否使用新值覆盖,默认为 true. */ function extend(target, source, override) { if (override === undefined) override = true; for (var item in source) { if (override || !(item in target)) { target[item] = source[item]; } } } // 默认的 cookie 参数 var default_cookie_option = { path: '', domain: '', secure: false }; /** * 设置 cookie,前两参数分别是 key 和 value,更多的控制使用 json 的形式在第 3 参数中提供 * value 为 null 时,相当月把 expires 设为 -1,即清 cookie; * 使用 encodeURIComponent 编码 * expires 可使用 number(代表天) 和 Date 对象; * * @param {String} key cookie 名. * @param value cookie 值. * @param {JSON} options expires, path, domain, secure 等控制参数. * @return {String} 写 cookie 的同时返回写入的内容. */ function setCookie(key, value, options) { options = options || {}; extend(options, default_cookie_option, false); /** * set the cookie and return it * * if the value is null, means remove it */ if (value === null) { // set to yesterday options.expires = -1; } var expires = options.expires, path = options.path, domain = options.domain, secure = options.secure; /** * expires only support 2 types * * 1. number means exist how many days * 2. Date(default) the Date object */ if (typeof expires === 'number') { var day = expires; expires = new Date(); expires.setDate(expires.getDate() + day); } var res = [encodeURIComponent(key), '=', encodeURIComponent(value), expires ? '; expires=' + expires.toUTCString() : '', path ? '; path=' + path : '', domain ? '; domain=' + domain : '', secure ? '; secure' : '' ].join(''); document.cookie = res; return res; } /** * 判断是否有相应的 cookie * @param {String} key 待查找的 cookie 名. * @return {Boolean} */ function hasCookie(key) { return (new RegExp('(?:^|;\\s*)' + encodeURIComponent(key).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=')).test(document.cookie); } /** * 获取相应的 cookie 值 * @param {String} key cookie 的键. * @return 返回 decodeURIComponent 后的值,无则为 null. */ function getCookie(key) { if (!key || !hasCookie(key)) return null; var res = document.cookie.replace(new RegExp('(?:^|.*;\\s*)' + encodeURIComponent(key).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*'), '$1'); return decodeURIComponent(res); } window.Cookie = { set: setCookie, get: getCookie, has: hasCookie }; })(); </script> <script type="text/javascript"> var COOKIE_DOMAIN = '.pcauto.com.cn'; //本地测试时使用这个,上线后应使用 price.pcauto.com.cn var COOKIE_PATH = '/'; // 本地测试使用,线上应用 '/cars/' Cookie.set('md_index', 126, {expires: 1, path: COOKIE_PATH, domain: COOKIE_DOMAIN}); Cookie.set('md_typeId', 6, {expires: 1, path: COOKIE_PATH, domain: COOKIE_DOMAIN}); Cookie.set('md_subTypeId', 60, {expires: 1, path: COOKIE_PATH, domain: COOKIE_DOMAIN}); Cookie.set('md_modelId', 86078, {expires: 1, path: COOKIE_PATH, domain: COOKIE_DOMAIN}); </script> <script type="text/javascript"> // 上下页的链接 var pLink = ""; var nLink = ""; pLink = "/cars/md/71354-1-m86078.html"; nLink = "/cars/md/64914-1-m86078.html"; </script> <script type="text/javascript"> var prevCur = "//www1.pcauto.com.cn/2009/price/img/left.cur", nextCur = "//www1.pcauto.com.cn/2009/price/img/right.cur"; // var g_img = Tools.getId('pic_img'); function jumpTo(link) { window.location.href = link; } function showCursor(a) { var a = a || window.event; var jVal = 0; if (document.body.className == 'page-final') { jVal = (document.body.clientWidth / 2) - 100; } else { jVal = document.body.clientWidth / 2; } if (a.clientX < jVal) { if (g_img.getAttribute("side") !== 0) { if (pLink) { g_img.style.cursor = "url(" + prevCur + "), pointer"; g_img.setAttribute("side", 0); } else { g_img.style.cursor = "url(" + nextCur + "), pointer"; g_img.setAttribute("side", 1); } } } else { if (g_img.getAttribute("side") != 1) { g_img.style.cursor = "url(" + nextCur + "), pointer"; g_img.setAttribute("side", 1); } } } function clickJump(e) { showCursor(e); var a = g_img.getAttribute("side"); if (a == "0") { goPrevPic(); } if (a == "1") { goNextPic(); } } function goNextPic() { if (nLink)jumpTo(nLink); if(nLink == ""){ popDiv.showPop("j-show-reason"); } } function goPrevPic() { if (pLink) jumpTo(pLink); } Tools.on(g_img, 'mousemove', showCursor); Tools.on(g_img, 'click', clickJump); Tools.on(document, 'keydown', function(e) { var e = e || window.event, keyCode = e.keyCode || e.which; if (keyCode == 39) { goNextPic(); } if (keyCode == 37) { goPrevPic(); } }); </script> <!-- 脚本区 --> <script> //分享 var queue = [{ url: '//js.3conline.com/ue/share/auto/bd_share_allin_v3.js' }] var head = document.getElementsByTagName('head')[0]; for (var i = 0, l = queue.length; i < l; i++) { (function(i) { var script = document.createElement('script'); if (queue[i].callback) { if (script.readyState) { script.onreadystatechange = function() { if (script.readyState == 'complete' || script.readyState == 'loaded') { script.onreadystatechange = null; queue[i].callback(); } } } else { script.onload = queue[i].callback; } } head.appendChild(script); if (queue[i].params) { var params = queue[i].params; for (var j in params) { if (params.hasOwnProperty(j)) script.setAttribute(j, queue[i].params[j]) } } script.src = queue[i].url; })(i) } </script> <script type="text/javascript"> var popDiv = { showPop:function(popElem){ //document.getElementById("j-mask-bg").style.display = "block"; document.getElementById(popElem).style.display = "block"; popDiv.setPopPos(popElem); //popDiv.setMaskH(); }, closePop:function(popElem){ //document.getElementById("j-mask-bg").style.display = "none"; document.getElementById(popElem).style.display = "none"; }, setMaskH:function(){ if(!window.XMLHttpRequest){ var bodyH = Math.max(document.body.offsetHeight,document.documentElement.clientHeight); document.getElementById("j-mask-bg").style.height = bodyH+"px"; } }, setPopPos:function(popElem){ var _popHeight = document.getElementById(popElem).offsetHeight; var _scrollTop = document.body.scrollTop || document.documentElement.scrollTop; var _clientHeight = document.body.clientHeight || document.documentElement.clientHeight; //document.getElementById(popElem).style.top = (_scrollTop + _clientHeight / 2 - _popHeight / 2) + "px"; document.getElementById(popElem).style.top = (600 - _popHeight)/2 + "px"; } } //popDiv.showPop("j-show-reason"); </script> <script>document.write('<span class="spanclass"><img src="//acount.pcauto.com.cn/wzcount/artbrowse.php?groupname=汽车网&subgroupname=&id=14488609&title=&response=1" border="0" width="0" height="0" /></span>');</script> <!-- 广告尾部 --> <script>_submitIvyID(); </script> <script> document.getElementById("erweimaforp").onmouseover=function(){ this.className="erweimaforp curss"; } document.getElementById("erweimaforp").onmouseout=function(){ this.className="erweimaforp"; } </script> <script src="//js.3conline.com/min/temp/v1/dpl-jquery.slide.js"></script> <!-- 20190729 年中购车补贴入口 --> <script src="//js.3conline.com/pcautonew1/pc/2017/price/js/pc_nzhd.js"></script> <script> new Slide({ target: $('.picboxtk .pics'), effect: 'slide', playTo: 0, direction: 'x', nextBtn: $('.lastpage .tit-m .chgbtn'), onchange: function(){ //$('.picboxtk .slideContent').animate({'left':-this.curPage*420+'px'},500); } }) </script> </body> </html>