求大神给我解释下count++在这里的含义
</head>
<body>
<script type="text/javascript">
/*
* param1 Array
* param2 Array
* return true or false
*/
function arraysSimilar(arr1, arr2){
var count = 0;
if ((Object.prototype.toString.call(arr1) === '[object Array]') && (Object.prototype.toString.call(arr2) === '[object Array]')){
if (arr1.length === arr2.length){
for(var i=0;i<arr1.length;i++){
for(var j=0;j<arr2.length;j++){
if (Object.prototype.toString.call(arr1[i]) === Object.prototype.toString.call(arr2[j])){
count ++;
}
}
}
if (count === arr1.length){
return true;
}
}
}
return false;
}
</script>
<script src="testData.js"></script>
</body>
</html>