05 2024 档案
摘要:官方文档链接 Loops循环 for loops while and do while loops break and continue Branching, like if and switch Exceptions, like try, catch, and throw for、for-in、f
阅读全文
摘要:官方文档链接 Functions 示例 bool isNoble(int atomicNumber) { return _nobleGases[atomicNumber] != null; } bool isNoble(int atomicNumber) => _nobleGases[atomicN
阅读全文
摘要:官方文档链接 简介 匹配和解构 // 匹配 const a = 'a'; const b = 'b'; switch (obj) { // List pattern [a, b] matches obj first if obj is a list with two fields, // then
阅读全文
摘要:官方文档链接 基本类型 Dart支持以下类型: Numbers (int, double) Strings (String) Booleans (bool) Records ((value1, value2)) Lists (List, also known as arrays) Sets (Set
阅读全文
摘要:学习链接 变量 创建并初始化变量 // 不指定变量类型,自动推断为String;可通过指定类型改变 var name = 'Bob'; // 一个对象不受限于单一类型时,使用 Object 或 dynamic(谨慎使用) Object name = 'Bob'; dynamic name = 'Bo
阅读全文
摘要:黑马程序员视频链接 查询参数params axios({ url:'http://hmajax.itheima.net/api/city', params: { pname: '河北省' } }).then(res => { console.log(res); state.mainDataLiat
阅读全文
摘要:结论:我写的tableData没加reactive 顺便放上尝试过的几个方法: 增加key属性 也是增加key 安装版本更低的element-plus 其他方法 <template> <el-table :data="tableData" @change="console.log('changed'
阅读全文
摘要://用来获取当前年月 const handleTimeOld = () => { let date = new Date() let year = date.getFullYear() let month = date.getMonth() + 1 // split = '-' return [ye
阅读全文
摘要:参考链接 二编:发到线上才发现,this.是vue2用的,本地是生效的,发到线上就有问题了;另发现我这边无法输入的原因是我数据没有写成reactive.... 原代码 <Input v-model="state.taskData.jobMainId" placeholder="请输入任务id"/>
阅读全文
摘要:花了一下午时间 基本功还是比较差 参考博客1 首先,要修改表头颜色,需要el-table的属性:header-cell-style 可以这样写: header-cell-style="{background:'#409EFF',color:'#409EFF'}" 而我有两个点需要考虑 1)只有部分表
阅读全文
摘要:参考了这篇博客 问题1:netWork:unaviliable 主要是:这几个: host: "0.0.0.0", public: "172.201.10.26:1888", // 此处是自己电脑IP地址! port: 1888, devServer: { host: "0.0.0.0", publ
阅读全文