上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 看到掘金上翻出一个老梗,前端如何不带脏字得骂产品经理傻逼(sb),复制(!(~+[]) + {})[--[~+""][+[]] * [~+[]] + ~~!+[]] + ({} + [])[[~!+[]] * ~+[]]到浏览器控制台回车,看到输出sb二字。 (1)原理很简单,就是取字符串里的字母进 阅读全文
posted @ 2018-11-06 11:58 Cynthia娆墨旧染 阅读(11466) 评论(1) 推荐(4) 编辑
摘要: (1)方法一:加上绿色注释,跳过webpack的css打包 (2)发放二: 1.找到配置文件/build/webpack.prod.conf.js文件,注释掉一下代码 2.在/build/utils.js文件里加上 minimize:true 阅读全文
posted @ 2018-10-18 14:17 Cynthia娆墨旧染 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*} 阅读全文
posted @ 2018-10-01 09:32 Cynthia娆墨旧染 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-09-06 13:49 Cynthia娆墨旧染 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 推荐地址:http://idea.lanyus.com/ 阅读全文
posted @ 2018-09-06 13:11 Cynthia娆墨旧染 阅读(3414) 评论(2) 推荐(0) 编辑
摘要: 场景:在应用程序里删除了原先的webstorm,然后从官网下载了新的安装包,进行安装。安装后,webstorm就再也打不开了。 解决方案:执行以下命令,清楚webstorm所有缓存,然后重新安装 以上命令可以使得webstorm远!离!卡!顿! 阅读全文
posted @ 2018-09-06 13:09 Cynthia娆墨旧染 阅读(5063) 评论(0) 推荐(1) 编辑
摘要: /** * @param {number[]} height * @return {number} */ var maxArea = function(height) { let maxarea = 0 for(let i=0;i=0; j--){ maxarea = Math.max(maxarea,Math.min(height[i],... 阅读全文
posted @ 2018-08-03 17:37 Cynthia娆墨旧染 阅读(196) 评论(0) 推荐(0) 编辑
摘要: git reset --soft xxxx // xxxx是版本号 回退 git stash //保留当前分支修改的代码 git checkout xxx //切换到xxx分支 git stash list // 查看stash的记录 git stash apply stash@{0} //恢复修改的代码 git log //例如 git log src/tes... 阅读全文
posted @ 2018-07-25 09:31 Cynthia娆墨旧染 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: 1.背景:原先node是官网下载安装的,通过brew更新了下,然后到项目里npm i 安装包时候,报错2.解决:卸载官网下载安装的node,重装 阅读全文
posted @ 2018-07-17 12:41 Cynthia娆墨旧染 阅读(4810) 评论(0) 推荐(0) 编辑
摘要: 1.查看当前电脑python版本 python -V // 显示2.7.x 2.用brew升级python brew upgrade python 3.如果安装成功,去系统目录下回看到两个版本的python cd usr/local/Cellar/ //到此目录下 cd python/ //进入py 阅读全文
posted @ 2018-07-13 10:22 Cynthia娆墨旧染 阅读(21327) 评论(0) 推荐(1) 编辑
摘要: 直接到根目录package.json里增加上面这行就行了,改成自己需要的地址。 阅读全文
posted @ 2018-07-06 12:28 Cynthia娆墨旧染 阅读(230) 评论(0) 推荐(1) 编辑
摘要: 一、先上官方文档 https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-preprocessor-sass-less-etc 二、 阅读全文
posted @ 2018-07-06 12:25 Cynthia娆墨旧染 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 可以用 beforeRouteLeave 和 updated 来判断。export default { 阅读全文
posted @ 2018-07-06 12:13 Cynthia娆墨旧染 阅读(1289) 评论(0) 推荐(0) 编辑
摘要: 备注:el-upload 的 getImageSuccess 方法 ,暂不支持其他参数,所以为了获取列表的index,可以通过以上方法,在el-upload外层套一个div获取index, 然后再在 getImageSuccess 方法内根据 index 对数据操作。 阅读全文
posted @ 2018-07-02 16:10 Cynthia娆墨旧染 阅读(2369) 评论(0) 推荐(0) 编辑
摘要: 参考: 阅读全文
posted @ 2018-06-20 16:19 Cynthia娆墨旧染 阅读(447) 评论(0) 推荐(1) 编辑
摘要: 解决:官方修复了这个bug.升级element-ui为2.3.5版本就好了 阅读全文
posted @ 2018-06-14 17:37 Cynthia娆墨旧染 阅读(868) 评论(0) 推荐(0) 编辑
摘要: (1)插件名:DB browser preferences -> plugin -> 搜索 DB browser (2)在view里勾上 Tool Buttons,左侧会显示插件快捷入口 (3)连接数据库 。里面提供了以下几种类型的数据库。选择其中一种,我选择的是mysql (5)连上以后,随意打开 阅读全文
posted @ 2018-06-12 14:39 Cynthia娆墨旧染 阅读(6293) 评论(2) 推荐(0) 编辑
摘要: 1.找到 webpack.prod.conf.js ,搜索 UglifyJsPlugin,添加配置 阅读全文
posted @ 2018-04-27 11:02 Cynthia娆墨旧染 阅读(1196) 评论(0) 推荐(0) 编辑
摘要: 1.点开preferences 2.搜索找到“File Types” 3.找到"HTML",点击“+”按钮,添加“*.wxml”然后“apply” 4.和3一样,再找到 ‘cascading style sheet’,添加“*.wxss”,然后“apply” 5.完成3和4步骤。这时候你的小程序代码 阅读全文
posted @ 2018-04-03 13:25 Cynthia娆墨旧染 阅读(3561) 评论(0) 推荐(1) 编辑
摘要: 0.设置自己的host文件,将127.0.0.1指向自己想要访问的域名 1.MAC设置应用在127.0.0.1:80端口访问: config/index.js目录下修改host和port 然后sudo运行npm run dev:(mac的80端口是被自身分享应用占用的,使用的话需要root权限) 运 阅读全文
posted @ 2018-03-19 15:54 Cynthia娆墨旧染 阅读(6354) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页