随笔分类 - 前端
摘要:<template> <div> <div style="background: white; height: 100%"> <div class="up_css"> <p> JMETER运行状态: <a-tag :color="this.jmeterStatus != true ? 'green'
阅读全文
摘要:https://www.runoob.com/react/react-state.html 1、状态和变量的使用 class Clock extends React.Component { // 变量存放--固定写法 constructor() { super(); this.state = {sh
阅读全文
摘要:通过vue key 实现,原理官方文档。所以当key 值变更时,会自动的重新渲染。 <template> <third-comp :key="menuKey"/> </template> <script> export default{ data(){ return { menuKey:1 } },
阅读全文
摘要:https://blog.csdn.net/qq_40323256/article/details/111305117 https://www.likecs.com/show-307541080.html (这个可以) https://github.com/SheetJS/sheetjs 1. np
阅读全文
摘要:https://blog.csdn.net/jianleking/article/details/118442697 json转xlsx文件导出 https://www.jianshu.com/p/7950d40ace40 json转流文件。和 流文件解析 https://www.jianshu.c
阅读全文
摘要:书接上回 https://www.cnblogs.com/kaibindirver/p/17381857.html import React from 'react' import '../css/01.css' export default class App extends React.Comp
阅读全文
摘要:操作数据要用 setStatus函数 操作数据要深拷贝再操作 常规展示 import React from 'react' export default class App extends React.Component { state={ list:[{"id":1,"text":"张三"},{"
阅读全文
摘要:要放到state里面用setState去替换 import React from 'react' export default class App extends React.Component { // 第一种放变量的方法,用关键字state state={ mytext:"收藏", myShow
阅读全文
摘要:import React from 'react' export default class App extends React.Component { myref=React.createRef() render() { return ( <div> {/* 获取输入框的内容 写法一 */} <i
阅读全文
摘要:事件处理一: 触发函数的方法 import React from 'react' export default class App extends React.Component { render() { return ( <div> <input/> <button onClick={ ()=>{
阅读全文
摘要:1、点击 onClick 例子里面是匿名函数的写法 export default class App extends React.Component { render() { return ( <div> <input/> <button onClick={ ()=>{ alert("触发函数")
阅读全文
摘要:<template> <div> <H1>当前日期 :{{ FormatTime(nowTime) }}</H1> </div> </template> <script> export default { data() { return { timer: undefined, nowTime: ne
阅读全文
摘要:04-组件的样式 import '../css/01.css' //导入样式 function App(){ var myname="lucax" var obj={ background:"red", fontSize:"40px" //font-size 所有样式的-都改为用驼峰写法去替代 }
阅读全文
摘要:https://www.bilibili.com/video/BV1dP4y1c7qd?p=8&vd_source=caabcbd2a759a67e2a3de8acbaaf08ea 类组件 01-class组件.js import React from 'react' class App exten
阅读全文
摘要:全局安装 create-react-app 脚手架环境 npm install -g create-react-app 查看版本 create-react-app -V 创建项目 create-react-app myapp 让npm走国内镜像的管理工具 nrm #安装仓库包管理器 npm i -g
阅读全文
摘要:https://www.bilibili.com/video/BV1dP4y1c7qd/?p=3&spm_id_from=pageDriver&vd_source=caabcbd2a759a67e2a3de8acbaaf08ea 接着看这个 1、组件的2种写法 函数式组件 function App(
阅读全文
摘要:https://blog.csdn.net/qq_41117240/article/details/127391457 https://blog.csdn.net/cecoal/article/details/125217317 首先安装xlsx插件 yarn add xlsx@0.15.3 <el
阅读全文
摘要:https://blog.csdn.net/weixin_44320032/article/details/125936738 https://www.jb51.net/article/264657.htm https://devpress.csdn.net/viewdesign/63bd20508
阅读全文
摘要:var ConfieBaseUrl=""; if (location.hostname == 'dev-autotest.xxx.cn') { //测试环境 ConfieBaseUrl = 'https://dev-xxxx-test.xxxxx.cn/'; } else if (location.
阅读全文

浙公网安备 33010602011771号