上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: 原文链接: https://savokiss.com/tech/vuejs-remote-template.html see: forum 阅读全文
posted @ 2017-06-25 20:14 savokiss 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 原理很简单,就是判断 ua 中是否有字段 “micromessenger" 代码如下: 阅读全文
posted @ 2017-06-25 20:08 savokiss 阅读(1311) 评论(0) 推荐(0) 编辑
摘要: 只能绑定到顶级Data 阅读全文
posted @ 2017-06-13 20:26 savokiss 阅读(1705) 评论(0) 推荐(0) 编辑
摘要: 指令中独立scope 的 & 官方说明: 1. 绑定表达式 2. 经常用来绑定回调函数 诡异的地方在于,这个 & 某次听人说在子组件中是不能传值给callback的,好奇查了一下官方文档,更加诡异了: We saw earlier how to use =attr in the scope opti 阅读全文
posted @ 2017-05-11 16:37 savokiss 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1. 配置 yum 新建 /etc/yum.repos.d/mongodb-org-3.4.repo 文件,使用以下配置:(适用于 MongoDB 3.0 以后版本) 2. 安装 MongoDB 3. 启动 MongoDB 官方文档: https://docs.mongodb.com/manual/ 阅读全文
posted @ 2017-04-24 17:30 savokiss 阅读(185) 评论(0) 推荐(0) 编辑
摘要: bind可以解决两种问题: 1. 可以改变一个函数的 this 指向 2. 可以实现偏函数等高阶功能 本文暂且讨论第一个功能 USE CASE 简易版实现方式 参考链接:https://www.smashingmagazine.com/2014/01/understanding-javascript 阅读全文
posted @ 2017-04-21 13:57 savokiss 阅读(143) 评论(0) 推荐(0) 编辑
摘要: document.write 的执行分两种情况: 第一种:dom加载已完成 1. 执行 document.open() (即会清空document) 2. 执行 document.write() 3. 执行 document.close() 看例子 一秒后整个document会清除,包括script 阅读全文
posted @ 2017-04-05 21:51 savokiss 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 假设有如下代码结构,想要查找 Piggy 那个 p 使用 nth-child 是不正确的: 使用 nth-of-type 是正确的 : 即: nth-child 用人话讲: 1. 查找某个p元素 2. 这个元素是它父级节点的第二个元素 nth-of-type 用人话讲: 1. 查找所有p元素中第二个 阅读全文
posted @ 2017-04-05 11:02 savokiss 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 一行命令搞定: 第一次输入用户名和密码提交,第二次就不需要了 参考: https://help.github.com/articles/caching-your-github-password-in-git/ 阅读全文
posted @ 2017-03-26 13:34 savokiss 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 其中红色的那句可以保证 post 等请求不会出现301 阅读全文
posted @ 2017-02-27 17:26 savokiss 阅读(3075) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页