开发者

how to terminate execution of the current class?

开发者 https://www.devze.com 2023-03-21 01:17 出处:网络
I am trying to embed data from external resources. For each website that I have api access, I created a specific-Class to do the data fetching.

I am trying to embed data from external resources.

For each website that I have api access, I created a specific-Class to do the data fetching.

The rest of websites will use one general-Class.

So, at the very begining开发者_开发知识库 of the general-Class, if a URL pattern matches any of the URL that I already coded in the specific-Class, I want to exit the general-class immedietly.

How can I do it?


I would suggest using some intermediate step to intercept URLs and then include/use the class or not as required.

0

精彩评论

暂无评论...
验证码 换一张
取 消