Uncaught TypeError: Cannot read property 'trim' of undefined
摘要:
可以这样写,有值的时候trim,没值的时候为空 let user = this.state.name.trim() || ''; 阅读全文
posted @ 2018-07-02 16:35 luziluck 阅读(4575) 评论(0) 推荐(0)
posted @ 2018-07-02 16:35 luziluck 阅读(4575) 评论(0) 推荐(0)