HarmonyOS 鸿蒙Next:Property 'decodeToString' does not exist on type 'TextDecoder'
HarmonyOS 鸿蒙Next:Property ‘decodeToString’ does not exist on type ‘TextDecoder’
调用`textDecoder.decodeToString`找不到`decodeToString`方法 环境:api 12
![1.png](https://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/454/162/677/2850086000454162677.20241107145809.98196256592772791855224054873260:50001231000000:2800:72469D2EFE175FAD7127B02C3E0870EAC9105165CDE4E56F3A292FF0D7E5AA8F.png)
![2.png](https://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/454/162/677/2850086000454162677.20241107145823.16183532132421367258483863487532:50001231000000:2800:2E4BA9FC8FE4FB9A74651A842503DDF61797FD1D4E040ACB98207CB6EE0C8BAA.png)
![3.png](https://alliance-communityfile-drcn.dbankcdn.com/FileServer/getFile/cmtybbs/454/162/677/2850086000454162677.20241107145838.00922745609579694710563056154373:50001231000000:2800:75A5C6985FF02986A12FE77967E508C871466DB732ADC2DB12B0BE4A3C4E4297.png)
更多关于HarmonyOS 鸿蒙Next:Property 'decodeToString' does not exist on type 'TextDecoder'的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
4 回复
贴主知道问题原因了么,我也有一样的问题,是不是版本的原因?
更多关于HarmonyOS 鸿蒙Next:Property 'decodeToString' does not exist on type 'TextDecoder'的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
文档里decodeToString方法的入参是2个,你只填了一个入参,应该是没找到一个入参对应的方法