摘要: step1. 在根目录下创建paths.json { "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["src/*"] } } } step2. 在tsconfig.json 中加上 "extends": "./paths.json" 阅读全文
posted @ 2021-11-16 16:42 monica_guorong 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 普通函数的this 总是指向调用者, 箭头函数是对象定义者。如果有对象嵌套的情况,则this绑定到最近的一层对象上 阅读全文
posted @ 2019-04-08 14:25 monica_guorong 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Number.prototype.formatMoney = function (places, symbol, thousand, decimal) { places = !isNaN(places = Math.abs(places)) ? places : 2; symbol = symbol 阅读全文
posted @ 2018-12-27 15:28 monica_guorong 阅读(102) 评论(0) 推荐(0) 编辑
摘要: /^(\-?[1-9]\d{0,14}|0|\-?[1-9]\d{0,11}.\d{2})((\.\d{1,2})?)$/.test( value.toFixed(2) ) /^(\-?[1-9]\d{0,14}|0|\-?[1-9]\d{0,11}.\d{2})((\.\d{1,2})?)$/.t 阅读全文
posted @ 2018-12-27 14:14 monica_guorong 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 经过上一章的环境搭建,接下里在本篇文章中去学习官网的一个例子。 TodoList ;代办项的demo 效果如图 因为redux的state的是可以预测的。 思路如下: 1.demo中所涉及的数据(state)的管理 就是 Todolist 和 visibilityFilter 2.理解下redux的 阅读全文
posted @ 2018-09-05 10:32 monica_guorong 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 最近在学习react,redux 已经redux在react使用。 首先 要使用webpack去搭建环境 1.建立目录目里 public index.html //存在容器的根节点 src actions //redux的action components //redux的components co 阅读全文
posted @ 2018-08-28 16:00 monica_guorong 阅读(165) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/cemaster/p/5996537.html (转载) 阅读全文
posted @ 2018-08-24 15:42 monica_guorong 阅读(100) 评论(0) 推荐(0) 编辑
摘要: "build": "webpack --mode production ./src/index.js --output ./dist/bundle.js" "dev": "webpack --mode development ./src/index.js --output ./dist/bundle 阅读全文
posted @ 2018-08-07 12:00 monica_guorong 阅读(2315) 评论(0) 推荐(0) 编辑
摘要: Please upload excel files You can only upload Excel files, and not more than 10M upload cancel ... 阅读全文
posted @ 2018-07-25 14:51 monica_guorong 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 之前一直在看到招聘的要求理解 restFull风格, 今天在网上看了看, REST:REpresentational State Transfer 百度了 REpresentational 下:代表性的,具象派的; State:状态 Transfer:传输 Rest 是一种软件架构、架构样式 而且都 阅读全文
posted @ 2018-02-27 15:58 monica_guorong 阅读(640) 评论(0) 推荐(0) 编辑