会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你像一只失宠猫
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
2021年3月3日
vue设置国际化
摘要: mian.js(入口文件) import Vue from 'vue' import Vuex from 'vuex' import store from './store' import router from './router' import VueI18n from 'vue-i18n' V
阅读全文
posted @ 2021-03-03 10:28 氧化成风
阅读(168)
评论(0)
推荐(0)
2020年12月30日
git 使用命令提交文件
摘要: git statusgit add .git commit --no-verify -m ""git push origin develop
阅读全文
posted @ 2020-12-30 09:00 氧化成风
阅读(92)
评论(0)
推荐(0)
2020年11月23日
jquery 读取本地json文件数据
摘要: window.onload = function () { $.ajax({ //请求方式为get type:"GET", //json文件位置 url:"js/index.json", //返回数据格式为json dataType: "json", //请求成功完成后要执行的方法 success:
阅读全文
posted @ 2020-11-23 14:23 氧化成风
阅读(1249)
评论(0)
推荐(0)
2020年11月20日
mpvue 封装api请求接口
摘要: app.jsconst sendURL = 'https://www.easy-mock.com/mock/5b22ddc53d00c06fbd8e1f74/zpin' const ERR_OK = 200 const request = (url, data = {}, method = 'GET
阅读全文
posted @ 2020-11-20 16:45 氧化成风
阅读(371)
评论(0)
推荐(0)
mpvue 创建小程序项目
摘要:
阅读全文
posted @ 2020-11-20 10:09 氧化成风
阅读(43)
评论(0)
推荐(0)
2020年11月3日
react context
摘要: 写一个切换页面主题的demo App.js import ThemeContext from './theme-context' import ThemeBar from './component/ThemeBar' const theme = { light: { className: 'btn
阅读全文
posted @ 2020-11-03 19:39 氧化成风
阅读(79)
评论(0)
推荐(0)
2020年10月31日
react 组件传递
摘要: 状态提升:当两个以上组件使用同一个数据时,将数据提升到父组件中 数据流向: 父组件传递到子组件中 CommentList.js import React from 'react' const CommentList = ({comments})=>{ return( <div className="
阅读全文
posted @ 2020-10-31 17:05 氧化成风
阅读(98)
评论(0)
推荐(0)
react 表单
摘要: 受控组件:import React from 'react'; class CommentBox extends React.Component{ constructor(props){ super(props) this.state = { value: '' } this.handleChang
阅读全文
posted @ 2020-10-31 10:29 氧化成风
阅读(67)
评论(0)
推荐(0)
2020年10月30日
react 生命周期
摘要: 初始化 componentDidMount 更新 componentDidUpdate 销毁 componentWillUnmount 电子时钟: class Clock extends React.Component{ constructor(props){ super(props) this.s
阅读全文
posted @ 2020-10-30 17:15 氧化成风
阅读(69)
评论(0)
推荐(0)
react 点赞
摘要: import React from 'react'; class Likes extends React.Component{ constructor(props){ super(props) this.state = { likes: 0 } // this.increaseLikes = thi
阅读全文
posted @ 2020-10-30 16:58 氧化成风
阅读(198)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
公告