js中出现错误:无法设置未定义或 null 引用的属性"onfocus" 时,首先检查body和script的位置,应将script放在body之中或body之后。 script放在body之前,出现错误 script放在body之中,不出现错误 script放在body之后,不出现错误