我有一个字符串(不在我的文档中),例如
<img src="http://www.blogcdn.com/www.engadget.com/media/2013/10/bear-extender- samsungativ_thumbnail.jpg"> Freedom is a wonderful thing and the folks at BearExtender want Microsoft users to enjoy more of it. Its new 1,200mW USB WiFi booster for PCs finally caught up with the Mac version, which extends WiFi range up to four times more than usual. One lucky reader will get to savor this new found freedom ...<div>
我想去掉字符串中第一个图像的来源。我知道我可以通过使用 jquery 来做到这一点:
String.find('img').first().attr('src');
我怎样才能在没有 jquery 的情况下实现同样的目标?