首页 新闻 会员 周边 捐助

JS字符转换问题(一下js在网页中执行后得到图中的结果,如果这段代码在c#里面怎么实现)

0
[待解决问题]

<table>
        <script language="JavaScript">
            (
              function (a) {
                'use strict';
                var b = function () { },
                logger = { warn: b, error: b },
                padding = '=',
                chrTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' + '0123456789+/',
                binTable = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1];
                function c(f) {
                    var g = [], h = 0, i, j;
                    f = encodeURI(f);
                    i = f.length;
                    while (h < i) {
                        j = f[h]; h += 1; if ('%' !== j) {
                            g.push(j.charCodeAt(0))
                        } else { j = f[h] + f[h + 1]; g.push(parseInt(j, 16)); h += 2 }
                    };
                    return g
                };

                function d(f) {
                    var g = [], h = 0, i = f.length, j, k, l; while (h < i) {
                        j = f[h]; k = f[h + 1]; l = f[h + 2];
                        if (128 > j) {
                            g.push(String.fromCharCode(j)); h += 1
                         }
                        else if (191 < j && j < 224) {
                            g.push(String.fromCharCode(((j & 31) << 6) | (k & 63))); h += 2
                        }
                        else {
                            g.push(String.fromCharCode(((j & 15) << 12) | ((k & 63) << 6) | (l & 63))); h += 3
                        }
                    };
                    return g.join('')
                };
                function e(f) {
                    var g, h, i = 0, j = [], k = 0, l = 0;
                    for (i = 0; i < f.length; i++) {
                        h = f.charCodeAt(i);
                        g = binTable[h & 0x7F];
                        if (-1 === g)
                        { } else {
                            l = (l << 6) | g; k += 6;
                            if (k >= 8) {
                                k -= 8;
                                if (padding !== f.charAt(i)) {
                                    j.push((l >> k) & 0xFF)
                                };
                                l &= (1 << k) - 1
                            }
                        }
                    };
                    if (k) {
                        return null
                    };
                    return d(j)
                };
                a.b4 = { de: e }
            }(window));
            document.write(
                b4.de("PHRyPjx0ZD4yMDEzLTA1LTA0IDIyOjAwOjAwPC90ZD48dGQ+5pS25Lu25YWs5Y+477yaPHNwYW4gaWQ9NTE4MDAwIGNsYXNzPSJ3bHR6Ij7lub/kuJzmt7HlnLPlhazlj7g8L3NwYW4+PC90ZD48L3RyPjx0cj48dGQ+MjAxMy0wNS0wNSAwMDowMDoxNTwvdGQ+PHRkPuaUtuS7tuWFrOWPuO+8mjxzcGFuIGlkPTUxODAwMCBjbGFzcz0id2x0eiI+5bm/5Lic5rex5Zyz5YWs5Y+4PC9zcGFuPjwvdGQ+PC90cj48dHI+PHRkPjIwMTMtMDUtMDUgMDA6MDA6MTU8L3RkPjx0ZD7mlLbku7blhazlj7jvvJo8c3BhbiBpZD01MTgwMDAgY2xhc3M9IndsdHoiPuW5v+S4nOa3seWcs+WFrOWPuDwvc3Bhbj48L3RkPjwvdHI+PHRyPjx0ZD4yMDEzLTA1LTA1IDAwOjMxOjQyPC90ZD48dGQ+55SxIDxzcGFuIGlkPTUxODAwMCBjbGFzcz0id2x0eiI+5bm/5Lic5rex5Zyz5YWs5Y+4PC9zcGFuPiDlj5HlvoDvvJo8c3BhbiBpZD0xNTAwODggY29sb3I9J3JlZCc+6buR6b6Z5rGf5ZOI5bCU5ruo5YiG5ouo5Lit5b+DPC9zcGFuPiA8L3RkPjwvdHI+PHRyPjx0ZD4yMDEzLTA1LTA1IDAxOjQ4OjQ0PC90ZD48dGQ+KOaJgOWcqOWkp+WMhSnmlLbku7blhazlj7jvvJo8c3BhbiBpZ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My0wNS0xMCAxMToxNjowNTwvdGQ+PHRkPueUsTxzcGFuIGlkPTE1NzMwMCBjbGFzcz0id2x0eiI+6buR6b6Z5rGf57ul6Iqs5rKz5biC5YWs5Y+4PC9zcGFuPiDmtL7pgIHvvIznlLEg5p2O6YeR6b6ZIOetvuaUtjwvdGQ+PC90cj48dHI+PHRkPjIwMTMtMDUtMTAgMTE6MTY6MDU8L3RkPjx0ZD7nlLE8c3BhbiBpZD0xNTczMDAgY2xhc3M9IndsdHoiPum7kem+meaxn+e7peiKrOays+W4guWFrOWPuDwvc3Bhbj4g5rS+6YCB77yM55SxIOadjumHkem+mSDnrb7mlLY8L3RkPjwvdHI+")
            ); 
        </script>
    </table>   

js c#
wbz009的主页 wbz009 | 初学一级 | 园豆:0
提问于:2013-05-25 18:11
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册