上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: 正常的函数 // 函数声明 function add(a,b){ return a+b } // 函数表达式,匿名函数 let add2=function(a,b){ return a+b } 在ts中 // TS function add3(a: number, b: number): numbe 阅读全文
posted @ 2024-02-19 15:56 文采呱呱 阅读(3) 评论(0) 推荐(0) 编辑
摘要: // 接口 对对象的形状进行描述 可以理解为一种约束 // ?表示为可选属性,表示可有可无 // [prop:string] 代表任意属性,当不确定属性名的时候,属性类型,可以使用 ,但是要注意的是,一旦确定了不是any类型,而是string,number,Boolean之类的,其他的类型也会变成他 阅读全文
posted @ 2024-02-18 23:04 文采呱呱 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 类型声明 let num = 11; num = 10; function a(aaa) { console.log(aaa); } a('111'); // 类型声明,指定ts变量(参数,形参)的类型 ts编译器 ,自动检测 // 类型声明给变量设置了类型后,该变量只能储存对应类型的值,如下 le 阅读全文
posted @ 2024-02-18 15:31 文采呱呱 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 认知 TS:TS是JS的超集 安装TS npm i -g typescript 检测安装是否成功 tsc -v 测试 (()=>{ function sayHi(str:string){ return str } sayHi('ts') })() 手动编译 tsc ./文件名 自动编译 tsc -- 阅读全文
posted @ 2024-02-18 15:00 文采呱呱 阅读(3) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/chyingp/p/websocket-deep-in.html 阅读全文
posted @ 2024-01-02 11:44 文采呱呱 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 升序 let arr = [1,2, 5, 3, 6, 4, 7] arr.sort((a,b)=>{ return a-b }) console.log(arr) 降序 let arr = [1,2, 5, 3, 6, 4, 7] arr.sort((a,b)=>{ return b-a }) c 阅读全文
posted @ 2023-12-29 15:03 文采呱呱 阅读(2) 评论(0) 推荐(0) 编辑
摘要: npm init vue@latest 看需求选择 紧接着cd 到自己的项目文件下 npm i一下安装依赖 npm run dev 启动项目 阅读全文
posted @ 2023-12-05 14:10 文采呱呱 阅读(4) 评论(0) 推荐(0) 编辑
摘要: <template> <custom-card shadow="hover" bordered> <div class="system-search"> <div class="search-box"> <el-input class="box-input" placeholder="请输入门店/编 阅读全文
posted @ 2023-10-18 16:23 文采呱呱 阅读(7) 评论(0) 推荐(0) 编辑
摘要: nvm ls // 查看目前已经安装的版本 nvm install 10.5.0 // 安装指定的版本的nodejs nvm use 10.5.0 // 使用指定版本的nodejs nvm list available //显示可下载版本的部分列表 nvm uninstall 10.5.0 //删除 阅读全文
posted @ 2023-10-11 14:43 文采呱呱 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 查看分支 git status 创建新的分支 git checkout -b 分支名 查看当前分支 git branch 切换回master分支 git checkout master 合并分支 git merge login 切换回login 分支git checkout login 将login 阅读全文
posted @ 2023-05-11 14:48 文采呱呱 阅读(9) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页