原因是:onload不能执行带参的函数。 解决办法:增加一函数带参数,避免带参数。 转载于:https://www.cnblogs.com/nine71104/archive/2012/05/21/2511185.html