源程序:
<!DOCTYPE html PUBLIC "<html xmlns="
<head>
<title>查找一段文字中指定文字出現的次數</title>
<mce:script type="text/javascript"><!
window
{
var str="早上起床
var find="遲到";
alert(str
}
//
</head>
<body>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20320.html