js = ==

There is a judgment in JS that the
incoming type
type can be a, b, c. The
code is as follows:
function fun(type)
{
  if(type=="a"){}
  else if(type=="b"){}
  else if(type=="c"){}
}

It was found that no matter how the type was passed, it finally became b
and debugged again. Check that
type=="b" was written as type="b",
which caused the type to be directly assigned...
OMG
is a small symbol, remember this

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326946577&siteId=291194637
js