Express4中文文档
以下方法名称已复数。在 Express 4 中,使用旧方法会导致弃用警告。Express 5 根本不再支持它们:
req.acceptsCharset() 被 req.acceptsCharsets() 取代。
req.acceptsCharset()
req.acceptsCharsets()
req.acceptsEncoding() 被 req.acceptsEncodings() 取代。
req.acceptsEncoding()
req.acceptsEncodings()
req.acceptsLanguage() 被 req.acceptsLanguages() 取代。
req.acceptsLanguage()
req.acceptsLanguages()