05 2017 档案

摘要:有时候想在chrome console使用jq,那么下面这段代码就可以完美解决问题了。 注意:有可能会与网页其他库造成冲突。 阅读全文
posted @ 2017-05-07 10:50 WinjayYu 阅读(190) 评论(0) 推荐(0) 编辑
摘要:在chrome console输入console.log(0.7 + 0.1),你猜会得到什么结果?会输出0.7999999999999999,所以如果你进行这样的判断console.log(0.7 + 0.1 0.8),那么结果并不能如愿,会输出 false。 为什么会这样呢?引用知乎里面的一段回 阅读全文
posted @ 2017-05-07 10:45 WinjayYu 阅读(584) 评论(0) 推荐(0) 编辑
摘要:Object.create builds an object that inherits directly from the one passed as its first argument. With constructor functions, the newly created object 阅读全文
posted @ 2017-05-05 15:56 WinjayYu 阅读(157) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示