我在画廊中有这些链接:
<div id="mygallery">
<ul>
<li><a href="http://farm9.staticflickr.com/8484/824625656895_5e5645636c50d_s.jpg">image 1</a></li>
<li><a href="http://farm9.staticflickr.com/8684/824625654348_5e5546fdcc50d_s.jpg">image 2</a></li>
<li><a href="http://farm9.staticflickr.com/8474/824623123897_f53s3afs6c50d_s.jpg">image 3</a></li>
<li><a href="http://farm9.staticflickr.com/8984/824625656856_5asdfet656655_s.jpg">image 4</a></li>
</ul>
</div>
如何从它们中删除“_s”?所以我最终得到
<div id="mygallery">
<ul>
<li><a href="http://farm9.staticflickr.com/8484/824625656895_5e5645636c50d.jpg">image 1</a></li>
<li><a href="http://farm9.staticflickr.com/8684/824625654348_5e5546fdcc50d.jpg">image 2</a></li>
<li><a href="http://farm9.staticflickr.com/8474/824623123897_f53s3afs6c50d.jpg">image 3</a></li>
<li><a href="http://farm9.staticflickr.com/8984/824625656856_5asdfet656655.jpg">image 4</a></li>
</ul>
</div>