substr
vendor.js? [sm]:5621 [Vue warn]: Error in render: "TypeError: Cannot read property 'substr' of undefined"
意思是说substr未定义,其实是字符串未作为空的判断
源码:
<text>{{'*'+userInfo.uname.substr(1)}}</text><br>
<text>{{userInfo.uphone.substr(0,3)+
原创
2022-04-04 13:59:03 ·
997 阅读 ·
0 评论