zhiqinyigu

Results 5 comments of zhiqinyigu

@leaves4j 哈喽,可以抽空看一下这个问题发个版吗?

就是同一些笔记标记,在电脑没问题,其它手机没测,只是在我的ios9出现。 这个应该是设备原因, TextNode.getSelectNodeRectAndText取得的rect.width又可能为0(多出来的数据),导致的。 ![image](https://user-images.githubusercontent.com/2899031/109768072-67b4a380-7c33-11eb-9300-252e196e52a0.png) ![image](https://user-images.githubusercontent.com/2899031/109768086-6d11ee00-7c33-11eb-9912-59d7f489ca89.png)

**step 1: 这里是createLine,现在肉眼分析可知e[2]或e[3]为空时会报错** ![image](https://user-images.githubusercontent.com/2899031/109771819-3db1b000-7c38-11eb-9c1b-e45c5760c44b.png) **step 2: 这里在createLine的上游提前输出一些信息** ![image](https://user-images.githubusercontent.com/2899031/109772052-80738800-7c38-11eb-8966-8cb1c7555115.png) **step 3: 请求我们项目的笔记数据后调用highlightLines。** ![image](https://user-images.githubusercontent.com/2899031/109772407-e7913c80-7c38-11eb-8574-bfd22e23a73d.png) **step 4: iPhone 6s(IOS9)下有报错,我们看看points和relativeRects** ![image](https://user-images.githubusercontent.com/2899031/109772507-08f22880-7c39-11eb-9298-f1fe5910d5a4.png) ![image](https://user-images.githubusercontent.com/2899031/109772731-51114b00-7c39-11eb-8fec-7b9ac8d736ff.png) **step 5: PC下没有报错,我们看看points和relativeRects,比iPhone 6s(IOS9)少一项多余的** ![image](https://user-images.githubusercontent.com/2899031/109772930-8ddd4200-7c39-11eb-8e50-b06ca83c546b.png)

@leaves4j 看看我要怎么协助你 😂,这个是跟设备关联的,不是代码的问题。计算points那部分的代码我没有深入看。