WebSite/Scripts/BootStrap/js/regRulr.js

(完整代码) 1KB

function encodeJson(str) {
    str = replaceAllEx(str, '\\', '\\\\');
    str = replaceAllEx(str, '\"', '\\\"');
    str = replaceAllEx(str, '/', '\\/');
    str = replaceAllEx(str, '\b', '\\b');
    str = replaceAllEx(str, '\f', '\\f');
    str = replaceAllEx(str, '\n', '\\n');
    str = replaceAllEx(str, '\r', '\\r');
    str = replaceAllEx(str, '\t', '\\t');
    str = replaceAllEx(str, '\'', '');
    var reg = '[。~!@#$%\^\+\*&\\\/\?\|:\.<>{}()\';="]';
    str.replace(reg,'');
    return str;
}
function encodeJson_News(str) {
    str = replaceAllEx(str, '\\', '\\\\');
    str = replaceAllEx(str, '\"', '\\\"');
    str = replaceAllEx(str, '/', '\\/');
    str = replaceAllEx(str, '\b', '\\b');
    str = replaceAllEx(str, '\f', '\\f');
    str = replaceAllEx(str, '\n', '\\n');
    str = replaceAllEx(str, '\r', '\\r');
    str = replaceAllEx(str, '\t', '\\t');
    var reg = '[。~!@#$%\^\+\*&\\\/\?\|:\.<>{}()\';="]';
    str.replace(reg, '');
    return str;
}
function encodeJson_Order(str) {
    str = replaceAllEx(str, '\\', '\\\\');
    str = replaceAllEx(str, '\"', '\\\"');
    str = replaceAllEx(str, '/', '\\/');
    str = replaceAllEx(str, '\b', '\\b');
    str = replaceAllEx(str, '\f', '\\f');
    str = replaceAllEx(str, '\n', '\\n');
    str = replaceAllEx(str, '\r', '\\r');
    str = replaceAllEx(str, '\t', '\\t');
    str = replaceAllEx(str, '\'', '\\\'');
    var reg = '[。~!@#$%\^\+\*&\\\/\?\|:\.<>{}()\';="]';
    str.replace(reg, '');
    return str;
}

function replaceAllEx(text, oldChar, newChar) {
    var index = text.indexOf(oldChar);

    var json = "";
    while (index != -1) {
        json = json + text.substring(0, index) + newChar;
        text = text.substring(index + 1, text.length);
        index = text.indexOf(oldChar);
    }
    json = json + text;
    return json;
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。