Uncaught TypeError: Cannot read property 'indexOf' of null
使用indexOf()的变量为null。
1、使用indexOf()之前,先判断使用indexOf()的变量是否为null。
2、检查使用indexOf()的变量为什么会为null。