var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); $(function () { $.each($('#post-list .post-item'), function (i, listItem) { $(listItem).find('.btn-share').click(function (j, btn) { window.shareDesc = $(listItem).find('.post-title').find('a').text(); var postContent = $(listItem).find('.post-content').text(); if (postContent.length <= 110) { window.shareText = postContent; } else { window.shareText = postContent.substr(0, 110) + "..."; } }); }); }) window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "为程序员服务", "bdDesc":"http://www.wcxyfw.com", "bdMini": "1", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "24" , onBeforeClick: function (cmd, config) { return $.extend({}, { bdText: window.shareText, bdDesc: window.shareDesc }); } }, "share": {}, "image": { "viewList": ["qzone", "tsina", "tqq", "renren", "weixin"], "viewText": "分享到:", "viewSize": "24" }, "selectShare": { "bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "renren", "weixin"] } }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)]; }