简体   繁体   中英

How to hide console error messages in Angular JS?

How to hide console error messages in Angular JS? My web apps is works, no bug!!!! but it has a lot of error message in console.

thanks

Update: I just fix my bug, but this bug can't fix.............anyidea...THX 在此处输入图片说明

It looks like most of the errors you show in your screenshot stem from the same issue - namely, attempting to call .length on an object that does not exist.

If you expect the object to not exist sometimes, then you should fix the source of that error with something like:

if (object.length) { ... do something with .length property ... }

Errors should not be ignored! They're our only window into understanding when our programs are not behaving as we intend.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM