js识别半角字符的正则表达式

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
 </HEAD>

 <BODY>
 <script   language=javascript>
     alert(/^[\x00-\xff]*$/.test("ee"))
 </script>
 </BODY>
</HTML>

posted @ 2013-08-23 13:58  alaricblog  阅读(217)  评论(0编辑  收藏  举报