VUE错误码Attribute ':sizeOpts' must be hyphenated

摘要: Attribute ':sizeOpts' must be hyphenated 因为属性有大写,需要添加 - 来取代 例如 tampData 换成 tamp-data 就可以了 阅读全文
posted @ 2019-04-03 16:56 忘忧很努力呀~ 阅读(7040) 评论(0) 推荐(0) 编辑

前端开发-日常开发沉淀之git提交文件忽略

摘要: .gitignore文件里添加需忽略的文件,或需要提交的文件 阅读全文
posted @ 2019-01-28 20:26 忘忧很努力呀~ 阅读(1094) 评论(0) 推荐(0) 编辑

前端开发-日常开发沉淀之生产环境与开发环境

摘要: 获取浏览器: window.location.protocol 获取请求地址:window.location.host, 项目开发实际用途:var hostServer = window.location.protocol + '//' + window.location.host;就可以实现代码部 阅读全文
posted @ 2019-01-28 16:24 忘忧很努力呀~ 阅读(740) 评论(0) 推荐(0) 编辑

开发技巧-解决打开谷歌浏览器跳转问题

摘要: 首先地址栏输入: chrome://settings/或者chrome://settings/searchEngines 添加搜索引擎图中的设置值:google.com g http://www.google.com/search?q=%s 然后设置为默认搜索引擎就行了 阅读全文
posted @ 2019-01-27 15:47 忘忧很努力呀~ 阅读(3141) 评论(0) 推荐(0) 编辑

前端调试-跨域解决方式

摘要: chrome使用插件:Allow-Control-Allow-Origin chrome修改配置: windows: mac: open -a "Google Chrome" --args --disable-web-security --user-data-dir 阅读全文
posted @ 2019-01-27 14:51 忘忧很努力呀~ 阅读(766) 评论(0) 推荐(0) 编辑

postman自动化,测试脚本

摘要: //获取当前时间的时间戳 function getTimestamp(len=10) { // 如果需要自动获取则将此处代码放开 // var tmp = Date.parse( new Date() ).toString(); // tmp = tmp.substr(0,len); //return tmp; return '1546571642' } //时间戳换算时间 ... 阅读全文
posted @ 2019-01-11 20:20 忘忧很努力呀~ 阅读(862) 评论(0) 推荐(0) 编辑

自动化脚本测试,postman使用沉淀

摘要: // 服务器地址 var server = 'XXXXXXXXXXXX'; //秘钥Key var secretKey = 'XXXXXXXXXXXX'; //获取当前时间 function createTime() { return (new Date()).valueOf(); } // 当前时间 var time = createTime(); //提交方式 var method = r... 阅读全文
posted @ 2019-01-11 20:19 忘忧很努力呀~ 阅读(757) 评论(0) 推荐(0) 编辑

HMAC-SHA256 签名方法各个语音的实现方式之前端JavaScriptes6

摘要: 腾讯云接口鉴权 v3签名 import HmacSHA256 from 'crypto-js/hmac-sha256' import Hex from 'crypto-js/enc-Hex'; import HmacSHA256 from 'crypto-js/hmac-sha256' import 阅读全文
posted @ 2018-12-26 20:45 忘忧很努力呀~ 阅读(6869) 评论(1) 推荐(0) 编辑

React中redux表单编辑

摘要: reduxForm中反写数据在输入框中,数据是从别的模块拉取 // 编辑应用表单 class EditCode extends React.Component { constructor(props) { super(props) } // 取消编辑 handleBack=()=>{ window. 阅读全文
posted @ 2018-12-20 23:09 忘忧很努力呀~ 阅读(223) 评论(0) 推荐(0) 编辑

日期时间戳互相转换

摘要: /** * 日期格式化 * 时间戳转换日期 * @param Number time 时间戳 * @param String format 格式 */ export const dateFormat = (time, format = 'Y-M-D H:I:S') => { try { const 阅读全文
posted @ 2018-12-20 23:00 忘忧很努力呀~ 阅读(881) 评论(0) 推荐(0) 编辑