前端js程序 一个地方报错 就全挂了,这个大家怎么处理?
phpcn_u275
phpcn_u275 2017-03-24 15:49:14
0
2
1114

vue以及jquery的前端程序,如果有一个地方从后来上来的数据解析报错了,整个程序就挂了 该如何处理。

phpcn_u275
phpcn_u275

reply all(2)
数据分析师

The front-end js program crashes when an error is reported in one place. How do you deal with this? -PHP Chinese website Q&A-The front-end js program crashes when an error is reported in one place. How do you deal with this? -PHP Chinese website Q&A

Let’s take a look and learn.

阿神

写多个JS文件,一个JS文件挂了,另外一个是不会挂的。    然后多用try catch。

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!