A few days ago, I used setinterval to write a small program. I won’t explain what setinterval is used for.
The writing method can be used in other browsers. Later, colleagues in the test group took it to test it out and there was a problem. Because they love to use 360 and IE. I was puzzled within two days. I always had the parameters of the IE report method. Later, I reported that the method could not be found, and I finally found the problem!
But I really want to express my dissatisfaction strongly. The problem is that everyone copied too much online, which led to many errors after copying, such as
The code copy is as follows:
setInterval(QuoteList('parameter'),3000);
There is even
The code copy is as follows:
setInterval(QuoteList,3000,'parameter');
We have to mention the fault tolerance performance of major browsers, especially Firefox, Aoyou, etc. Such error scripts actually know that you are wrong, but you can understand what you mean, so there will be no mistake when running. But IE won't! ! It doesn't recognize it at all!
Because the correct way to write it is:
The code copy is as follows:
setInterval("QuoteList('parameter')",3000);
This problem has bothered me for several days, and I have always thought it was a browser compatibility issue!