好奇怪的问题
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无标题页</title>
<script type="text/javascript">
function test()
{
var reBread = /b?rea?d/g;
alert(reBread.test("bread"));
alert(reBread.test("read"));
alert(reBread.test("red"));
}
</script>
</head>
<body onload="test()">
</body>
</html>
[此贴子已经被作者于2007-5-12 14:52:19编辑过]