TypeError: Cannot read properties of undefined (reading 'trim')

 运行时提示:TypeError: Cannot read properties of undefined (reading 'trim')

问题排查:

1、确认trim()属性是否存在,这个是js 去除字符串左右空格,属性是存在的

2、确认this.form.proxy_url是否存在

3、确认确认this.form.proxy_url的值是否为undefined和null

通过排查和打印,console.log(this.form.proxy_url)的值为undefined

解决:

 

posted @ 2024-05-05 13:30  萱娃  阅读(291)  评论(0编辑  收藏  举报