当前位置:网站首页>Error in render: "typeerror: cannot read properties of undefined (reading 'length')" --- error when calling interface
Error in render: "typeerror: cannot read properties of undefined (reading 'length')" --- error when calling interface
2022-07-26 10:01:00 【Coexistence source of beauty and strength】
Question why
The level is too deep
<view class="input head-img">
<text> Head portrait </text>
<image :src="person.headerImg" />
</view>
messageRequest() {
message().then(res => {
console.log(res.data);
// ( Step on the pit )Error in render: “TypeError: Cannot read properties of undefined (reading ‘length‘)“
// If the level is too deep, an error will be reported -- Pay attention to template The layer should not be too deep --- You can define multiple layers here
this.person = res.data.userInfo;
console.log(this.person);
});
}
resolvent
// ( Step on the pit )Error in render: “TypeError: Cannot read properties of undefined (reading ‘length‘)“
// If the level is too deep, an error will be reported – Pay attention to template The layer should not be too deep —
You can define multiple layers here
边栏推荐
- [MySQL database] a collection of basic MySQL operations - the basis of seeing (adding, deleting, modifying, and querying)
- Uniapp "no mobile phone or simulator detected, please try again later" and uniapp custom components and communication
- WARNING: [pool www] server reached pm. max_ children setting (5), consider raising it
- Wechat H5 payment on WAP, for non wechat browsers
- Netease cloud UI imitation -- & gt; sidebar
- Tableviewcell highly adaptive
- I finished watching this video on my knees at station B
- Modern medicine in the era of "Internet +"
- PHP executes shell script
- 阿里云技术专家郝晨栋:云上可观测能力——问题的发现与定位实践
猜你喜欢
Wechat applet learning notes 1
Meeting OA project (III) -- my meeting (meeting seating and submission for approval)
点赞,《新程序员》电子书限时免费领啦!
Gauss elimination
The diagram of user login verification process is well written!
Mqtt x cli officially released: powerful and easy-to-use mqtt 5.0 command line tool
开发转测试:从0开始的6年自动化之路...
面试突击68:为什么 TCP 需要 3 次握手?
Docker configuring MySQL Cluster
Gauss elimination solves the inverse of matrix (Gauss)
随机推荐
【Datawhale】【机器学习】糖尿病遗传风险检测挑战赛
编写一个在bash / shell 和 PowerShell中均可运行的脚本
R language ggpubr package ggsummarystats function visualizes the grouping box diagram (custom grouping color) and adds the statistical values corresponding to the grouping under the x-axis label (samp
Fuzzy PID control of motor speed
30分钟彻底弄懂 synchronized 锁升级过程
A new paradigm of distributed deep learning programming: Global tensor
解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.
WARNING: [pool www] server reached pm. max_ children setting (5), consider raising it
AirTest
Uni app learning summary
Basic usage of protobuf
Production of a-modal drag function in antui
云原生(三十六) | Kubernetes篇之Harbor入门和安装
[datawhale] [machine learning] Diabetes genetic risk detection challenge
Matlab Simulink realizes fuzzy PID control of time-delay temperature control system of central air conditioning
Installation and use of cocoapods
Docker configuring MySQL Cluster
Apple dominates, Samsung revives, and domestic mobile phones fail in the high-end market
Sqoop【付诸实践 02】Sqoop1最新版 全库导入 + 数据过滤 + 字段类型支持 说明及举例代码(query参数及字段类型强制转换)
Interview shock 68: why does TCP need three handshakes?