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 30th, 2020 at 04:07 pm
如果觉得我的文章对你有用,请随意赞赏