Home > front end >  Consult! Window in the js. Err==function () {} what do you mean
Consult! Window in the js. Err==function () {} what do you mean

Time:10-03

Window in the js. Err==function what do you mean what do you mean, and onm ouseover a mean? Why use==double equals?????? Pray god help me answer the???????

CodePudding user response:

Window. The code is really err==function () {}?
The==comparison operator, is a window. The err function with a newly created empty anonymous function () {} are equal, (note that is newly created,

In js functions, arrays, objects are by reference address comparison,
Even if Windows. Err is an empty anonymous function function () {} with the newly created this empty anonymous function function () {} is not equal,
Because the two reference address is different, is not the same function,

Unless the window. The value is a string of err "function () {}",
"Function () {}" and the function () {} comparison function () {} will be converted to "function () {}" to compare,
Into two strings "function () {}" and "function () {}", result can be true,

  • Related