Always read the property 'icon of undefined
TypeError: always read the property 'icon of undefined
At the Object. Success (http://127.0.0.1:57488/appservice/make_fangchan/index/index.js:27:38)
At http://127.0.0.1:57488/appservice/we7/resource/js/util.js:121:69
Ats Function. I. & lt; Computed> (http://127.0.0.1:57488/appservice/__dev__/WAService.js:2:1878127)
The at & lt; The API request success callback function>
At http://127.0.0.1:57488/appservice/__dev__/WAService.js:2:121816
At A (http://127.0.0.1:57488/appservice/__dev__/WAService.js:2:602617)
Ats Function. & lt; anonymous> (http://127.0.0.1:57488/appservice/__dev__/WAService.js:2:801621)
The at & lt; NetworkRequest1success callback function>
At http://127.0.0.1:57488/appservice/__dev__/WAService.js:2:121816
At http://127.0.0.1:57488/appservice/__dev__/WAService.js:2:763611
The console. The error @ VM22:1
ErrorReport @ VM29 WAService. Js: 2
ThirdErrorReport @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
H @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
A @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
H @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
The value @ VM29 WAService. Js: 2
R @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
O @ VM26 asdebug. Js: 1
(anonymous) @ VM26 asdebug. Js: 1
T.e MIT @ VM26 asdebug. Js: 1
The callback @ VM26 asdebug. Js: 1
(anonymous) @ VM26 asdebug. Js: 1
H @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
SetTimeout (async)
SetTimeout @ VM29 WAService. Js: 2
A @ VM26 asdebug. Js: 1
T @ VM26 asdebug. Js: 1
E.o nreadystatechange @ VM26 asdebug. Js: 1
XMLHttpRequest. Send (async)
_ @ VM26 asdebug. Js: 1
CreateRequestTask @ VM26 asdebug. Js: 1
O @ VM26 asdebug. Js: 1
Invoke @ VM29 WAService. Js: 2
2 c @ VM29 WAService. Js:
(anonymous) @ VM29 WAService. Js: 2
O @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
P @ VM29 WAService. Js: 2
2 c @ VM29 WAService. Js:
(anonymous) @ VM29 WAService. Js: 2
N @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
P. & lt; Computed> @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
S @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
Util. Request @ util. Js? [sm] : 88
The setup @ index. Js? 16 [sm] :
OnLoad @ index. Js? 47 [sm] :
(anonymous) @ VM29 WAService. Js: 2
P. __callPageLifeTime__ @ VM29 WAService. Js: 2
Jt @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
Mt @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
Appropriate precautions MIT @ VM29 WAService. Js: 2
Emit @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
Appropriate precautions MIT @ VM29 WAService. Js: 2
Emit @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
(anonymous) @ VM29 WAService. Js: 2
O @ VM26 asdebug. Js: 1
(anonymous) @ VM26 asdebug. Js: 1
(anonymous) @ VM26 asdebug. Js: 1
. _ws onmessage @ VM26 asdebug. Js: 1
Show 37 more frames
CodePudding user response:
This is not prompt you lack icon attribute check your codeCodePudding user response:
Obviously your icon is not statement or you used and not a statement, then, when you use this variable is a must, so will result in an errorCodePudding user response:
Use to judge the if (obj. HasOwnProperty (" icon ")) {... }