- 博客(5)
- 收藏
- 关注
原创 react 中 事件函数写法与this 指向总结
react 中 事件函数写法与this 指向总结 **---个人学习总结,如果有写得不对的地方,欢迎大家指正**Class App extends Component{constructor(props){super(props);this.state = {username: ‘blue’,pwd: ‘kkk’}}render(){const { username, pwd } = this.state;return(<input value={user
2021-02-05 15:27:36
344
原创 react 配置less 及相关报错解决
react 配置less 及相关报错解决1、安装less 依赖npm install lessnpm add less-loader@5.0.0(注意安装的版本不宜过高,否则会报错)/* ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.options has an unknown
2021-01-19 15:21:03
381
原创 python-pptx使用
如何获取ppt内元素并返回给前端(采用的python的Django)1、下图是ppt文件的基本结构:2、获取ppt文件的整体流程:通过Prsentation(filePath);获取ppt对象遍历.slides,拿到一页ppt对象slide(slide_width,slide_height)遍历slide拿到内部的每个容器shape(shape.width、shape.height)遍历容器元素shape中的图片image和文本框text_frame通过shape.image.blob拿到
2021-01-16 12:09:07
563
1
原创 学习笔记---ES5数组小结
07 ES6 数组map 映射(遍历)只针对数组的遍历,可以return 有三个参数 .map((item,index,arry)=>{});下面介绍几种用法:遍历后 return 输出到页面let data = [{title: 'title1',price: '15'}, {title: 'title1',price: '16'}, {title: 'title1',price: '17'}, {title: '
2021-01-06 14:39:26
91
原创 JavaScript中this总结
js 中 this总结1、普通函数普通函数function(){};中this指向调用该函数的对象,如果没有调用的对象,默认绑定到window全局对象;(es6中,let const 声明的全局变量不再在Window对象下了)let test = "test";console.log(this.test);//undefiend对于this指向调用的对象,我比较喜欢这么理解,函数中的this的可以访问的作用域,就是该对象的内部作用域;普通函数中this的指向问题可以分为4类,函数不
2020-12-24 21:55:41
87
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人