摘要: 1.属性名是拼接的或者表达式 es5: es6: 2. 替换空格 str.replace(/^\s*|\s$/g, '') // 替换字符串两端的空格 str.replace(/\s*/g, '') // 替换字符串的所有空格 阅读全文
posted @ 2018-11-04 11:04 槑蕊 阅读(81) 评论(0) 推荐(0)
摘要: // a.js // main.js 两种方法 以下这种方法只能访问默认方法 阅读全文
posted @ 2018-06-28 09:58 槑蕊 阅读(144) 评论(0) 推荐(0)
摘要: vue vuex vue-router axios babel 链接 babel-cli babel-core babel-polyfill babel-preset-env babel-plugin-transform-runtime && babel-runtime babylon Babylo 阅读全文
posted @ 2018-06-15 16:55 槑蕊 阅读(49) 评论(0) 推荐(0)
摘要: https://javascript.info/bezier-curve 自定义字体图标:https://icomoon.io/app/#/select 阅读全文
posted @ 2018-05-28 13:56 槑蕊 阅读(73) 评论(0) 推荐(0)
摘要: 1. node后端res给web服务端的内容乱码(中文),处理方法 2. 阅读全文
posted @ 2018-05-28 13:54 槑蕊 阅读(63) 评论(0) 推荐(0)
摘要: 闭包就是存在于一个A方法内部的B方法,和A方法的内部变量同级 比如: function a(){ var str="11"; function b(){ return str; } } // b()方法就是闭包 但是闭包会在方法中持久的占用内存,所有要视情况使用。 阅读全文
posted @ 2016-06-17 10:02 槑蕊 阅读(119) 评论(0) 推荐(0)
摘要: 链接:http://www.w3cfuns.com/notes/17398/b95c07ed545cb18cef438a480456c94f.html 阅读全文
posted @ 2016-04-29 09:46 槑蕊 阅读(92) 评论(0) 推荐(0)
摘要: for bootstrap框架. 阅读全文
posted @ 2016-04-20 16:35 槑蕊 阅读(164) 评论(0) 推荐(0)
摘要: <head lang="en"> <meta charset="UTF-8"> <!-- 优先使用 IE 最新版本和 Chrome --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <!-- 为移动设备添加 vie 阅读全文
posted @ 2016-04-20 16:11 槑蕊 阅读(244) 评论(0) 推荐(0)
摘要: css: body { background-color: #193c6d; filter: progid: DXImageTransform.Microsoft.gradient(gradientType=1, startColorstr='#003073', endColorstr='#0297 阅读全文
posted @ 2016-04-12 16:43 槑蕊 阅读(378) 评论(0) 推荐(0)