Uncaught TypeError: window.onload is not a function
找到报错原因是,onload后面多写了一个()
把那个括号删了window.onload=function(){