开发者

how to terminate execution of the current class?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜