700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 微信小程序报错:Cannot read property ‘toString‘ of undefined at Yw.fillText

微信小程序报错:Cannot read property ‘toString‘ of undefined at Yw.fillText

时间:2020-05-11 22:47:01

相关推荐

微信小程序报错:Cannot read property ‘toString‘ of undefined at Yw.fillText

报错如图:

原因:fillText括号里面第一个参数是字符串形式(填充的文本),虽然txt打印出来的是字符串格式但是还是报错 加上txt=txt+""这行代码即可(隐式转换)

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。