会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JackieDYH
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
72
73
74
75
76
77
78
79
80
···
98
下一页
2020年6月30日
React的生命周期的三个阶段 挂载、渲染、卸载
摘要: 1. 挂载卸载过程 1.1.constructor() 1.2.componentWillMount() 1.3.componentDidMount() 1.4.componentWillUnmount () 2. 更新过程 2.1. componentWillReceiveProps (nextP
阅读全文
posted @ 2020-06-30 17:32 JackieDYH
阅读(52)
评论(0)
推荐(0)
2020年6月29日
React-使用中报错处理ERROR
摘要: React常见错误 ①Uncaught SyntaxError: Inline Babel script: Adjacent JSX elements must be wrapped in an enclosing tag 虚拟DOM中只能有一个根标签 ②Warning: Invalid DOM p
阅读全文
posted @ 2020-06-29 22:34 JackieDYH
阅读(41)
评论(0)
推荐(0)
在React中使用Bootstrap
摘要: 可以在react项目中执行以下命令安装bootstrap npm install bootstrap@3 --save 在使用的时候,直接在index.js文件导入即可 import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/
阅读全文
posted @ 2020-06-29 21:41 JackieDYH
阅读(11)
评论(0)
推荐(0)
React+Bootstrap中实现用户信息收集功能-简单版本
摘要: import React, { Component } from 'react'; import './App.css'; export default class Home extends Component { state = { isidx: -1, empty: true, user: {
阅读全文
posted @ 2020-06-29 21:37 JackieDYH
阅读(12)
评论(0)
推荐(0)
2020年6月28日
vue项目中事项显示秒杀倒计时效果-限定开始和结束时间
摘要: 页面结构 <!-- 限时秒杀 --> <div class="left"> <p class="txt1">限时秒杀</p> <p class="txt2">{{ !seckill.title ? '每天零点场 好货秒不停' : seckill.title }}</p> <div v-if="sec
阅读全文
posted @ 2020-06-28 23:45 JackieDYH
阅读(24)
评论(0)
推荐(0)
vue-移动端购物车滑动事件-左滑删除-mintUI
摘要: 购物车左滑事件 goods.startx = 0;//滑动 goods.endx = 0;//结束 goods.isshow = false;//显示隐藏 标签中添加滑动事件 <div :class="{list:true,activeleft:item.isshow}" v-for="(item,
阅读全文
posted @ 2020-06-28 23:04 JackieDYH
阅读(58)
评论(0)
推荐(0)
2020年6月27日
mintUI MessageBox confirm弹框确认和取消按钮的使用-回调
摘要: 注意:需要使用then和catch进行捕获 MessageBox.confirm("", { message: "你确定删除吗?", title: "警告" }).then(action => { if (action == "confirm") { console.log(1); this.$ht
阅读全文
posted @ 2020-06-27 13:35 JackieDYH
阅读(25)
评论(0)
推荐(0)
2020年6月25日
使用vue/cli4+版本快速搭建项目结构
摘要: @vue/cli 前言 如果下载速度慢,可以设置淘宝镜像-国内速度杠杠滴 npm config set registry "https://registry.npm.taobao.org" 1、升级本地环境 卸载旧版本 安装新版本脚手架 卸载全局安装旧版本 npm uninstall -g vue-
阅读全文
posted @ 2020-06-25 20:26 JackieDYH
阅读(7)
评论(0)
推荐(0)
2020年6月24日
Vue在Element-ui项目中如何使用Iconfont(阿里图标库)
摘要: 我们使用element-ui、vue开发网站的时候,往往图标是起着很重要的作用。 下面是vue、element-ui项目,如何使用阿里iconfont图标库的方法。 点击紫色按钮创建项目 image.png 图中画红线的地方很重要 1)、FontClass/Symbol前缀这个很重要,一定不要写成:
阅读全文
posted @ 2020-06-24 17:39 JackieDYH
阅读(223)
评论(0)
推荐(0)
2020年6月22日
vuex中数据持久化插件vuex-persistedstate使用
摘要: vuex是在中大型项目中必不可少的状态管理组件,刷新会重新更新状态,但是有时候我们并不希望如此。例如全局相关的,如登录状态、token、以及一些不常更新的状态等,我们更希望能够固化到本地,减少无用的接口访问,以及更佳的用户体验。 安装起步 npm i vuex-persistedstate --sa
阅读全文
posted @ 2020-06-22 16:59 JackieDYH
阅读(67)
评论(0)
推荐(0)
上一页
1
···
72
73
74
75
76
77
78
79
80
···
98
下一页
公告