each temp function _temp _temp id id _temp file file _temp name name _

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
$.each(temp, function (i, v) {
_temp += "{";
_temp += "id: " + v.id + ", ";
_temp += "file: " + v.file + ", ";
_temp += "name: " + v.name + ", ";
_temp += "in: " + v.in;
_temp += "}, ";
});
$.each(oFile2, function (i, v) {
_oFile2 += "{";
_oFile2 += "id: " + v.id + ", ";
_oFile2 += "file: " + v.file + ", ";
_oFile2 += "name: " + v.name + ", ";
_oFile2 += "in: " + v.in;
_oFile2 += "}, ";
});
if (_temp != _oFile2) {
//do smthng
}