头总是晕晕沉沉的,迷迷糊糊的,不知道怎么回事
-1 && (sid = src.match(/sid\/(.*?)[\?\/]/))) { if (sid[1]) { src = 'http://player.youku.com/player.php/sid/'+sid[1]+'/v.swf'; } } container.html(''); }); }); var scrollLogged = false; var middleLogged = false; var bottomLogged = false; $(document).on('scroll', function () { var docViewTop = $(window).scrollTop(); var docViewBottom = docViewTop + $(window).height(); var $cmsScroll = $('#cms-scroll'); if ($cmsScroll.length > 0) { var scrollElemTop = $cmsScroll.offset().top; if (!scrollLogged && (scrollElemTop > docViewTop && scrollElemTop < docViewBottom)) { scrollLogged = true; log.send({ area: 'quesion_right_scoll' }); } } var $cmsCompany = $('#cms-company'); if ($cmsScroll.length > 0) { var middleElemTop = $cmsScroll.offset().top; if (!middleLogged && (middleElemTop > docViewTop && middleElemTop < docViewBottom)) { middleLogged = true; log.send({ area: 'question_middle_ads' }); } } var $knowledge = $('.knowledge'); if ($knowledge.length > 0) { var bottomElemTop = $knowledge.offset().top; if (!bottomLogged && (bottomElemTop > docViewTop && bottomElemTop < docViewBottom)) { bottomLogged = true; log.send({ area: 'question_knowledge' }); } } }); require.async(['common-new:widget/js/ui/lazyload/lazyload'], function(lazyload){ $('.wgt-replyer-best .avatar-48 a, .wgt-replyer-best .avatar-66 a, .wgt-replyer-special .avatar-66 a,.wgt-replyer-best .avatar-69 a, .wgt-replyer-best .avatar-70 a, .wgt-replyer-best .avatar-66 a, #cms-company a').lazyload(); }); $('.ikqb-map').each(function(index, item) { var ifreamObj = $("").attr({ frameborder: '0' ,width:"430" ,height:"310" ,style: 'display:none;' ,className: 'answer-map' }), tmpsrc = $(item).attr("map") || $(item).attr("src"); var iframeSrc = !/ueditor\/dialogs\/map/i.test(tmpsrc) ? '//zhidao.baidu.com/html/map' + tmpsrc.replace(/^iknow/i, '') : tmpsrc; ifreamObj.attr('src', iframeSrc); $(item).before(ifreamObj).remove(); ifreamObj.after( $("").addClass('f-aid').html("本数据来源于百度地图,最终结果以百度地图最新数据为准。") ).show(); }); if ($('video.edui-faked-video').size() > 0) { Video.init(); } require.async(['question-new:widget/js/trans-yun/trans-yun-log'], function(YunLog){ YunLog.init(); }); require.async(['question-new:widget/js/yike-card/yike-card-log'], function(yikeCardLog){ yikeCardLog.init(); }); require.async(['common-new:widget/js/logic/ut/ut'], function(UT){ UT.start(['userbar','header','wgt-ask','answer-editor','wgt-answers']); }); File.init(); logPV(); if (F.context('user')['isUserAdmin'] != '1'){ require.async(['question-new:widget/js/select-search/select-search'], function(A){ A.init(); }); } log.init({key:2014, query: 'body',action:'click'}); function logPV(){ var logOptions = { screen: parseInt($('body').height()/$(window).height()), cid: F.context('page')['cid'], view: F.context('page').isView, cidTop: F.context('page')['cidTop'], cidMid: F.context('page')['cidMid'], refer: document.referrer, userStatus: '', adsEids: F.context('page').adsAll.adsEids.join(','), create_time: F.context('page').createTime || 0, asker_uid: F.context('page').uid || 0, viewer_uid: F.context('user').uid || 0, isNewPcQbPage: F.context('pageType') === 'view' ? 1 : 0, entry: $.url.getQueryValue(location.href, 'entry'), pageType: 'view', isNewTpl: 1 }; log.addKey({ evaSampling: 409, qid: F.context('page')['qid'] }); if (F.context('page').relateTopicQids) { logOptions.relateTopicQids = F.context('page').relateTopicQids; } if ($('.classinfo').length) { log.addKey({'classinfo': 1}); } var uadminIcon = $('.uadmin-a'); var uadminIconSize = uadminIcon.length; if (uadminIconSize) { logOptions.uadminIconNum = uadminIconSize; } if (0) { logOptions.uid = F.context('user').uid; } if ($.url.getQueryValue(location.href, 'waitexp')) { logOptions.waitExpType = $.url.getQueryValue(location.href, 'waitexp'); } if ($.url.getQueryValue(location.href, 'personas')) { logOptions.waitExpPersonas = $.url.getQueryValue(location.href, 'personas'); } log.addKey(logOptions); } var grid68 = $('.qb-content'), qid = F.context('page')['qid']; $.each({ 'qb-content' : '.q-content a@', 'qb-supply-content' : '.q-supply-content a@', 'qb-best-text' : '.wgt-best .best-text a@', 'qb-special-bast-text' : '.wgt-special .best-text a@', 'qb-recommend-text' : '.wgt-recommend .recommend-text a@', 'qb-answer-text' : '.answer-text a@', 'qb-replyask-ask' : '.ask+dd a', 'qb-replyask-reply' : '.reply+dd a', 'qb-best-thank' : '.thank pre a', 'qb-answer-refer' : '.answer-refer a' }, function(key, val){ var aLink = grid68.find( val.replace(/\@$/, '[title!="点击查看大图"]') ) .not('.app-keyword,.inner-link') .filter(function(){ return this.getAttribute('href').match(/^http/i) && this.innerHTML != '' && !$(this).closest('.ed2k-wrap').size() && !$(this).closest('.thunder-wrap').size() }); aLink.click(function(){ log.send({ 'type' : 2014, 'page' : 'question', 'qid' : qid, 'area' : key, 'action': 'linkClick', 'text' : this.getAttribute('href'), 'host' : this.getAttribute('href').split('/')[2] }); }); grid68.find( val.replace(/\@$/, '') ).attr('rel', 'nofollow noopener'); }); $(document).on('click', '.ikqb_img_alink', function(evt){ if($.browser.msie&&$.browser.version==6){ return false; } var imgTarget = $(this).find('img'), imgBigSrc = $(this).attr('href'), maxWidth = $(this).parent('p').outerWidth(), imgSmallSrc = imgTarget.attr('esrc'), sourceWidth = imgTarget.width(), sourceHeight = imgTarget.height(); if(imgTarget.hasClass('img_show')){ imgTarget.attr('src',imgBigSrc); if(!imgTarget.hasClass('ikqb_img')){ imgTarget.removeClass('ikqb_img'); imgTarget.animate({ 'width':'100%' },500); }else{ imgTarget.animate({ 'maxWidth':'500px', 'maxHeight':'340px' },500); } imgTarget.removeClass('img_show'); }else{ $(this).append(''); var bigImg = new Image(); bigImg.onload = function(){ imgTarget.attr('src',imgBigSrc); if(sourceWidth == bigImg.width){ imgTarget.removeClass('ikqb_img'); imgTarget.animate({ 'width':'120%' },500); }else{ imgTarget.animate({ 'maxWidth':bigImg.width>maxWidth?maxWidth:bigImg.width, 'maxHeight':bigImg.height },500); } imgTarget.addClass('img_show'); $('.ikqb_img_loading').remove(); } bigImg.src = imgBigSrc; } evt.preventDefault(); }); $(window).load(function () { if (F.context('pageType') === 'asker' && !Number(F.context('page')['delAsk'])) { sendMore.default.init(); } ec.fire('pageLoaded'); }); var loc_ans = $.url.getQueryValue(location.href, 'loc_ans'); if(!loc_ans) { var myAnswerList = $('.wgt-best .answer-mine, .wgt-recommend .answer-mine, .wgt-special .answer-mine'), myAnswer = null; if(myAnswerList.size()){ myAnswer = myAnswerList.first(); setTimeout(function(){ $(document).scrollTop(myAnswer.offset().top - 10); }, 200); // 保证其它回答翻页时定位到首个回答的顶部 } else if (location.hash === '#wgt-answers' && $('#wgt-answers').size()) { // 防止刷新时重复定位 try { if (document.referrer === sessionStorage.getItem('sessionPreReferrer')) { return; } else { sessionStorage.setItem('sessionPreReferrer', document.referrer); } } catch (e) {} // 顺序要在答案折叠后面,以免影响计算 $(window).on('load', function () { // 变为异步排除其他定位干扰 setTimeout(function () { var top = $('#wgt-answers').offset().top; // 主要是排除吸顶头部的干扰防止覆盖住回答顶部 var $title = $('.wgt-ask .ask-title'); var diff = top > $title.offset().top + $title.height() - 50 ? 55 : 0; $(window).scrollTop(top - diff); }, 0) }) } }else { var locAnswerList = $('.wgt-best .answer, .wgt-recommend .answer, .wgt-special .answer'), locAnswer = null; locAnswerList.each(function(index, item) { if($(item).attr("id").indexOf(loc_ans) != -1) { locAnswer = $(item); } }); if(locAnswer) { setTimeout(function(){ $(document).scrollTop(locAnswer.parent().offset().top - 10); }, 200); } } // 统计合伙人回答浏览量 var businessIds = null; businessIds && businessIds instanceof Array && $.ajax({ url: '/business/submit/dailystatistics', method: 'GET', timeout: 30 * 1000, data: { type: 1, businessIds: businessIds.join('_'), qid: F.context('page').qid } }); domReady.init(); F.context('banInfo', null);});}();!function(){var F = (window.__IKNOW_GLOBAL__ || window).F;var require = (window.__IKNOW_GLOBAL__ || window).require; require.async(['common-new:widget/js/logic/dom-ready/dom-ready'], function(D){ D.init({"isNotPgc":"1"}) }); }();!function(){var F = (window.__IKNOW_GLOBAL__ || window).F;var require = (window.__IKNOW_GLOBAL__ || window).require; require.async(["common-new:widget/js/logic/duration/duration"],function(dur){ dur.init(); }); }();!function(){var F = (window.__IKNOW_GLOBAL__ || window).F;var require = (window.__IKNOW_GLOBAL__ || window).require; require.async(['common-new:widget/js/util/monitor/monitor.es'], function(m) { window.iPerformance && m.monitor && m.monitor.init(); }); }();!function(){var F = (window.__IKNOW_GLOBAL__ || window).F;var require = (window.__IKNOW_GLOBAL__ || window).require; require.async(['common-new:widget/js/util/log/log'], function(log) { var ssrEnd = Date.now(); var cost = ssrEnd - Number(1734869502500); setTimeout(function () { log.send({ action: 'latency', area: 'ssr', plat: 'pc', cost: cost, uri: window.location.pathname }); }, 1000); }); }(); require.async(['common-new:widget/lib/jquery/jquery'], function ($) { if (!/chrome|firefox|safari|msie 10|rsv:11|msie [89]/i.test(navigator.userAgent)) { return; } window.BaiduHttps = window.BaiduHttps || {}; window.BaiduHttps.callbacks = function (data) { if (data && data.s === 0) { window.supportHttps = 1; setTimeout(function () { $('a[href^="http://www.baidu.com/s?"]').each(function (index, item) { var link = $(item).attr('href'); if (~link.indexOf('?wd=') || ~link.indexOf('&wd=')) { link = link.replace(/^http/, 'https'); $(item).attr('href', link); } }); }, 2000); } }; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://www.baidu.com/con?from=zhidao'; document.body.appendChild(script); });" /> -1 && (sid = src.match(/sid\/(.*?)[\?\/]/))) { if (sid[1]) { src = 'http://player.youku.com/player.php/sid/'+sid[1]+'/v.swf'; } } container.html(''); }); }); var scrollLogged = false; var middleLogged = false; var bottomLogged = false; $(document).on('scroll', function () { var docViewTop = $(window).scrollTop(); var docViewBottom = docViewTop + $(window).height(); var $cmsScroll = $('#cms-scroll'); if ($cmsScroll.length > 0) { var scrollElemTop = $cmsScroll.offset().top; if (!scrollLogged && (scrollElemTop > docViewTop && scrollElemTop < docViewBottom)) { scrollLogged = true; log.send({ area: 'quesion_right_scoll' }); } } var $cmsCompany = $('#cms-company'); if ($cmsScroll.length > 0) { var middleElemTop = $cmsScroll.offset().top; if (!middleLogged && (middleElemTop > docViewTop && middleElemTop < docViewBottom)) { middleLogged = true; log.send({ area: 'question_middle_ads' }); } } var $knowledge = $('.knowledge'); if ($knowledge.length > 0) { var bottomElemTop = $knowledge.offset().top; if (!bottomLogged && (bottomElemTop > docViewTop && bottomElemTop < docViewBottom)) { bottomLogged = true; log.send({ area: 'question_knowledge' }); } } }); require.async(['common-new:widget/js/ui/lazyload/lazyload'], function(lazyload){ $('.wgt-replyer-best .avatar-48 a, .wgt-replyer-best .avatar-66 a, .wgt-replyer-special .avatar-66 a,.wgt-replyer-best .avatar-69 a, .wgt-replyer-best .avatar-70 a, .wgt-replyer-best .avatar-66 a, #cms-company a').lazyload(); }); $('.ikqb-map').each(function(index, item) { var ifreamObj = $("").attr({ frameborder: '0' ,width:"430" ,height:"310" ,style: 'display:none;' ,className: 'answer-map' }), tmpsrc = $(item).attr("map") || $(item).attr("src"); var iframeSrc = !/ueditor\/dialogs\/map/i.test(tmpsrc) ? '//zhidao.baidu.com/html/map' + tmpsrc.replace(/^iknow/i, '') : tmpsrc; ifreamObj.attr('src', iframeSrc); $(item).before(ifreamObj).remove(); ifreamObj.after( $("").addClass('f-aid').html("本数据来源于百度地图,最终结果以百度地图最新数据为准。") ).show(); }); if ($('video.edui-faked-video').size() > 0) { Video.init(); } require.async(['question-new:widget/js/trans-yun/trans-yun-log'], function(YunLog){ YunLog.init(); }); require.async(['question-new:widget/js/yike-card/yike-card-log'], function(yikeCardLog){ yikeCardLog.init(); }); require.async(['common-new:widget/js/logic/ut/ut'], function(UT){ UT.start(['userbar','header','wgt-ask','answer-editor','wgt-answers']); }); File.init(); logPV(); if (F.context('user')['isUserAdmin'] != '1'){ require.async(['question-new:widget/js/select-search/select-search'], function(A){ A.init(); }); } log.init({key:2014, query: 'body',action:'click'}); function logPV(){ var logOptions = { screen: parseInt($('body').height()/$(window).height()), cid: F.context('page')['cid'], view: F.context('page').isView, cidTop: F.context('page')['cidTop'], cidMid: F.context('page')['cidMid'], refer: document.referrer, userStatus: '', adsEids: F.context('page').adsAll.adsEids.join(','), create_time: F.context('page').createTime || 0, asker_uid: F.context('page').uid || 0, viewer_uid: F.context('user').uid || 0, isNewPcQbPage: F.context('pageType') === 'view' ? 1 : 0, entry: $.url.getQueryValue(location.href, 'entry'), pageType: 'view', isNewTpl: 1 }; log.addKey({ evaSampling: 409, qid: F.context('page')['qid'] }); if (F.context('page').relateTopicQids) { logOptions.relateTopicQids = F.context('page').relateTopicQids; } if ($('.classinfo').length) { log.addKey({'classinfo': 1}); } var uadminIcon = $('.uadmin-a'); var uadminIconSize = uadminIcon.length; if (uadminIconSize) { logOptions.uadminIconNum = uadminIconSize; } if (0) { logOptions.uid = F.context('user').uid; } if ($.url.getQueryValue(location.href, 'waitexp')) { logOptions.waitExpType = $.url.getQueryValue(location.href, 'waitexp'); } if ($.url.getQueryValue(location.href, 'personas')) { logOptions.waitExpPersonas = $.url.getQueryValue(location.href, 'personas'); } log.addKey(logOptions); } var grid68 = $('.qb-content'), qid = F.context('page')['qid']; $.each({ 'qb-content' : '.q-content a@', 'qb-supply-content' : '.q-supply-content a@', 'qb-best-text' : '.wgt-best .best-text a@', 'qb-special-bast-text' : '.wgt-special .best-text a@', 'qb-recommend-text' : '.wgt-recommend .recommend-text a@', 'qb-answer-text' : '.answer-text a@', 'qb-replyask-ask' : '.ask+dd a', 'qb-replyask-reply' : '.reply+dd a', 'qb-best-thank' : '.thank pre a', 'qb-answer-refer' : '.answer-refer a' }, function(key, val){ var aLink = grid68.find( val.replace(/\@$/, '[title!="点击查看大图"]') ) .not('.app-keyword,.inner-link') .filter(function(){ return this.getAttribute('href').match(/^http/i) && this.innerHTML != '' && !$(this).closest('.ed2k-wrap').size() && !$(this).closest('.thunder-wrap').size() }); aLink.click(function(){ log.send({ 'type' : 2014, 'page' : 'question', 'qid' : qid, 'area' : key, 'action': 'linkClick', 'text' : this.getAttribute('href'), 'host' : this.getAttribute('href').split('/')[2] }); }); grid68.find( val.replace(/\@$/, '') ).attr('rel', 'nofollow noopener'); }); $(document).on('click', '.ikqb_img_alink', function(evt){ if($.browser.msie&&$.browser.version==6){ return false; } var imgTarget = $(this).find('img'), imgBigSrc = $(this).attr('href'), maxWidth = $(this).parent('p').outerWidth(), imgSmallSrc = imgTarget.attr('esrc'), sourceWidth = imgTarget.width(), sourceHeight = imgTarget.height(); if(imgTarget.hasClass('img_show')){ imgTarget.attr('src',imgBigSrc); if(!imgTarget.hasClass('ikqb_img')){ imgTarget.removeClass('ikqb_img'); imgTarget.animate({ 'width':'100%' },500); }else{ imgTarget.animate({ 'maxWidth':'500px', 'maxHeight':'340px' },500); } imgTarget.removeClass('img_show'); }else{ $(this).append(''); var bigImg = new Image(); bigImg.onload = function(){ imgTarget.attr('src',imgBigSrc); if(sourceWidth == bigImg.width){ imgTarget.removeClass('ikqb_img'); imgTarget.animate({ 'width':'120%' },500); }else{ imgTarget.animate({ 'maxWidth':bigImg.width>maxWidth?maxWidth:bigImg.width, 'maxHeight':bigImg.height },500); } imgTarget.addClass('img_show'); $('.ikqb_img_loading').remove(); } bigImg.src = imgBigSrc; } evt.preventDefault(); }); $(window).load(function () { if (F.context('pageType') === 'asker' && !Number(F.context('page')['delAsk'])) { sendMore.default.init(); } ec.fire('pageLoaded'); }); var loc_ans = $.url.getQueryValue(location.href, 'loc_ans'); if(!loc_ans) { var myAnswerList = $('.wgt-best .answer-mine, .wgt-recommend .answer-mine, .wgt-special .answer-mine'), myAnswer = null; if(myAnswerList.size()){ myAnswer = myAnswerList.first(); setTimeout(function(){ $(document).scrollTop(myAnswer.offset().top - 10); }, 200); // 保证其它回答翻页时定位到首个回答的顶部 } else if (location.hash === '#wgt-answers' && $('#wgt-answers').size()) { // 防止刷新时重复定位 try { if (document.referrer === sessionStorage.getItem('sessionPreReferrer')) { return; } else { sessionStorage.setItem('sessionPreReferrer', document.referrer); } } catch (e) {} // 顺序要在答案折叠后面,以免影响计算 $(window).on('load', function () { // 变为异步排除其他定位干扰 setTimeout(function () { var top = $('#wgt-answers').offset().top; // 主要是排除吸顶头部的干扰防止覆盖住回答顶部 var $title = $('.wgt-ask .ask-title'); var diff = top > $title.offset().top + $title.height() - 50 ? 55 : 0; $(window).scrollTop(top - diff); }, 0) }) } }else { var locAnswerList = $('.wgt-best .answer, .wgt-recommend .answer, .wgt-special .answer'), locAnswer = null; locAnswerList.each(function(index, item) { if($(item).attr("id").indexOf(loc_ans) != -1) { locAnswer = $(item); } }); if(locAnswer) { setTimeout(function(){ $(document).scrollTop(locAnswer.parent().offset().top - 10); }, 200); } } // 统计合伙人回答浏览量 var businessIds = null; businessIds && businessIds instanceof Array && $.ajax({ url: '/business/submit/dailystatistics', method: 'GET', timeout: 30 * 1000, data: { type: 1, businessIds: businessIds.join('_'), qid: F.context('page').qid } }); domReady.init(); F.context('banInfo', null);});}();!function(){var F = (window.__IKNOW_GLOBAL__ || window).F;var require = (window.__IKNOW_GLOBAL__ || window).require; require.async(['common-new:widget/js/logic/dom-ready/dom-ready'], function(D){ D.init({"isNotPgc":"1"}) }); }();!function(){var F = (window.__IKNOW_GLOBAL__ || window).F;var require = (window.__IKNOW_GLOBAL__ || window).require; require.async(["common-new:widget/js/logic/duration/duration"],function(dur){ dur.init(); }); }();!function(){var F = (window.__IKNOW_GLOBAL__ || window).F;var require = (window.__IKNOW_GLOBAL__ || window).require; require.async(['common-new:widget/js/util/monitor/monitor.es'], function(m) { window.iPerformance && m.monitor && m.monitor.init(); }); }();!function(){var F = (window.__IKNOW_GLOBAL__ || window).F;var require = (window.__IKNOW_GLOBAL__ || window).require; require.async(['common-new:widget/js/util/log/log'], function(log) { var ssrEnd = Date.now(); var cost = ssrEnd - Number(1734869502500); setTimeout(function () { log.send({ action: 'latency', area: 'ssr', plat: 'pc', cost: cost, uri: window.location.pathname }); }, 1000); }); }(); require.async(['common-new:widget/lib/jquery/jquery'], function ($) { if (!/chrome|firefox|safari|msie 10|rsv:11|msie [89]/i.test(navigator.userAgent)) { return; } window.BaiduHttps = window.BaiduHttps || {}; window.BaiduHttps.callbacks = function (data) { if (data && data.s === 0) { window.supportHttps = 1; setTimeout(function () { $('a[href^="http://www.baidu.com/s?"]').each(function (index, item) { var link = $(item).attr('href'); if (~link.indexOf('?wd=') || ~link.indexOf('&wd=')) { link = link.replace(/^http/, 'https'); $(item).attr('href', link); } }); }, 2000); } }; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://www.baidu.com/con?from=zhidao'; document.body.appendChild(script); });" />