jQuery控制台日志到文件 [英] JQuery console log to file

查看:427
本文介绍了jQuery控制台日志到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一个不错的jQuery插件,它将控制台错误记录到文件中,以便我可以跟踪用户遇到的任何错误.

I'm trying to find a good jQuery plugin that will log console errors to a file so I can track any errors users are experiencing.

有什么想法吗?

推荐答案

您唯一的选择是放置一个将信息AJAX到您的服务器的函数,然后将其写入本地服务器上的文件中. jQuery本身不会神奇地将文件写入服务器.

Your only option is to put in place a function that would AJAX the info to your server, where you would then write it to a file on your local server. jQuery itself won't magically write files to your server.

这篇关于jQuery控制台日志到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆