var url = 
        var urls = ["a", "b","c","d"];
        var isRequest = false;
        try {
            urls.forEach(function (value) {
                if (url.indexOf(value) >= 0) {
                    isRequest = true;
                    throw new Error("end");
                }
            });
        } catch(e) {}
        if (isRequest) {
            //TODO 
        }
Last modification:December 30, 2020
如果觉得我的文章对你有用,请随意赞赏