无法设置或未定义null引用的属性innerHTML

innerHTML前面的对象是null或未定义。

el.innerHTML = 'test';

这里el可能是空。
原文地址:https://www.cnblogs.com/-6532418/p/5626709.html