Herald.js (在MIT许可下发布)演示: :具有插件支持的通知生成系统。 new Herald(message[, type[, options]]); new Herald(message[, options]); new Herald(options);示例用法: var error = new Herald("Error, something went wrong!", "error"); error.tell();或者您可以使用第三个“选项”参数自定义Herald : var error = new Herald("Error, something went wrong!", "error", { ttitle: "Whoops!", ttime: 3000, // will fade out after 3 seconds tstyle: