Git Product home page Git Product logo

web-demos's People

Contributors

fandean avatar

Watchers

 avatar

web-demos's Issues

Bootstrap下拉式菜单失效

在项目node.js>blog项目中,在未将Bootstrap的导航栏作为layout时,是可以正常使用下拉菜单的;但是一旦将其放入layout.html文件中作为模板使用时,点击下拉菜单无效。

Can't set headers after they are sent.

当在主页和admin之间多次跳转时出现下面的错误:

_http_outgoing.js:356
    throw new Error('Can\'t set headers after they are sent.');
    ^

Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:356:11)
    at ServerResponse.header (/home/fan/workspace/web-demos/node.js/blog/node_modules/express/lib/response.js:767:10)
    at ServerResponse.send (/home/fan/workspace/web-demos/node.js/blog/node_modules/express/lib/response.js:170:12)
    at done (/home/fan/workspace/web-demos/node.js/blog/node_modules/express/lib/response.js:1004:10)
    at /home/fan/workspace/web-demos/node.js/blog/node_modules/swig/lib/swig.js:565:9
    at /home/fan/workspace/web-demos/node.js/blog/node_modules/swig/lib/swig.js:690:9
    at tryToString (fs.js:455:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)

“Can’t set headers after they are sent.” => “不能发送headers因为已经发送过一次了”

mongoose DeprecationWarning

两个 DeprecationWarning

(node:19829) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client
数据库连接成功
(node:19829) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.