摘要: 在 chrome dev tools 中,通过 Application -> Cookies 可以查看 cookie。 其中有一列表头为`HTTP`,如果其下打勾了,则表明 httpOnly。 所谓 httpOnly,只能被服务端获取,而不能通过 Javascript 访问(document.coo 阅读全文
posted @ 2018-06-20 02:14 死宅程序员 阅读(589) 评论(0) 推荐(0)
摘要: > antd 的组件样式(主题)是支持定制的,它的样式实现是基于 less。官方的订制手册参看 https://github.com/ant-design/ant-design/blob/master/docs/react/customize-theme.zh-CN.md 具体操作时,你还会想要了解 阅读全文
posted @ 2018-04-10 22:49 死宅程序员 阅读(6443) 评论(0) 推荐(0)
摘要: http://v.youku.com/v_show/id_XNzM4NTU0MjQ4.html?f=28697585&o=1 1.1.1 Linux系统简介-UNIX发展历史和发行版本http://v.youku.com/v_show/id_XNzM4ODUyMzY0.html?f=28697585 阅读全文
posted @ 2018-03-25 23:30 死宅程序员 阅读(906) 评论(0) 推荐(0)
摘要: VS Code 中的 Smarty 扩展: https://github.com/imperez/vscode-smarty 目前(v0.2.0)不支持定制定界符。可以通过 trick 的方式篡改。 参考:https://github.com/imperez/vscode-smarty/issues 阅读全文
posted @ 2018-03-13 17:49 死宅程序员 阅读(1175) 评论(0) 推荐(0)
摘要: node 从 v8.5.0起 支持了 ES6 module。 只需保存文件名为 .mjs ,并通过一个option 可以开启执行,如 node --experimental-modules index.mjs 但是,在 npm cli 中如何开启呢? 辗转反侧,通过 shebang 能够达到目的, 阅读全文
posted @ 2018-02-28 15:24 死宅程序员 阅读(2168) 评论(0) 推荐(0)
摘要: 通过命令编辑缓存的路径配置: npm config edit 内如如: 指定到系统盘之外的路径,如 d: 盘;然后将原来目录中已缓存的内如剪切过来~ Notice(2019.3.15): 截图中路径含有空格,可能会有风险,可通过如下拼写避免: cache=d:\progra~1\npm-cache 阅读全文
posted @ 2017-06-25 13:15 死宅程序员 阅读(845) 评论(0) 推荐(0)
摘要: 1.让你的粘贴保留原有缩进 Preferences -> Key Binding 中新增: [ , { "keys": ["ctrl+v"], "command": "paste_and_indent"}] 2. fis3 周边插件,在右键菜单增加几个快捷打开 CMD 的命令,详见: http:// 阅读全文
posted @ 2017-06-07 12:01 死宅程序员 阅读(257) 评论(0) 推荐(0)
摘要: 背景:在迁移项目从 Vue1.x 到 Vue2.x 时,改动没有过脑子,导致翻车。 阅读全文
posted @ 2017-06-01 12:13 死宅程序员 阅读(12552) 评论(3) 推荐(1)
摘要: 使用 webpack 编译 Vue 项目时出现报错: index.js:13 Uncaught TypeError: Cannot read property 'split' of undefined 定位错误到事发代码行: version = Vue.version.split('.').map( 阅读全文
posted @ 2017-05-11 14:14 死宅程序员 阅读(1430) 评论(0) 推荐(0)
摘要: 很多人不了解 Chrome Dev Tools (开发者工具)的使用方法和技巧。 其中很多技能,无论是前端开发从业者,还是普通用户,了解一些还是对日常很有帮助的。 本猿定期录制、甚至根据您的需求来订制一些小短片,帮助您掌握开发技巧。 适用人群: 计算机爱好者、web 前端开发入门者、物联网有前端技术 阅读全文
posted @ 2017-04-23 22:40 死宅程序员 阅读(2282) 评论(0) 推荐(0)