会员
众包
新闻
博问
闪存
赞助商
Trae
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
douglasvegas
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
17
下一页
2017年8月1日
http和https的区别
摘要: 概念和区别 超文本传输协议HTTP协议被用于在Web浏览器和网站服务器之间传递信息。HTTP协议以明文方式发送内容,不提供任何方式的数据加密,如果攻击者截取了Web浏览器和网站服务器之间的传输报文,就可以直接读懂其中的信息,因此HTTP协议不适合传输一些敏感信息,比如信用卡号、密码等。 为了解决HT
阅读全文
posted @ 2017-08-01 22:51 douglasvegas
阅读(215)
评论(0)
推荐(0)
2017年7月21日
Type 'MongooseDocument' has no properties in common with type 'MongooseDocumentOptionals'
摘要: 错误原因:安装的mongoose type检查的版本不对。 之前想当然的安装 dt~mongoose ,但是一直报错。 通过 typings search mongoose 可以发现最底下的mongoose/v3最新更新。 因此安装v3版本,再run一下,果然成功! 命令:
阅读全文
posted @ 2017-07-21 17:11 douglasvegas
阅读(760)
评论(0)
推荐(0)
在ts中使用require
摘要: 问题: require statement is not part of import statement 正确姿势:
阅读全文
posted @ 2017-07-21 11:56 douglasvegas
阅读(14638)
评论(0)
推荐(2)
mongodb无法启动问题
摘要: 问题: xception in initAndListen: 98 Unable to create/open lock file: /data/db/mongod.lock 解决方法: $ sudo mkdir p /data/db/ $ sudo chown /data/db ```
阅读全文
posted @ 2017-07-21 09:47 douglasvegas
阅读(224)
评论(0)
推荐(0)
2017年7月14日
js中event问题
摘要: ``` document.onclink=function(ev) { var oEvent=ev||event; //兼容IE和FireFox Chrome 只要一个为真就可以执行 alert(oEvent.clientX); }; ```
阅读全文
posted @ 2017-07-14 15:17 douglasvegas
阅读(160)
评论(0)
推荐(0)
2017年7月12日
typescript: error TS2693: 'Promise' only refers to a type, but is being used as a value here
摘要: 将ts配置文件中 "target": "es2015"
阅读全文
posted @ 2017-07-12 13:11 douglasvegas
阅读(9059)
评论(0)
推荐(0)
vscode快速建立html模版
摘要: 1.首先在第一行输入! 2.然后将光标移动到!后 3.按下tab键 4.完成
阅读全文
posted @ 2017-07-12 12:45 douglasvegas
阅读(843)
评论(0)
推荐(0)
2017年7月11日
Nodejs中的exports 和 module.exports
摘要: 译自 "http://www.hacksparrow.com/node js exports vs module exports.html" Nodejs中的exports和module.exports有什么区别? 你肯定对nodejs中的 概念有所了解,如下在nodejs的模块中创建函数(假设有个
阅读全文
posted @ 2017-07-11 17:31 douglasvegas
阅读(216)
评论(0)
推荐(0)
2017年7月7日
AJAX报错.net无效的JSON基元
摘要: 正确姿势添加如下解析JSON data传值换成JSON.stringify(data)
阅读全文
posted @ 2017-07-07 18:06 douglasvegas
阅读(1367)
评论(0)
推荐(0)
2017年7月4日
ReactNative模拟器突然不能快捷刷新
摘要: 依次打开 快捷键
阅读全文
posted @ 2017-07-04 16:57 douglasvegas
阅读(575)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
17
下一页
公告