网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
@model string
<div class="blog-container">
    <blockquote class="layui-elem-quote sitemap layui-breadcrumb shadow">
        <a href="/" title="网站首页" data-pjax>网站首页</a>
        <a><cite></cite>曲库</a>
    </blockquote>

    <textarea placeholder="y.qq.com cookie" style="width: 100%;" class="layui-textarea" id="qq-cookie">@Model</textarea>
    <button id="set-cookie" type="button" class="layui-btn" style="display: none">重设Cookie</button>
</div>
<script>
    $(function () {
        $("#qq-cookie").change(function () {
            $("#set-cookie").show();
        });
        $("#set-cookie").click(function () {
            let $qqCookie = $("#qq-cookie");
            $qqCookie.attr({ "disabled": "disabled", "readonly": "readonly" });
            $(this).attr("disabled", "disabled").addClass("layui-btn-disabled").text("正在提交...");
            $.ajax({ url: "/Music/SetCookie", type: "post", data: { cookies: $qqCookie.val() } }).done(function (result) {
                alert(result.msg);
            }).always(function () {
                $("#set-cookie").removeAttr("disabled").removeClass("layui-btn-disabled").text("重设Cookie").hide();
                $qqCookie.removeAttr("$qqCookie").removeAttr("readonly");
            });
        });
    });
</script>

loading