QQ:877600684
<script language="JavaScript"> var a="abc.jpg"; function test(file_name){ var result =/\.[^\.]+/.exec(file_name); return result; } var b=test(a); alert(b); </script>