阅读背景:

在不使用服务器端语言的情况下抓取状态代码(也许是javascript?)

来源:互联网 

I've created a service that helps with error pages in web apps via an snippet of code that is copy/pasted in to the error page templates (a la Google Analytics). The status code is set to a hidden input within the installation code. The problem is that I don't want the installation code to be dependent on a server-side language (e.g. PHP, Ruby) - but the app could really, really use a dynamic method of collecting the status code in the http request without having hard coded status codes and, therefore, a necessity for separate installation codes for each error page (although, we're really only looking at 500s & 404s; but one option is too many, as far as I'm concerned). I've created a service that helps with error pa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: