Closed
Bug 484933
Opened 16 years ago
Closed 16 years ago
Got different result when I run the same js function twice.
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: craigz, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7
<script type="text/javascript">
function tclose(){
if (notContainSpace('111 111')){
alert('no space!');
}
}
function notContainSpace(regValue) {
var reg=/\s+/g;
return ! reg.test(regValue);
}
</script>
run tclose() twice on a page, you will get different result.
Reproducible: Always
Why did you set the classic keyword?
You need to log in
before you can comment on or make changes to this bug.
Description
•