标准错误消息

发布于 2024-09-03 19:23:12 字数 75 浏览 17 评论 0原文

很多时候我们必须编写标准消息来向用户展示。它可以是错误或警告消息,无论如何。

有人在某个地方看到过包含此类消息的网站吗?

Very often we have to make up standard messages to show user. It can be an error or a warning message, whatever.

Has anybody seen somewhere a site with such messages?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

洛阳烟雨空心柳 2024-09-10 19:23:12

您不应该标准化错误消息,实际上您应该尝试使它们独一无二。这意味着您的用户可以更轻松地通过 Google 搜索它们,并且您的支持台可以在与用户通过电话交谈时确保错误消息实际上来自您的应用程序

You should not standardise error messages, indeed you should attempt to make them unique. That means they are much more easily searchable via Google for your users, and your support desk can be sure the error message is actually coming from your application when talking to users on the phone

流星番茄 2024-09-10 19:23:12

嗯,从 UI 的角度来看,标准化错误消息设计并不是一件坏事……例如,Blueprint、Jquery UI 和 YUI 等几个 UI 工具包都有标准的错误和消息样式定义。然后,调用错误只是调用带有“错误”或“消息”类的 div 来正确格式化标准错误消息的外观和感觉,无论您试图传达什么消息。定义错误 div 的布局可确保用户熟悉错误报告机制并理解其预期消息。例如,我认为地球上的每个用户都熟悉蓝屏死机或Windows用来传达消息的那些烦人的对话框。

以下是 Blueprint 中的一个样式示例:
http://www.blueprintcss.org/tests/parts/forms.html

我喜欢 Blueprint 选择根据意图对消息进行颜色编码,例如错误、通知、成功与标准交通灯颜色类比。无论应用程序如何定制,任何用户都会感到熟悉。

Well, from a UI standpoint, standardizing an error message design is not a bad thing.....For example, several UI toolkits such as Blueprint, Jquery UI, and YUI have standard error and message style definitions. Then, calling errors is simply a matter of calling a div with class "error" or "message" to properly format a standard error message look and feel on whatever message you're trying to convey. Having this layout for error divs defined ensures that the user becomes familiar with the error reporting mechanism and will understand their intended message. For example, I think every user on earth is familiar with the blue screen of death or those annoying dialogs that Windows uses to convey messages.

Here's one style example from Blueprint:
http://www.blueprintcss.org/tests/parts/forms.html

I like the fact that Blueprint chose to color code the messages based on intent, such as error, notice, success with the standard traffic light color analogies. No matter how custom the app, it will feel familiar to any user.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文