03 2020 档案

摘要:react为我们提供了两种获取value的方法 第一种:非受控方法获取 import React,{Component} from 'react' export default class system extends Component{ constructor(props){ super(pro 阅读全文
posted @ 2020-03-31 10:00 龙卷风吹毁停车场 阅读(1799) 评论(0) 推荐(0)
摘要:来看示例 我在Login自定义组件中引入了自定义组件system import React, { Component } from 'react'; import SYSTEM from './system' export default class Login extends Component{ 阅读全文
posted @ 2020-03-30 18:03 龙卷风吹毁停车场 阅读(592) 评论(0) 推荐(0)
摘要:首先我们先来看下面这个示例: html部分 <el-input ref="label" v-show="showLabel" v-model="ruleForm.label" @blur="btnBlur()" maxlength="5" show-word-limit ></el-input> < 阅读全文
posted @ 2020-03-30 16:11 龙卷风吹毁停车场 阅读(918) 评论(0) 推荐(0)
摘要:父组件内 import React, { Component } from 'react'; import SYSTEM from './system' export default class Login extends Component{ constructor(props){ super(p 阅读全文
posted @ 2020-03-27 09:33 龙卷风吹毁停车场 阅读(895) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-26 15:21 龙卷风吹毁停车场 阅读(2721) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-26 15:15 龙卷风吹毁停车场 阅读(2667) 评论(3) 推荐(0)
摘要:子组件的写法 父组件的写法 阅读全文
posted @ 2020-03-26 15:07 龙卷风吹毁停车场 阅读(203) 评论(0) 推荐(0)
摘要:父组件的写法 子组件怎么接收了,如下 阅读全文
posted @ 2020-03-26 15:01 龙卷风吹毁停车场 阅读(335) 评论(0) 推荐(0)
摘要:使用组件之前我们先创建组件,在src文件下随便新建一个xxxxx .js的文件 然后再index.js里面引入该组件 阅读全文
posted @ 2020-03-26 14:52 龙卷风吹毁停车场 阅读(147) 评论(0) 推荐(0)
摘要:第一步:全局安装create-react-app cnpm i -g create-react-app 第二步:创建项目 create-react-app my_react my_react是项目名字 第三步:启动项目 cd my_react cnpm start 使用准备 删除src文件下的所有文 阅读全文
posted @ 2020-03-26 14:21 龙卷风吹毁停车场 阅读(190) 评论(0) 推荐(0)
摘要:本以为使用getUserMedia调取摄像头之后,它自己会打开摄像头的拍照权限,但是结果令人失望,在查询了各种资料后发现h5+app开发文档有一个调取摄像头扫码的api(官方链接:https://www.html5plus.org/doc/zh_cn/barcode.html#plus.barcod 阅读全文
posted @ 2020-03-19 16:40 龙卷风吹毁停车场 阅读(3874) 评论(0) 推荐(0)
摘要:原文地址:https://blog.csdn.net/yxh1157686920/article/details/90240332// 扩展API加载完毕后调用onPlusReady回调函数 document.addEventListener("plusready", onPlusReady, fa 阅读全文
posted @ 2020-03-19 14:03 龙卷风吹毁停车场 阅读(517) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-16 22:49 龙卷风吹毁停车场 阅读(615) 评论(0) 推荐(0)
摘要:亲测有用 <template> <div id="app"> <video id="video" autoplay></video> <canvas id='canvas' width='500' height='500' style="border:1px solid #ccc"></canvas 阅读全文
posted @ 2020-03-09 09:30 龙卷风吹毁停车场 阅读(964) 评论(0) 推荐(0)
摘要:先来看度过动画,和效果吧 注意:在页面中慎用:position:absolute; 会导致无法返回到上次浏览位置 使用:include需要设置name属性 在需要缓存的页面添加如下代码,还有上面的name属性 scrollY 在data里面定义 scrollY:0,这点我就偷个懒 activated 阅读全文
posted @ 2020-03-09 09:22 龙卷风吹毁停车场 阅读(905) 评论(0) 推荐(0)
摘要:图片效果 红色部门效果是向下滑出,和向上滑入 html部分 <div class="viewhistory-buttom animate_active" :style="editBtnShow==1?'bottom:0;':''"> //editBtnShow默认不能为1(就是不显示),为1就滑出来 阅读全文
posted @ 2020-03-06 17:46 龙卷风吹毁停车场 阅读(3644) 评论(0) 推荐(0)