n;

        var pagePatten = $("#pagePatten").val();

        if (pagePatten.length > 0) {
            crawlRule.pagePatten = pagePatten;
        }

        var totalPagePatten = $("#totalPagePatten").val();

        if (totalPagePatten.length > 0) {
            crawlRule.totalPagePatten = totalPagePatten;
        }

        var bookDetailUrl = $("#bookDetailUrl").val();

        if (bookDetailUrl.length == 0) {
            layer.alert("详情页URL规则必填");
            return false;
        }

      