解决 Cannot read property ‘range‘ of null 错误的方案

NoSuchKey