随笔- 226
文章- 15
评论- 15
阅读-
22万
12 2017 档案
import { Subject } from 'rxjs/Subject';
摘要:shared-service.ts Now inject the instance of the above service in the constructor of both the parent and child component. The child component will be
阅读全文
applicationCache
摘要:<html manifest="/m.appcache"> window.applicationCache.onupdateready = function (e) { location.reload();} CACHE MANIFEST #version 2017-02-01.012CACHE:
阅读全文
mongo
摘要:mongod.exe --bind_ip yourIPadress --logpath "C:\data\dbConf\mongodb.log" --logappend --dbpath "C:\data\db" --port yourPortNumber --serviceName "YourSe
阅读全文
Mongodb更新数组$sort操作符
摘要:db.students.update( { _id: 1 }, { $push: { quizzes: { $each: [ { id: 3, score: 8 }, { id: 4, score: 7 }, { id: 5, score: 6 } ], $sort: { score: 1 } }
阅读全文
Mongodb更新数组$pull修饰符
摘要:http://blog.csdn.net/yaomingyang/article/details/78701643 http://blog.csdn.net/yaomingyang/article/details/78701643 一、$pull修饰符会删除掉数组中符合条件的元素,使用的格式是: [
阅读全文
使用forever运行nodejs应用
摘要:使用forever运行nodejs应用 何为forever forever可以看做是一个nodejs的守护进程,能够启动,停止,重启我们的app应用。 官方的说明是说: A simple CLI tool for ensuring that a given script runs continuou
阅读全文
worker
摘要:<script id="worker" type="app/worker"> addEventListener('message', function(d) { console.log(d) // postMessage('Work done!'); }, false); function time
阅读全文
2 区别:
摘要:2 区别: 1)块级元素会独占一行,其宽度自动填满其父元素宽度 行内元素不会独占一行,相邻的行内元素会排列在同一行里,知道一行排不下,才会换行,其宽度随元素的内容 而变化 2) 块级元素可以设置 width, height属性,行内元素设置width, height无效 【注意:块级元素即使设置了宽
阅读全文