Home  >  Q&A  >  body text

前端js程序 一个地方报错 就全挂了,这个大家怎么处理?

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

phpcn_u275phpcn_u2752737 days ago1076

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-10-01 01:05:51

    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.

    reply
    0
  • 阿神

    阿神2017-03-24 15:49:39

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

    reply
    0
  • Cancelreply