ngth == 0) {
            layer.alert("小说目录页的目录ID正则表达式必填");
            return false;
        }

        crawlRule.indexIdPatten = indexIdPatten;

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

        if (indexNamePatten.length == 0) {
            layer.alert("小说目录页的目录名正则表达式必填");
            return false;
        }

        crawlRule.indexNamePatten = indexNamePatten;

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

       