阅读背景:

如何使用JavaScript + jQuery确保URL是图像?

来源:互联网 

In my web application, users can post text to a feed, and the text may include URL's. My code scans for URL's and replaces them which anchor tags pointed at the URL's. I want to change this so that my code can detect whether or not the URL points to an image, and if it does, render an image tag inside the anchor tag, instead of just the URL text.In my web application, users can post text to a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: