ddKey({bottom_union: '1'});
});
}();
!function(){ ync('question:idget/related/related.js', function(rel){
rel({
cmsRelq: "",
cmsRelqrl: "",
isLog: false });
});
}();
!function(){ ync('common:idget/js/util/log/log.js', function(log){
//展现推送问题的PV
ddKey({push: '1'});
({key:2016, query: '.gt-push .ft a'});
});
}();
!function(){
ync('question:idget/user/nologin/nologin.js');
}();
!function(){ync('question:idget/user/info/daily/daily.js', function(Daily){
({"date":"2017.03.16","term":"1296","list":[{"id":"45478","title":"\u53ea\u8981\u5bf9\u5927\u8111\u8bad\u7ec3\u5f97\u5f53\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u53d8\u6210\u5929\u624d\u5417\uff1f","mt_img_src":"https:\/\/gss0.\/8_BXsjip0QIZ8tyhnq\/timg?h_rate=0&apikno&quality=100&size=250&sec=0&di=e2a99e74c96a7bc81ef189324f985801&src=http%3A%2F%2Fikno02.bosstatic.%2Fzhidaoribao%2F2017%2F0316%2Ftian.jpg"},{"id":"45178","title":"\u96e8\u4e2d\u8dd1\u5f97\u8d8a\u5feb\uff0c\u8863\u670d\u6e7f\u5f97\u8d8a\u5c11\uff1f","mt_img_src":"https:\/\/gss0.\/8_BXsjip0QIZ8tyhnq\/timg?h_rate=0&apikno&quality=100&size=250&sec=0&di=2043a17c46072eccee7228fbf7c81193&src=http%3A%2F%.%2Fzhidao%2Fh%253D800%252C450%2Fsign%3D2c486857ff03738dde1f042a832b9c65%2F6609c93d70cf3bc70a74da1bd800baa1cc112ad4.jpg"},{"id":"45424","title":"\u7535\u5f71\u6700\u96be\u8bd1\u7684\u662f\u7247\u540d\uff0c\u76d8\u70b9\u5f71\u53f2\u5341\u5927\u795e\u6765\u4e4b\u7b14","mt_img_src":"https:\/\/gss0.\/8_BXsjip0QIZ8tyhnq\/timg?h_rate=0&apikno&quality=100&size=250&sec=0&di=050e215e703cf70bbb137b8a052c085e&src=http%3A%2F%.%2Fzhidao%2Fh%253D800%252C450%2Fsign%3Debc9543ce9fe9925cb596158049872eb%2F6159252dd42a2834e57b7af252b5c9ea14cebf6e.jpg"},{"id":"45651","title":"3.15\u6253\u5047\uff0c\u4e0e\u4f60\u5403\u559d\u76f8\u5173\u7684\u90fd\u6709\u54ea\u4e9b\uff1f","mt_img_src":"https:\/\/gss0.\/8_BXsjip0QIZ8tyhnq\/timg?h_rate=0&apikno&quality=100&size=250&sec=0&di=f825846fd0dcf5ce1df85e60f39fb214&src=http%3A%2F%2Fikno02.bosstatic.%2Fzhidaoribao%2F2017%2F0316%2FB.jpg"},{"id":"45609","title":"\u4e24\u4f1a\u95ed\u5e55\uff01\u8fd920\u4ef6\u5927\u4e8b\uff0c\u5c06\u6539\u53d8\u4f60\u7684\u751f\u6d3b\uff01","mt_img_src":"https:\/\/gss0.\/8_BXsjip0QIZ8tyhnq\/timg?h_rate=0&apikno&quality=100&size=250&sec=0&di=a5924de8ca7d7ab9794431ee92cc8ccb&src=http%3A%2F%.%2Fzhidao%2Fh%253D800%252C450%2Fsign%3D5b7711247fc6a7efb973a02ecdca8365%2F0b46f21fbe096b634a42eaab05338744eaf8acf6.jpg"},{"id":"45398","title":"\u4eb2\u5c5e\u95f4\u5230\u5e95\u80fd\u4e0d\u80fd\u8f93\u8840\uff1f\u522b\u53c8\u88ab\u7535\u89c6\u5267\u7ed9\u9a97\u4e86\uff01","mt_img_src":"https:\/\/gss0.\/8_BXsjip0QIZ8tyhnq\/timg?h_rate=0&apikno&quality=100&size=250&sec=0&di=cd9f7d70ff50a8b9ed83575e1c5f9267&src=http%3A%2F%.%2Fzhidao%2Fh%253D800%252C450%2Fsign%3D2b02a1ca7a8da9774e7a8e238061d42d%2Fc83d70cf3bc79f3d994e86c9b3a1cd11738b299f.jpg"},{"id":"45422","title":"1981-1991\u5e74\u51fa\u751f\u7684\u4eba\uff0c\u6709\u4ef6\u5927\u4e8b\u9700\u8981\u529e","mt_img_src":"https:\/\/gss0.\/8_BXsjip0QIZ8tyhnq\/timg?h_rate=0&apikno&quality=100&size=250&sec=0&di=b3c138f75cf552fd8a607478b7532e1b&src=http%3A%2F%.%2Fzhidao%2Fh%253D800%252C450%2Fsign%3D3587655c037b02080c9c37e952e9dee7%2F80cb39dbb6fd52668b9771eda218972bd507368e.jpg"}]}, '0');
});
}();
!function(){
ync('question:idget/user/nologin-daily/nologin-daily.js');
}();
!function(){ync('common:idget/js/logic/union/union.js', function(union){
// args[2, 3]自定义定向使用, common:union中有限制只能调用一次;
union('968278', 'union-asplu', {
'zdquery' : '',
'zdclassid' : '202',
'zhidaoqid' : '304877787504237044'
});
});
}();
!function(){ ync('question:idget/ad-right/ad-right.js');
}();
!function(){ require('common:idget/js/logic/ie-prompt/ie-prompt.js');
}();
!function(){
ync(['common:idget/js/util/tangram/tangram.js', 'common:idget/js/util/log/log.js', 'common:idget/js/util/event/event.js', 'common:idget/js/logic/submit/submit.js', 'common:idget/js/ui/dialog/dialog.js', 'question:idget/js/file/file.js', 'question:idget/js/left-promotion/left-promotion.js', 'question:idget/js/video/video.js', 'common:idget/js/ui/tip/tip.js', 'question:idget/ask/share/share.js', 'common:idget/js/util/https/https.js'], function($, log, ec, Submit, Dialog, File, LeftPromotion, Video, Tip, share, https){
// 打点QB页用户可操作时间
alog('', 'drt', +ne Date);
// xt('ne_qb_fr', 'ne_qb_' + 0);
$(function(){
ddKey({
qbleftdon: $('.qbleftdon').find('li').size(),
qbrightdon:$('.qbrightdon').find('.r').size()
});
if ( $( '.qbleftdon a' ).size() ) {
ddKey({
ec_ads: '2',
ec_ads_count: $('.qbleftdon').find('_ad_title, _qad_title, _ad_title').size()
});
$('.qbleftdon a').click(function(){
var $parent = $( this ).parent();
if ( d || == 'EC_ad_title'
|| $(this).hasClass('ec_ik220_adtitle')
|| $(this).hasClass('ec_ik220_desc')
|| $( 'EC_ads_anser' )
|| == 'EC_ads_listurl'
|| == 'ec_ad_title'
|| $('ec_qad_title')
|| $('ec_qad_anserer') ) {
d({
type: 2014,
evtType: 'click',
pos: 'ec_ads'
});
}
});
}
ync('question:idget/js/card/card.js', function(card){
$('.user-name').each(function(index, item){
ne card({ target: item, type: 'normal' });
});
$('.mavin-name').each(function(index, item){
ne card({target: item, type: 'mavin' });
});
$('.opendev-name').each(function(index, item){
ne card({target: item, type: 'opendev'});
});
$('.uadmin-a').each(function(index, item) {
ne card({target: item, type: 'uadminIcon'});
});
$('.business-name').each(function(index, item){
ne card({target: item, type: 'business' });
});
$('.quality-business-name').each(function (index, item) {
ne card({target: item, type: 'qbusiness'});
});
});
$('.fixed-ask-e').click(function(e){
Default();
var username = $(this).attr('username');
ync('common:idget/js/logic/iask/iask.js', function(fixedAsk){
fixedAsk(username);
});
});
$('.replyask-shrink a').click(function(e){
Default();
var flag = .indexOf('更多追问') != -1;
var dl = $(this).html( flag ? '收起追问' : '更多追问' ).parent().prevAll('.replyask');
$($.makeArray(dl).reverse().slice(flag ? 0 : 3, )).css('display', flag ? 'block' : 'none');
});
$('.replyask-box').each(function (index, item) {
if ($(item).find('.replyask-shrink').size() == 0) {
if ($(item).find('.ask-supply').size() == 2) {
// $(item).find('.replyask').last().find('.ask-supply-line').hide();
}
if ($(item).find('.ask-supply').size() == 1) {
// $(item).find('.ask-supply-line').hide();
}
// $(item).find('.ask-supply-line').last().hide();
}
});
if($('.thunder-rap').size()){
ync('question:idget/js/thunder/thunder.js', function(thunder){
$(function(){
();
});
});
}
$.each(xt('ansers'), function(index, item){
if(){
if (.isFromBusiness > 0) {
$.ajax({
url: '/business/submit/onbusinessbrose',
type: 'POST',
dataType: 'json',
data: {
businessId: .business.businessId,
page: '1',
token: xt('businessToken')
}
})
.done(function () {
})
.fail(function () {
});
}
}
});
$(document).on('click', '.ikqb_img', function(){
d({
type: 2014,
bigimg: 'click'
});
});
$('').on('click', function() {
d({
type: 2014,
area: 'ad-right-optimus',
action: 'click',
cid: xt('page')['cid'],
cidTop: xt('page')['cidTop'],
cidMid: xt('page')['cidMid']
});
});
$('#gt-nologin-daily').click(function(e){
();
if($().closest('#daily-carousel').size() && !$().closest('.carousel-control').size()){
d({
type: 2014,
page: 'question',
pos: 'no-login-daily',
action: 'click'
});
}
});
$('.gt-daily').on('click', 'a', function(){
d({
type: 2014,
page: 'question',
pos: 'login-daily',
action: 'click'
});
});
$('.qbrightdon a').click(function(){
d({
type: 2014,
qid: xt('page')['qid'],
area: 'medical-right-txt-ads',
action: 'click'
});
});
if($('ikaudio').size()){
ddKey({
'audio' : 1
});
ync('question:idget/js/audio/audio.js', function(audio){
();
});
}
ync('question:idget/js/comment/comment.js', function(comm){
();
});
$('.recommend-text, .best-text, .anser-text, .replyask-content').each(function(i, anserText){
$(anserText).find('pre[t="code"]').each(function(i, pre){
var loadSyntax = function(){
SyntaxHighlighter(pre);
};
$(pre).text($(pre).html($(pre).html().replace(/
/ig, '##IK_LINEBREAK##')).text().split('##IK_LINEBREAK##').join('\n'));
$(pre).addClass('brush:'+$(pre).attr('l')+';toolbar:false;');
if (yntaxHighlighter) {
(pre);
$(anserText).find('.syntaxhighlighter .code .line').each(function(index, line){
$(anserText).find('.syntaxhighlighter .gutter .line').eq(index).height($(line).height());
});
} else {
var sioUrl = ('');
$.sio(sioUrl).callByBroser(function(){
SyntaxHighlighter.defaults['quick-code'] = false;
Brs = true;
(pre);
$(anserText).find('.syntaxhighlighter .code .line').each(function(index, line){
$(anserText).find('.syntaxhighlighter .gutter .line').eq(index).height($(line).height());
});
});
}
});
$(anserText).find('ikvideo').each(function(i, video){
var id = 'VIDEO_' + $.id(),
src = $(video).attr('src'),
sid;
var container = $('').attr('id', id).insertBefore($(video));
if (dexOf('youku') > -1 && (sid = (/sid\/(.*?)[\?\/]/))) {
if (sid[1]) {
src = ''+sid[1]+'/f';
}
}
('');
});
});
ync('common:idget/js/ui/lazyload/lazyload.js', function(lazyload){
$('.gt-replyer-best .avatar-48 a, .gt-replyer-best .avatar-66 a, .gt-replyer-special .avatar-66 a,.gt-replyer-best .avatar-69 a, .gt-replyer-best .avatar-70 a, .gt-replyer-best .avatar-66 a, #cms-company a').lazyload();
});
$('.ikqb-map').each(function(index, item) {
var ifreamObj = $("").attr({
frameborder: '0'
,idth:"430"
,height:"310"
,style: 'display:none;'
,className: 'anser-map'
}),
tmpsrc = $(item).attr("map") || $(item).attr("src");
('src', "//zhidao./html/map" + (/^ikno/i, ''));
$(item).before(ifreamObj).remove();
fter(
$("
").addClass('f-aid').html("本数据来源于百度地图,最终结果以百度地图最新数据为准。")
).sho();
});
var mavinUidAry = [];
$.(xt('ansers'), function(item, key){
if( && .mavinName){
(d);
}
});
if(){
var options = {
uids: mavinUidAry.join(',')
};
$.post('/mavin/api/getmavinpv', options);
}
if ($('dui-faked-video').size() > 0) {
();
}
ync('common:idget/js/logic/ut/ut.js', function(UT){
(['userbar','header','gt-ask','anser-editor','gt-ansers']);
});
if ( $('file').size() == 0 ) {
logPV();
} else {
(logPV);
}
if (xt('user')['isUserAdmin'] != '1'){
ync('question:idget/js/select-search/select-search.js', function(A){
();
});
}
var adTopImg = $('.adTopImg');
if( && ('display') != 'none') {
ddKey({
adTopImg_ne: 1
});
('click', function() {
d({
page: 'question',
pos: 'adTopImg_ne',
action: 'click',
type: 2014
});
});
}
({key:2014, query: 'body',action:'click'});
function logPV(){
var logOptions = {
type: 2014,
page: 'question',
action: 'entrance',
screen: parseInt($('body').height()/$(indo).height()),
qid: xt('page')['qid'],
cid: xt('page')['cid'],
vie: xt('page').isVie,
cidTop: xt('page')['cidTop'],
cidMid: xt('page')['cidMid'],
refer: ferrer
};
ddKey({
sample_ne_qb: 0
});
ddKey({
evaSampling: 0
});
ddKey({
sample_qb_50per: ""
});
ddKey({
qid: xt('page')['qid']
});
if (xt('page')
(本章未完,请点击下一页继续阅读)