最贊回答 / Astrogladiator
你可以去看下nodemon的文檔https://www.npmjs.com/package/grunt-concurrent 把 app.js移到script屬性里nodemon: { dev: { script: 'app.js', options: { args: [], ignoredFiles: ['README.md','node_modules/**','.DS_Store'], watchedExtensions: ['js'], watche...
2017-06-24
最新回答 / 正在睡覺
錯誤原因好像是這個:( ? ? ? ? ? ? ? ? ? ?還是不知道怎么解決~Error: Can't set headers after they are sent.? ? at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:357:11)? ? at ServerResponse.header (D:\Hexin\Fro...
2017-06-07
最新回答 / 慕粉1422019587
<...圖片...>看又出現(xiàn) 棄用警告,,,DeprecationWarning: Mongoose: mpromise (mongoose's default promise library ) is deprecated, plug in your own promise library instead:?http://mogoosejs.com/docs/promises.html 貌似出現(xiàn)這個警告后就會額外加載index.js.map
2017-06-02
最新回答 / 西涼小將
說詳細點啊哥們,一般存入數(shù)據(jù)庫的時候都有判斷,如果存在了,就會反饋一個錯誤信息給前臺用戶,讓用戶知道這個名字已經(jīng)注冊了。、。。。
2017-05-17
已采納回答 / shsgear
不能因為有了模態(tài)框你就不要最基本的交互。你沒發(fā)現(xiàn)現(xiàn)在的網(wǎng)站(豆瓣,百度,新浪)都有專門的注冊登錄頁嗎?注冊登錄表單集成在復(fù)雜的主頁面會使主頁面更加臃腫,我們做的網(wǎng)站簡單,而且用的框架bootstrap剛好有模態(tài)框,很方便用戶直接注冊登錄,但是哪天你(你老板)決定不用bootstrap了,是不是還是要自己再去臨時寫一個登錄頁面?每個上線的網(wǎng)站都要做對應(yīng)的登錄注冊頁面,第一是保證最基礎(chǔ)的要求,第二同時展現(xiàn)網(wǎng)站特色(slogan,圖片,特效),不能撿芝麻丟西瓜。
2017-05-08
最贊回答 / shsgear
為此寫了篇文章,記錄下,有問題的同學(xué)可以來討論討論:我的csdn博客<...code...><...code...>理想狀態(tài):文件上傳和文本域同屬一個表單,并且表單設(shè)置enctype='multipart/form-data'在savePoster里,...
2017-05-07
已采納回答 / shsgear
1.npm install grunt-mocha-test --save-dev2.gruntFile里<...code...><...code...><...code...>3.grunt test
2017-05-06