会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hdq用心微笑
博客园
首页
新随笔
新文章
联系
管理
订阅
2019年4月4日
想啥写啥
摘要: 问题:javascript 由什么组成: ECMAScript / DOM / BOMjavascript 原始类型: string number boolean null undefined object demo: '11',11,true , null , undefined, let obj
阅读全文
posted @ 2019-04-04 15:14 hdq用心微笑
阅读(306)
评论(0)
推荐(0)
2019年2月18日
react canvas圆环动态百分比
摘要: import React from 'react'; import Tools from '../../tools/index' export default class PercentageRing extends React.Component { constructor(props){ sup
阅读全文
posted @ 2019-02-18 15:51 hdq用心微笑
阅读(825)
评论(0)
推荐(0)
2019年2月13日
面向对象编程
摘要: 1.什么是面向对象编程 2.面向对象编程的作用及好处 3.面向对象过程 4.面向对象 面向对象编程:是一种编程设计思想,简称OOP;把具有公共的事务抽象成属性和方法来进行代码编程。 例如:人可以看成一个对象,年龄,身高,体重,行为:跑步,走路,开车 在ES6中看成一个类。 面向对象编程的作用及好处:
阅读全文
posted @ 2019-02-13 15:36 hdq用心微笑
阅读(164)
评论(0)
推荐(0)
2019年2月12日
react球形文字旋转标签
摘要: /* * 球形文字旋转标签模块 * */ import React, {Component, PropTypes} from "react"; import ReactDOM from "react-dom"; class TagCloud extends Component { construct
阅读全文
posted @ 2019-02-12 15:44 hdq用心微笑
阅读(336)
评论(0)
推荐(0)
2019年1月25日
ES5原型琏继承
摘要: function add(){};add.prototype.showName = "MAN";add.prototype.name = function(){ console.log(this.showName);}new add().name(); var cat = {};Object.get
阅读全文
posted @ 2019-01-25 14:21 hdq用心微笑
阅读(154)
评论(0)
推荐(0)
自己封装方法
摘要: var arr = [1,2,3,34]; arr.each = function(array,fn){ for(let i=0;i<array.length;i++){ fn(array[i]) } } arr.each(arr,function(v){ console.log(v) })
阅读全文
posted @ 2019-01-25 14:19 hdq用心微笑
阅读(135)
评论(0)
推荐(0)
js简单封装样式
摘要: document.querySelectorAll('#id').style.color = 'red';document.querySelectorAll('#id').style.fontSize = '12px';document.querySelectorAll('#id').style.b
阅读全文
posted @ 2019-01-25 14:17 hdq用心微笑
阅读(167)
评论(0)
推荐(0)
--save-dev --save 的区别
摘要: --save 是发布会还在使用 --save-dev 是在开发中需要用到的 --save 依赖的文件在denpendencis下 --save-dev 依赖的文件都在dvedependencis下
阅读全文
posted @ 2019-01-25 14:01 hdq用心微笑
阅读(187)
评论(0)
推荐(0)
封装一个时间百分比多个数比较
摘要: wanterFun = (times)=>{ //时间:百分比 let warterMap = { 6:8, 8:22, 10:34, 12:57, 14:66, 16:85, 18:90, 20:95, 22:100, } if(times<6){ return 0; }else{ return
阅读全文
posted @ 2019-01-25 13:48 hdq用心微笑
阅读(223)
评论(0)
推荐(0)
react 入坑之罪
摘要: componentDidMount :生命周期在react下只调用一次, render:比它先执行 componentWillRecvieProps(newProps) :能取到父组件的值 render(){ return } 下需要返回,不然报错 父组件传值 父组件:index render(){
阅读全文
posted @ 2019-01-25 13:45 hdq用心微笑
阅读(88)
评论(0)
推荐(0)
下一页
公告