<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// JavaScript Document
$(function () {
    var pageShare = $('.pageShare'),
        pageShareTop = pageShare.offset().top,
        releaseDate =
            $('.header-time .year em').html() +
            '-' +
            $.trim($('.header-time .day em').eq(0).html()) +
            '-' +
            $.trim($('.header-time .day em').eq(1).html()) +
            $('.header-time .time').html()
    var newsHref = window.location.href //å½“å‰æ–‡ç«&nbsp;åœ°å€
    //newsHref = "http://www.news.cn/2020-12/15/c_1126864574.htm";
    var csdw = newsHref.split('/')
    var cbTime = newsHref.split('/')[csdw.length - 3]
    var cbUUID = newsHref.split('/')[csdw.length - 2]
    // console.log(csdw);
    // console.log(cbUUID);

    var detail = {
        init: function () {
            var isMobile = /iPad|iPhone|Android|Windows Phone|Nokia/.test(
                navigator.userAgent
            ) //å½“å‰è®¿é—®è®¾å¤‡ä¸ºç§»åŠ¨ç«¯
            this.audioPlay() //æ’­æ”¾éŸ³é¢‘
            this.detailAudio() //æ­£æ–‡å¢žåŠ&nbsp;éŸ³é¢‘
            // this.sdgc() //æ·±åº¦è§‚å¯Ÿ
            // this.rmjc() //èžåª’é›†èƒ
            // detailSetFont(); //è®¾ç½®é¢œè‰²-é€šç”¨jsä¸­çš„å‡½æ•°
            if (isMobile) {
                // detailAtlasDisplay(); //æ­£æ–‡å›¾ç‰‡ç‚¹å‡»å¼¹å‡ºç»†è§ˆå›¾é›†åŠŸèƒ½-é€šç”¨jsä¸­çš„å‡½æ•°
            } else {
                this.purPosition() //å½“å‰ä½ç½®
                this.fontshare() //æ–‡å­—å¤§å°å’Œåˆ†äº«
                this.xcxEwm() //å°ç¨‹åºäºŒç»´ç&nbsp;
                this.scrollSet() //æ»šåŠ¨è®¾ç½®è·Ÿéš æ&nbsp;‡é¢˜å’Œè§†é¢‘
                // this.correct(); //çº&nbsp;é”™
                this.setTrim() //æ—¶é—´åŽ»ç©ºæ&nbsp;¼
                // this.setTitleFontSize();
            }
        },
        hotlist: function () {
            var htList = ''
            $(top1.list).each(function (i, item) {
                if (i &gt; 9) {
                    return false
                }
                htList +=
                    '&lt;li id="' +
                    item.id +
                    '"&gt;&lt;a href=http://www.news.cn/2021homepro/rsznb/index.htm?item=' +
                    (i + 1) +
                    ' target="_blank"&gt;' +
                    item.listTitle +
                    '&lt;/a&gt;&lt;/li&gt;'
            })
            $('#sdgc').html(htList)
        },
        sdgc: function () {
            // å¤´æ¡åŒº
            var jsonUrltt =
                'http://da.wa.news.cn/nodeart/page?nid=11256747&amp;attr=62&amp;pgnum=1&amp;cnt=1&amp;tp=1&amp;orderby=1?callback=?'
            $.getJSON(jsonUrltt, function (data) {
                var listData = data.data.list
                var htList = ''
                listData.map(function (item) {
                    var linkTitle = ''
                    if (item.tarray.length &gt; 0) {
                        for (var j = 0; j &lt; item.tarray.length; j++) {
                            linkTitle +=
                                '&lt;a href="' +
                                item.uarray[j] +
                                '" target="_blank"&gt;' +
                                item.tarray[j] +
                                '&lt;/a&gt;'
                        }
                    }
                    htList +=
                        '&lt;li&gt;&lt;div class="img breath"&gt;&lt;a href="' +
                        item.LinkUrl +
                        '" target="_blank"&gt;&lt;img src="' +
                        item.PicLinks +
                        '"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="tit"&gt;&lt;span&gt;&lt;a href="' +
                        item.LinkUrl +
                        '" target="_blank"&gt;' +
                        item.Title +
                        '&lt;/a&gt;' +
                        linkTitle +
                        '&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;'
                })
                $('#sdgc .list-mix ul').html(htList)
            })
            // æ–‡å­—åˆ—è¡¨åŒº
            var jsonUrlpt =
                'http://da.wa.news.cn/nodeart/page?nid=11256747&amp;attr=63&amp;pgnum=1&amp;cnt=6&amp;tp=1&amp;orderby=1?callback=?'
            $.getJSON(jsonUrlpt, function (data) {
                var listData = data.data.list
                var htList = ''

                listData.map(function (item) {
                    var linkTitle = ''
                    if (item.tarray.length &gt; 0) {
                        for (var j = 0; j &lt; item.tarray.length; j++) {
                            linkTitle +=
                                '&lt;a href="' +
                                item.uarray[j] +
                                '" target="_blank"&gt;' +
                                item.tarray[j] +
                                '&lt;/a&gt;'
                        }
                    }
                    htList +=
                        '&lt;li&gt;&lt;a href="' +
                        item.LinkUrl +
                        '" target="_blank"&gt;' +
                        item.Title +
                        '&lt;/a&gt;' +
                        linkTitle +
                        '&lt;/li&gt;'
                })
                $('#sdgc .list-txt ul').html(htList)
            })
            // å›¾ç‰‡åŒº
            var jsonUrltp =
                'http://da.wa.news.cn/nodeart/page?nid=11256747&amp;attr=61&amp;pgnum=1&amp;cnt=2&amp;tp=1&amp;orderby=1?callback=?'
            $.getJSON(jsonUrltp, function (data) {
                var listData = data.data.list
                var htList = ''
                listData.map(function (item) {
                    var linkTitle = ''
                    if (item.tarray.length &gt; 0) {
                        for (var j = 0; j &lt; item.tarray.length; j++) {
                            linkTitle +=
                                '&lt;a href="' +
                                item.uarray[j] +
                                '" target="_blank"&gt;' +
                                item.tarray[j] +
                                '&lt;/a&gt;'
                        }
                    }
                    htList +=
                        '&lt;li&gt;&lt;div class="img breath"&gt;&lt;a href="' +
                        item.LinkUrl +
                        '" target="_blank"&gt;&lt;img src="' +
                        item.PicLinks +
                        '"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="tit"&gt;&lt;span&gt;&lt;a href="' +
                        item.LinkUrl +
                        '" target="_blank"&gt;' +
                        item.Title +
                        '&lt;/a&gt;' +
                        linkTitle +
                        '&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;'
                })
                $('#sdgc .list-pic ul').html(htList)
            })
        },
        rmjc: function () {
            // 11245914
            var jsonUrl =
                'http://da.wa.news.cn/nodeart/page?nid=11245914&amp;pgnum=1&amp;cnt=3&amp;tp=1&amp;orderby=1?callback=?'
            $.getJSON(jsonUrl, function (data) {
                var listData = data.data.list
                var htList = '&lt;ul&gt;'
                listData.map(function (item) {
                    htList +=
                        '&lt;li&gt;&lt;div class ="pic"&gt;&lt;a href = "' +
                        item.LinkUrl +
                        '" target ="_blank"&gt;&lt;img src= "' +
                        item.PicLinks +
                        '" &gt;&lt;/a&gt;&lt;div class = "tit"&gt;&lt;div&gt;&lt;a href = "' +
                        item.LinkUrl +
                        '" target = "_blank" &gt;' +
                        item.Title +
                        '&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;'
                })
                htList += '&lt;/ul&gt;'
                $('#rmjc').html(htList)
            })
        },
        setTitleFontSize: function () {
            var titleSize = $.trim($('#fontsize').html())
            //è®¾ç½®å­—å·
            if (titleSize != '') {
                $('.head-line .title').css({
                    'font-size': titleSize + 'px',
                })
            }
        },
        setTitleFontColor: function () {
            var titleColor = $.trim($('#fontcolor').html())
            //è®¾ç½®é¢œè‰²
            if (titleColor != '') {
                $('.head-line .title').css({
                    color: titleColor,
                })
                $('.mheader .title').css({
                    color: titleColor,
                })
            }
        },
        xcxEwm: function () {
            //var publishid = $("meta[name=publishid]").attr("content");
            //var articleid = publishid.split('.')[0];
            //console.log(articleid)
            //var pUrl = "https://qrapi.news.cn/code/getQRCode?type=pages/detail/detailText/detailText&amp;articleid=" + fileUUID + "&amp;origin=xinhuawang"
            var bigUUID = cbTime + cbUUID

            $.ajax({
                url: 'https://qrapi.news.cn/code/getQRCode',
                type: 'post',
                data: {
                    type: 'pages/detail/detailText/detailText',
                    articleid: bigUUID,
                    origin: 'xinhuawang',
                },
                success: function success(res) {
                    //console.log("å°ç¨‹åºäºŒç»´ç&nbsp;åœ°å€ï¼š", res.data)
                    if (res.code == '200') {
                        //console.log(res.code, res.data)
                        //callback &amp;&amp; callback(res.data, dom);
                        $('.pageShare .xcx-ewm img').attr('src', res.data)
                        $('.fix-ewm .fxd-xcx-ewm img').attr('src', res.data)
                    }
                },
            })
        },
        correct: function () {
            //çº&nbsp;é”™
            ;(function () {
                var _hexCHS =
                    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
                var _hexTBL = {
                    0: 0,
                    1: 1,
                    2: 2,
                    3: 3,
                    4: 4,
                    5: 5,
                    6: 6,
                    7: 7,
                    8: 8,
                    9: 9,
                    A: 10,
                    B: 11,
                    C: 12,
                    D: 13,
                    E: 14,
                    F: 15,
                    G: 16,
                    H: 17,
                    I: 18,
                    J: 19,
                    K: 20,
                    L: 21,
                    M: 22,
                    N: 23,
                    O: 24,
                    P: 25,
                    Q: 26,
                    R: 27,
                    S: 28,
                    T: 29,
                    U: 30,
                    V: 31,
                    W: 32,
                    X: 33,
                    Y: 34,
                    Z: 35,
                    a: 36,
                    b: 37,
                    c: 38,
                    d: 39,
                    e: 40,
                    f: 41,
                    g: 42,
                    h: 43,
                    i: 44,
                    j: 45,
                    k: 46,
                    l: 47,
                    m: 48,
                    n: 49,
                    o: 50,
                    p: 51,
                    q: 52,
                    r: 53,
                    s: 54,
                    t: 55,
                    u: 56,
                    v: 57,
                    w: 58,
                    x: 59,
                    y: 60,
                    z: 61,
                }
                var key = [
                    61, 37, 44, 31, 34, 7, 24, 6, 43, 12, 27, 3, 25, 29, 60, 33,
                    35, 41, 58, 2, 51, 49, 9, 5, 59, 11, 42, 32, 22, 40, 4, 57,
                    50, 38, 8, 56, 21, 19, 52, 53, 16, 28, 1, 26, 47, 17, 54,
                    46, 10, 23, 55, 13, 14, 20, 15, 36, 18,
                ]
                Hr = function () {
                    if (key.length &lt; 57) {
                        throw new Error('the key is too short.')
                    }
                    this._sz =
                        (_hexCHS.charCodeAt(key[15]) % (key.length - 20)) + 10
                    this._ks = key.slice(-this._sz)
                    for (var _i = 0; _i &lt; this._sz; ++_i) {
                        this._ks[_i] = _hexCHS.charCodeAt(this._ks[_i] % 62)
                    }
                    ;(this._k16 = []), (this._k41 = [])
                    ;(this._t16 = {}), (this._t41 = {})
                    for (var _i = 0; _i &lt; 16; ++_i) {
                        this._k16[_i] = _hexCHS.charAt(key[_i])
                        this._t16[this._k16[_i]] = _i
                    }
                    for (var _i = 0; _i &lt; 41; ++_i) {
                        this._k41[_i] = _hexCHS.charAt(key[_i + 16])
                        this._t41[this._k41[_i]] = _i
                    }
                }
                Hr.prototype.ca = function (s) {
                    var _k16 = this._k16,
                        _k41 = this._k41,
                        _ks = this._ks,
                        _sz = this._sz,
                        _cnt = 0
                    return s
                        .replace(/[^\s\n\r]/g, function (ch) {
                            var _n = ch.charCodeAt(0)
                            return _n &lt;= 0xff
                                ? _k16[parseInt(_n / 16)] + _k16[_n % 16]
                                : _k41[parseInt(_n / 1681)] +
                                      _k41[parseInt((_n % 1681) / 41)] +
                                      _k41[_n % 41]
                        })
                        .replace(/[0-9A-Za-z]/g, function (ch) {
                            return _hexCHS.charAt(
                                (_hexTBL[ch] + _ks[_cnt++ % _sz]) % 62
                            )
                        })
                }
            })()
            /*
                $(".tiyi1").toggle(
                	function(){$('#jc_link1').attr("src",jc_link);$("#advisebox01").show();},
                	function(){$("#advisebox01").hide();}
                );
                $(".advise").toggle(
                	function(){$('.jc_link23').attr("src",jc_link);$("#advisebox02").show();},
                	function(){$("#advisebox02").hide();}
                );
                */
            $('.tiyi1').click(function () {
                $('#jc_link1').attr('src', jc_link)
                $('#advisebox01').show()
            })
            $('#jc_close1').click(function () {
                event.stopPropagation()
                $('#advisebox01').hide()
            })

            $('#jc_close1').click(function () {
                $('#advisebox01').hide()
            })
            $('#jc_close2').click(function () {
                $('#advisebox02').hide()
            })
            //èŽ·å–è´£ç¼–idï¼Œç¨¿ä»¶urlï¼Œç¨¿ä»¶idï¼Œç¨¿ä»¶æ&nbsp;‡é¢˜
            var ele_pageid = $('meta[name=pageid]').attr('content')
            var ele_ids = ele_pageid.split('.')
            var bId = ele_ids[ele_ids.length - 2]
            var _code = new Hr() //code
            var cId = _code.ca(ele_ids[ele_ids.length - 1])
            var cTitle = $('title').html().split('_')[0]
            if (cTitle != '') {
                cTitle = encodeURI(encodeURI(cTitle))
            }
            var cUrl = window.location.href
            var jc_link =
                'http://ck.wa.news.cn/XHWCIFB/Confirm.do?bId=' +
                bId +
                '&amp;cUrl=' +
                cUrl +
                '&amp;cId=' +
                cId +
                '&amp;cTitle=' +
                cTitle
            /****** end *******/
        },
        setTrim: function () {
            var _day1 = $.trim($('.header .day em').eq(0).html())
            var _day2 = $.trim($('.header .day em').eq(1).html())
            $('.header .day').html(_day1 + '/' + _day2)
        },
        detailAudio: function () {
            $('img[name="audiospan"]').each(function (i) {
                console.log(i)
                var audioSrc = $(this).attr('apath')
                var audioHtml =
                    '&lt;audio  controls="controls" src="' +
                    audioSrc +
                    '"&gt;&lt;/audio&gt;'
                $(this).after(audioHtml)
                $(this).remove()
            })
            var audios = document.getElementsByTagName('audio')

            function pauseAll() {
                var self = this
                ;[].forEach.call(audios, function (i) {
                    // å°†audiosä¸­å…¶ä»–çš„audioå…¨éƒ¨æš‚åœ
                    i !== self &amp;&amp; i.pause()
                })
            }
            ;[].forEach.call(audios, function (i) {
                i.addEventListener('play', pauseAll.bind(i))
            })
        },
        getBookRight: function () {
            var bookHtml = ''
            var bookNum = Math.ceil(Math.random() * 5)
            $(xhBook.data.list).each(function (i, item) {
                if (i &gt; bookNum - 2 &amp;&amp; i &lt; bookNum + 1) {
                    bookHtml +=
                        '&lt;li&gt;&lt;a href="' +
                        item.url +
                        '" target="_blank"&gt;&lt;div&gt;&lt;img src="' +
                        item.picurl +
                        '"&gt;&lt;/div&gt;&lt;div class="book-tit"&gt;' +
                        item.name +
                        '&lt;/div&gt;&lt;/li&gt;'
                }
            })
            $('.book ul').html(bookHtml)
        },
        getBookBottom: function () {
            var bookListHtml = ''
            $(xhBook.data.list).each(function (i, item) {
                if (i &gt; 5) {
                    return false
                }
                bookListHtml +=
                    '&lt;li&gt;&lt;div class="pic"&gt;&lt;a href="' +
                    item.url +
                    '" target="_blank"&gt;&lt;img src="' +
                    item.picurl +
                    '" alt=""&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="title"&gt;&lt;a href="' +
                    item.url +
                    '" target="_blank"&gt;' +
                    item.name +
                    '&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;'
            })
            $('.bookList ul').html(bookListHtml)
        },
        purPosition: function () {
            // $(domainNameArr).each(function (i, v) {
            // 	if (newsHref.indexOf(v.name) &gt;= 0) channelName = v.sKey;
            // });
            var curColumn = {}
            $(arrChannel).each(function (i, v) {
                if (newsHref.indexOf(v.sKey) &gt; -1) {
                    curColumn = {
                        name: v.sValue,
                        url: v.sUrl,
                        sKey: v.sKey,
                    }
                }
            })
            // console.log(curColumn);
            $('.curColumn')
                .attr({
                    href: curColumn.url,
                    target: '_blank',
                })
                .html(curColumn.name)
        },

        fontshare: function () {
            $('#fontSmall').click(function () {
                $(this).addClass('active').siblings().removeClass('active')
                $('#detail').css({
                    'font-size': '16px',
                })
            })
            $('#fontNormal').click(function () {
                $(this).addClass('active').siblings().removeClass('active')
                $('#detail').css({
                    'font-size': '18px',
                })
            })
            $('#fontBig').click(function () {
                $(this).addClass('active').siblings().removeClass('active')
                $('#detail').css({
                    'font-size': '20px',
                })
            })
            //åˆ†äº«
            var title = $('.head-line .title').html()
            //var src = "http://news.cn/";
            var wbSrc =
                'http://service.weibo.com/share/share.php?url=' +
                newsHref +
                '&amp;title=' +
                title
            //var kjSrc = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + newsHref + '&amp;title=' + title;
            var _src = newsHref.replace('c_', 'ewm_').replace('.htm', '1n.jpg')
            //console.log(_src)
            // $(".wx-ewm img").attr("src", _src);
            // $(".fxd-wx-ewm img").attr("src", _src);
            $('.share .wb').attr('href', wbSrc).attr('target', '_blank')
            $('.fxd .fxd-wb').attr('href', wbSrc).attr('target', '_blank')
            //$(".share .kj").attr("href", kjSrc).attr("target", "_blank");
            $('.pageShare').on('mouseover', '.wx', function () {
                $('.pageShare .wx-ewm').stop(true, true).slideDown()
            })
            $('.pageShare').on('mouseleave', '.wx', function () {
                $('.pageShare .wx-ewm').stop(true, true).slideUp()
            })
            $('.pageShare').on('mouseover', '.khd', function () {
                $('.pageShare .khd-ewm').stop(true, true).slideDown()
            })
            $('.pageShare').on('mouseleave', '.khd', function () {
                $('.pageShare .khd-ewm').stop(true, true).slideUp()
            })
            $('.pageShare').on('mouseover', '.xcx', function () {
                $('.pageShare .xcx-ewm').stop(true, true).slideDown()
            })
            $('.pageShare').on('mouseleave', '.xcx', function () {
                $('.pageShare .xcx-ewm').stop(true, true).slideUp()
            })
            $('.fix-ewm').on('mouseover', '.fxd-wx', function () {
                $('.fxd-wx-ewm').stop(true, true).slideDown()
            })
            $('.fix-ewm').on('mouseleave', '.fxd-wx', function () {
                $('.fxd-wx-ewm').stop(true, true).slideUp()
            })
            $('.fix-ewm').on('mouseover', '.fxd-khd', function () {
                $('.fxd-khd-ewm').stop(true, true).slideDown()
            })
            $('.fix-ewm').on('mouseleave', '.fxd-khd', function () {
                $('.fxd-khd-ewm').stop(true, true).slideUp()
            })
            $('.fix-ewm').on('mouseover', '.fxd-xcx', function () {
                $('.fxd-xcx-ewm').stop(true, true).slideDown()
            })
            $('.fix-ewm').on('mouseleave', '.fxd-xcx', function () {
                $('.fxd-xcx-ewm').stop(true, true).slideUp()
            })
        },
        audioPlay: function () {
            //éŸ³é¢‘
            // var articleid = newsHref.match(/c_(\S*).htm/)[1];
            // var time = newsHref.match(/(\S*)c_/)[1];
            // time = time.replace(/\//ig, '').replace(/-/ig, '').match(/.*(.{8})/)[1];
            var audioSrc =
                'http://vodpub1.v.news.cn/audio/' +
                cbTime +
                '/' +
                cbTime +
                cbUUID +
                '_title_content.mp3'
            // console.log('true-audioSrc:', audioSrc)
            $('.btn-audio').click(function () {
                if ($(this).hasClass('btn-audio-play')) {
                    $(this).removeClass('btn-audio-play')
                    $('#audioDom')[0].pause()
                } else {
                    console.log(audioSrc)
                    $.ajax({
                        type: 'post',
                        url: 'http://contentapi.news.cn/ossUrlExist/',
                        data: {
                            url: audioSrc,
                        },
                        success: function (data) {
                            console.log(data)
                            if (data) {
                                //console.log(data)
                                // $(this).addClass("isoundplay")
                                $(this).addClass('btn-audio-play')
                                $('#audioDom').attr('src', audioSrc)
                                $('#audioDom')[0].play()
                                $('.btn-audio').addClass('btn-audio-play')
                            } else {
                                alert('éŸ³é¢‘æ­£åœ¨åˆæˆä¸­ï¼Œè¯·ç¨åŽ')
                            }
                        },
                        error: function () {
                            alert('éŸ³é¢‘æ­£åœ¨åˆæˆä¸­ï¼Œè¯·ç¨åŽ')
                        },
                    })
                }
            })
        },
        scrollSet: function () {
            window.onload = function () {
                var videoPos = $('.main-right .video').offset().top
                var partLeftH = $('.main-left').height()
                var partRightH = $('.main-right').height()

                $(window).scroll(function () {
                    var _this = $(this)
                    if (_this.scrollTop() &gt; pageShareTop) {
                        $('.head-line h1').addClass('topFixed')
                    } else {
                        $('.head-line h1').removeClass('topFixed')
                    }

                    if (
                        _this.scrollTop() &gt; videoPos &amp;&amp;
                        partLeftH &gt; partRightH
                    ) {
                        $('.main-right .video').addClass('fixVideo')
                    } else {
                        $('.main-right .video').removeClass('fixVideo')
                    }
                })
            }
        },
        nextpage: function () {
            console.log(releaseDate)
            var url =
                'http://so.news.cn/inter/getNextNews?siteIdXml=' +
                siteIdXml +
                '&amp;nodeId=' +
                nodeId +
                '&amp;fileUUID=' +
                fileUUID +
                '&amp;releaseDate=' +
                releaseDate
            $.ajax({
                type: 'get',
                async: false,
                url: url,
                dataType: 'jsonp',
                jsonp: 'callback',
                success: function (json) {
                    console.log(json)
                    if (json.content.result !== null) {
                        $('.nextpage-cont a').html(json.content.result.title)
                        $('.nextpage-cont a').attr(
                            'href',
                            json.content.result.originUrl[0]
                        )
                    }
                },
                error: function (e) {
                    console.log(e)
                },
            })
        },
    }

    function IEVersion() {
        var userAgent = navigator.userAgent //å–å¾—æµè§ˆå™¨çš„userAgentå­—ç¬¦ä¸²
        var isIE =
            userAgent.indexOf('compatible') &gt; -1 &amp;&amp;
            userAgent.indexOf('MSIE') &gt; -1 //åˆ¤æ–­æ˜¯å¦IE&lt;11æµè§ˆå™¨
        var isEdge = userAgent.indexOf('Edge') &gt; -1 &amp;&amp; !isIE //åˆ¤æ–­æ˜¯å¦IEçš„Edgeæµè§ˆå™¨
        var isIE11 =
            userAgent.indexOf('Trident') &gt; -1 &amp;&amp;
            userAgent.indexOf('rv:11.0') &gt; -1
        if (isIE) {
            var reIE = new RegExp('MSIE (\\d+\\.\\d+);')
            reIE.test(userAgent)
            var fIEVersion = parseFloat(RegExp['$1'])
            if (fIEVersion == 7) {
                return 7
            } else if (fIEVersion == 8) {
                return 8
            } else if (fIEVersion == 9) {
                return 9
            } else if (fIEVersion == 10) {
                return 10
            } else {
                return 6 //IEç‰ˆæœ¬&lt;=7
            }
        } else if (isEdge) {
            return 'edge' //edge
        } else if (isIE11) {
            return 11 //IE11
        } else {
            return -1 //ä¸æ˜¯ieæµè§ˆå™¨
        }
    }

    //å‡½æ•°è°ƒç”¨å¼€å§‹
    detail.init()

    /* åˆ†é¡µè°ƒç”¨ */
    parsePagingFun({
        // preText: 'prev',//ä¸Šä¸€é¡µ
        // nextText: 'next',//ä¸‹ä¸€é¡µ
        id: 'detailContent', //æ­£æ–‡åˆ†é¡µid
        num: 8, //æ˜¾ç¤ºé¡µç&nbsp;æ•°ä¸ªæ•°
    })
})
</pre></body></html>