WebSite/Scripts/JS/install.js

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

$(function () {
    $("input[l]").keyup(function () {
        var l = parseInt($(this).attr("l"));
        var str = $(this).val();
        if (str.length > l) {
            $(this).val(str.substring(0, l));
        }
    });
    $("textarea[l]").keyup(function () {
        var l = parseInt($(this).attr("l"));
        var str = $(this).val();
        if (str.length > l) {
            $(this).val(str.substring(0, l));
        }
    });
    $('[data-toggle="popover"]').popover();
    $(".btn-prev").click(function () {
        $("#myCarousel").carousel('prev');
        $(".wizard-steps li[f=" + $(this).attr("f") + "]").removeClass("complete");
        $(".wizard-steps li[p=" + $(this).attr("f") + "]").removeClass("active");
    });
    $(".btn-next").click(function () {
        if ($(this).attr("id") == "step2next") {
            var f = $(this).attr("f");
            $('#fmLink').validation();
            var alm = $(".popover");
            if (alm.length > 0) {
                return;
            }
            $(".popover ").remove();
            if (!LinkCheck()) {
                return;
            }
            var l = layer.load("正在生成数据库,请稍等...");
            $.post("Handlers/Guid.aspx?Method=TestLink", $('#fmLink').serialize(), function (data, status) {
                if (status == "success") {
                    layer.close(l);
                    if (data == "success") {
                        layer.msg("数据库创建成功!", 2, 1);
                        $("#myCarousel").carousel('next');
                        $(".wizard-steps li[f=" + f + "]").addClass("complete");
                        $(".wizard-steps li[p=" + f + "]").addClass("active");
                    }
                    else if (data == "exsits") {
                        var dataname = $("#dataname").val();
                        layer.confirm("已经存在名称为'" + dataname + "'的数据库,是否进行覆盖?", function () {
                            layer.load("正在覆盖数据库,请稍后...");
                            $.ajax({
                                type: "post",
                                url: "Handlers/Guid.aspx?Method=Cover",
                                cache: false,
                                data: $('#fmLink').serialize(),
                                success: function (data) {
                                    if (data == "success") {
                                        layer.msg("数据库创建成功!", 2, 1);
                                        $("#myCarousel").carousel('next');
                                        $(".wizard-steps li[f=" + f + "]").addClass("complete");
                                        $(".wizard-steps li[p=" + f + "]").addClass("active");
                                    }
                                    else {
后面还有 174 行代码,购买后查看完整代码

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

AI 解读 AI

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

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