上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: 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)
摘要: git statusgit add .git commit --no-verify -m ""git push origin develop 阅读全文
posted @ 2020-12-30 09:00 氧化成风 阅读(92) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 阅读全文
posted @ 2020-11-20 10:09 氧化成风 阅读(43) 评论(0) 推荐(0)
摘要: 写一个切换页面主题的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)
摘要: 状态提升:当两个以上组件使用同一个数据时,将数据提升到父组件中 数据流向: 父组件传递到子组件中 CommentList.js import React from 'react' const CommentList = ({comments})=>{ return( <div className=" 阅读全文
posted @ 2020-10-31 17:05 氧化成风 阅读(98) 评论(0) 推荐(0)
摘要: 受控组件: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)
摘要: 初始化 componentDidMount 更新 componentDidUpdate 销毁 componentWillUnmount 电子时钟: class Clock extends React.Component{ constructor(props){ super(props) this.s 阅读全文
posted @ 2020-10-30 17:15 氧化成风 阅读(69) 评论(0) 推荐(0)
摘要: 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 下一页